9 lines
437 B
SQL
9 lines
437 B
SQL
-- +goose Up
|
|
|
|
-- Predoplata taken at intake — separate from price_estimate/final_price,
|
|
-- which are the repair's own quote/total, not money already collected.
|
|
-- When set on Create, order.Create also writes a matching cash_transactions
|
|
-- income row (see internal/order/handler.go) so it shows up in the cash
|
|
-- ledger the same way a trade-in payout or a POS sale does.
|
|
ALTER TABLE orders ADD COLUMN prepayment_amount NUMERIC(10, 2);
|