naise_pos/db/query/sale_order.sql
2023-03-22 12:06:09 +07:00

16 lines
239 B
SQL

-- name: CreateSaleOrder :one
INSERT INTO sale_order (
merchant_id,
customer_id,
code,
created_by,
is_paid,
total,
paid_nominal,
note,
change,
is_keep
) VALUES (
$1, $2, $3, $4, $5, $6, $7, $8, $9, $10
)
RETURNING *;