Files
acmcc/supabase/migrations
admin 21224e400d A5 expense classification + A/P overpayment fix
- post_transaction_gl counter priority fixed: customer->A/R, then coa->that
  account (direct categorized expense/income), then uncategorized vendor->A/P.
  Previously any vendor payment went to A/P, driving A/P negative and hiding the
  real expense account. The 38 direct vendor payments now post to their expense
  accounts; A/P went from -5,895.79 to +3,099.29 (real open payables).
- sync_public_bill now maps the public bill's expense_account_id to the matching
  accounting expense account (by name) on the bill line item, so synced bills
  stop defaulting to "Administrative". Expenses now spread across Attorneys Fees,
  Electric, Lawn Service, Management Fees, Water, etc.
- Verified managed companies: R1=0, R7=0. R8 surfaces a real $1,029.17 residual
  (bills marked paid whose payments were entered as direct expenses, not A/P
  settlements) — surfaced in the Reconciliation report, not plugged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-02 01:16:58 -04:00
..