mirror of
https://github.com/tiennm99/bsk.git
synced 2026-08-03 22:23:27 +00:00
- order_items + checkup_services + medicine_orders (payment per checkup); integer-VND, server-authoritative totals - save_prescription / save_checkup_services RPCs snapshot catalog prices and compute line_total server-side (clinical-gated, SECURITY DEFINER) - mark_order_paid RPC gated to admin/cashier; clinical roles cannot flip payment - prescription composer: dynamic medicine + service rows, live total, save; payment status + mark-paid; linked from the checkup page; vi/en