mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
84541a6813
trg_acct_bill_paid_back was AFTER UPDATE only, so bills mirrored into accounting already-paid never triggered the back-sync that flips public.bills + bill_approvals to 'paid'. Fire the trigger on INSERT too and reconcile existing already-paid mirrored bills. Also backfill invoice-track approvals that uniquely match a bill (bill_id was null). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>