naise_pos/db/query/stock_log.sql
2023-03-19 18:17:17 +07:00

16 lines
291 B
SQL

-- name: CreateStockLogs :one
INSERT INTO stock_logs (
product_id,
merchant_id,
created_by,
transaction_id,
transaction_action_type,
transaction_description,
type,
selling_price,
purchase_price,
quantity
) VALUES (
$1, $2, $3, $4, $5 ,$6, $7, $8, $9, $10
)
RETURNING *;