naise_pos/db/query/sale_order_detail.sql

13 lines
219 B
MySQL
Raw Permalink Normal View History

2023-03-22 12:06:09 +07:00
-- name: CreateSaleOrderDetail :one
INSERT INTO sale_order_detail (
sale_order_id,
product_id,
product_name,
quantity,
sub_total,
product_price,
profit
) VALUES(
$1, $2, $3, $4, $5, $6, $7
)
RETURNING *;