fix: outbound_mng id NOT NULL 버그 수정 (gen_random_uuid)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user