Files
bsk/lib/billing
tiennm99 354f5fd4a7 feat(billing): prescriptions & invoicing (Phase 4b)
- 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
2026-07-25 12:19:59 +07:00
..