Import finalized Olist production orders

This commit is contained in:
Cauê Faleiros
2026-08-12 10:57:18 -03:00
parent 42d64447d5
commit 6d3a1d6b1a
10 changed files with 494 additions and 7 deletions

View File

@@ -254,6 +254,7 @@ const mapProductionOrderRow = (row) => {
orderReference: row.order_reference || '',
issueDate: formatDate(row.issue_date),
expectedDate: formatDate(row.expected_date),
completedDate: formatDate(row.completed_date),
productSku: row.product_sku || '',
productDescription: row.product_description || '',
quantity: Number(row.quantity || 0),
@@ -284,6 +285,7 @@ const getOrderById = async (id, client = pool) => {
po.order_reference,
po.issue_date,
po.expected_date,
po.completed_date,
po.product_sku,
po.product_description,
po.quantity,
@@ -366,6 +368,7 @@ const baseProductionOrderSelect = `
po.order_reference,
po.issue_date,
po.expected_date,
po.completed_date,
po.product_sku,
po.product_description,
po.quantity,