diff --git a/backend-node/src/controllers/outboundController.ts b/backend-node/src/controllers/outboundController.ts index 08506f66..268b8274 100644 --- a/backend-node/src/controllers/outboundController.ts +++ b/backend-node/src/controllers/outboundController.ts @@ -118,7 +118,7 @@ export async function create(req: AuthenticatedRequest, res: Response) { for (const item of items) { const result = await client.query( `INSERT INTO outbound_mng ( - company_code, outbound_number, outbound_type, outbound_date, + id, company_code, outbound_number, outbound_type, outbound_date, reference_number, customer_code, customer_name, item_code, item_name, specification, material, unit, outbound_qty, unit_price, total_amount, @@ -128,7 +128,7 @@ export async function create(req: AuthenticatedRequest, res: Response) { destination_code, delivery_destination, delivery_address, created_date, created_by, writer, status ) VALUES ( - $1, $2, $3, $4, + gen_random_uuid()::text, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15,