cardinal
Accounting

Statements of accounts

Send customers their General Ledger or Accounts Receivable statement as a PDF, once or on a schedule.

Process Statement Of Accounts builds a statement per customer from the General Ledger or the Accounts Receivable report. It stores the statements as one PDF, or mails each customer their own. With Enable Auto Email a daily job mails them on a schedule.

Setting one up

Create a Process Statement Of Accounts and give it a name. Pick Report (General Ledger or Accounts Receivable) and Company.
For General Ledger set From Date and To Date. For Accounts Receivable set Posting Date.
Fill the Customers table. Either add rows by hand, or set Select Customers By to Customer Group or Territory, pick the Recipient and press Fetch Customers. Each row has Billing Email and Primary Contact Email.
Optionally add filters (Account, the Cost Center and Project lists, Currency, Territory, Payment Terms Template), Include Ageing Summary, Letter Head and Terms and Conditions.
Save. Run erp.process_statement_of_accounts.download_statements for one PDF of every customer's statement, stored as a private File, or erp.process_statement_of_accounts.send_emails to mail each customer theirs.

A customer with no entries in the period gets no statement.

The mail

Each mail goes to the customer's Billing Email and, with Send To Primary Contact ticked, the Primary Contact Email. The users in CC To are copied. Subject, Body and PDF Name are templates that see doc (this record) and customer. Left empty, they default to:

FieldDefault
SubjectStatement Of Accounts for {{ customer.customer_name }}
BodyHello {{ customer.customer_name }},<br>PFA your Statement Of Accounts from {{ doc.from_date }} to {{ doc.to_date }}. (until {{ doc.posting_date }} for Accounts Receivable)
PDF Name{{ customer.customer_name }}

Each customer's mail runs as its own job. The job renders the PDF, stores it as a File and queues the mail in one transaction, so a failure rolls both back and the job retries on any node.

Auto email

FieldWhat it does
Enable Auto EmailHands the record to the daily job
FrequencyDaily, Weekly, Biweekly, Monthly or Quarterly
Filter Duration (Months)How many months each General Ledger statement covers
Start DateThe first statement's end date

On save, a Start Date of today or later becomes To Date, and From Date is Filter Duration months before it. Every day the job finds the records with auto email on whose To Date (General Ledger) or Posting Date (Accounts Receivable) is today. It queues one mail per customer, then moves the dates on by the frequency: 1, 7 or 14 days, or 1 or 3 months.

Example: monthly General Ledger statements for Acme Traders' customers, Start Date 2026-11-30, Filter Duration (Months) 1. On save the period is 2026-10-30 to 2026-11-30. On 2026-11-30 the job mails that period and moves it to 2026-11-30 to 2026-12-30. A mail queued before the dates moved still reports the period it was queued for.

Rules and limits

  • Account, the cost centers and the projects must belong to Company.
  • Subject, Body and PDF Name must parse as templates.
  • The Customers table cannot be empty.
  • A custom Print Format is refused. ERP uses its own statement layout.
  • Fetch Customers works for Customer Group and Territory only. Sales Partner and Sales Person are refused.
  • Categorize by Voucher (Consolidated) lists the lines flat. The two Ignore filters, Show Remarks and Show Net Values in Party Account change nothing yet.

On this page