mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
Accounting: A/P-clearing payments, check return address + MICR gaps, dashboard fixes
Bill/vendor payments: - Bill "Pay" and bank-register vendor debits now clear Accounts Payable (Dr A/P / Cr Bank) instead of re-debiting the expense, which had double-counted expenses in the P&L and never cleared A/P. The expense account is kept as a display-only category on the payment. Checks: - Bill-payment checks now print the return address (payer name/address) from the company check layout (was hardcoded blank). - Per-segment MICR gap control (check# / routing / account) in both check generators, wired to Check Setup (bill payments) and the Check Layout editor (Print Checks). New columns: check_settings.micr_gap_1/2 and check_layouts/company_check_layouts.micr_gap_1/2. Accounting Dashboard / Financial Overview: - Date-range selector (presets + custom) drives the charts, top expenses, and recent transactions. - PDF title renamed to "Financial Overview" and shows the period. - Fixed amounts rendering as "$ 5 0 0. 0 0": the U+2212 minus sign forced jsPDF into a UTF-16 fallback; replaced with an ASCII hyphen (also in the report PDF out-of-balance line). DB migrations applied to the project: repost_gl_on_line_item_change, budget_actuals_accrual_owner_income, add_micr_gap_controls. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -236,7 +236,7 @@ function buildReport(doc: jsPDF, report: StructuredReport, opts: RenderOpts): js
|
||||
doc.setFont("helvetica", "bold"); doc.setFontSize(9.5); doc.setTextColor(...txt);
|
||||
const msg = ok
|
||||
? "Balance Sheet is balanced"
|
||||
: `Balance Sheet is OUT OF BALANCE by ${fmtAmount(report.outOfBalanceAmount ?? 0)} (Assets − Liabilities − Equity)`;
|
||||
: `Balance Sheet is OUT OF BALANCE by ${fmtAmount(report.outOfBalanceAmount ?? 0)} (Assets - Liabilities - Equity)`;
|
||||
doc.text(msg, ML + 8, y + 14);
|
||||
y += 28;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user