diff --git a/backend-node/src/controllers/outboundController.ts b/backend-node/src/controllers/outboundController.ts index 8ef006da..339114cf 100644 --- a/backend-node/src/controllers/outboundController.ts +++ b/backend-node/src/controllers/outboundController.ts @@ -144,7 +144,7 @@ export async function create(req: AuthenticatedRequest, res: Response) { outbound_qty, unit_price, total_amount, lot_number, warehouse_code, location_code, outbound_status, manager_id, memo, - source_table, source_id, sales_order_id, shipment_plan_id, item_info_id, + source_table, source_id, destination_code, delivery_destination, delivery_address, created_date, created_by, writer, status ) VALUES ( @@ -154,9 +154,9 @@ export async function create(req: AuthenticatedRequest, res: Response) { $13, $14, $15, $16, $17, $18, $19, $20, $21, - $22, $23, $24, $25, $26, - $27, $28, $29, - NOW(), $30, $30, '출고' + $22, $23, + $24, $25, $26, + NOW(), $27, $27, '출고' ) RETURNING *`, [ companyCode, @@ -180,11 +180,8 @@ export async function create(req: AuthenticatedRequest, res: Response) { item.outbound_status || "대기", manager_id || item.manager_id || null, memo || item.memo || null, - item.source_type || item.source_table || null, + item.source_table || null, item.source_id || null, - item.sales_order_id || null, - item.shipment_plan_id || null, - item.item_info_id || null, item.destination_code || null, item.delivery_destination || null, item.delivery_address || null,