naise_pos/db/query/purchase_order.sql

13 lines
199 B
MySQL
Raw Normal View History

2023-03-05 23:35:41 +07:00
-- name: CreatePurchaseOrder :one
INSERT INTO purchase_order (
merchant_id,
supplier_id,
code,
is_paid,
total,
paid_nominal,
note
) VALUES (
$1, $2, $3, $4, $5, $6, $7
)
RETURNING *;