Trial Balance DN_TB 10 Debit and credit net per account, grouped by account type. Used as the period-end balance check. start_of_fiscal_year today AssetsASSETS 10 domainTB_ASSETS [('account_id.internal_group', '=', 'asset')] LiabilitiesLIABILITIES 20 domainTB_LIABILITIES [('account_id.internal_group', '=', 'liability')] EquityEQUITY 30 domainTB_EQUITY [('account_id.internal_group', '=', 'equity')] RevenueINCOME 40 domainTB_INCOME [('account_id.internal_group', '=', 'income')] ExpensesEXPENSES 50 domainTB_EXPENSES [('account_id.internal_group', '=', 'expense')] Total Debit and Credit (should be 0)TOTAL 90 aggregation TB_TOTAL TB_ASSETS + TB_LIABILITIES + TB_EQUITY + TB_INCOME + TB_EXPENSES Profit and Loss DN_PL 20 Revenue, cost, expense and net profit for the period. start_of_fiscal_year today Operating RevenueREVENUE 10 domainPL_REVENUE -1 [('account_id.account_type', '=', 'income')] Other RevenueOTHER_INCOME 20 domainPL_OTHER_INCOME -1 [('account_id.account_type', '=', 'income_other')] Cost of RevenueCOGS 30 domainPL_COGS [('account_id.account_type', '=', 'expense_direct_cost')] Gross ProfitGROSS_PROFIT 40 aggregationPL_GROSS_PROFIT PL_REVENUE + PL_OTHER_INCOME - PL_COGS Operating ExpensesOPEX 50 domainPL_OPEX [('account_id.account_type', 'in', ['expense', 'expense_other'])] Depreciation and AmortisationDEPRECIATION 60 domainPL_DEPRECIATION [('account_id.account_type', '=', 'expense_depreciation')] Operating ProfitOPERATING_PROFIT 70 aggregationPL_OPERATING_PROFIT PL_GROSS_PROFIT - PL_OPEX - PL_DEPRECIATION Net ProfitNET_PROFIT 90 monetary aggregationPL_NET_PROFIT PL_OPERATING_PROFIT Balance Sheet DN_BS 30 Assets, liabilities and equity at period end. Balance sheet accounts use the cumulative balance, profit and loss accounts use the period movement. start_of_fiscal_year today AssetsASSETS 10 aggregationBS_ASSETS BS_CASH + BS_AR + BS_OTHER_CURRENT_A + BS_FIXED Cash and Cash EquivalentsCASH10 domainBS_CASH from_beginning [('account_id.account_type', 'in', ['asset_cash', 'liability_credit_card'])] Accounts ReceivableAR20 domainBS_AR from_beginning [('account_id.account_type', '=', 'asset_receivable')] Other Current AssetsOTHER_CURRENT_A30 domainBS_OTHER_CURRENT_A from_beginning [('account_id.account_type', 'in', ['asset_current', 'asset_prepayments'])] Fixed AssetsFIXED40 domainBS_FIXED from_beginning [('account_id.account_type', 'in', ['asset_fixed', 'asset_non_current'])] LiabilitiesLIABILITIES 40 domainBS_LIABILITIES -1 from_beginning [('account_id.account_type', 'in', ['liability_payable', 'liability_current', 'liability_non_current'])] Accounts PayableAP10 domainBS_AP -1 from_beginning [('account_id.account_type', '=', 'liability_payable')] Other LiabilitiesOTHER_LIAB20 domainBS_OTHER_LIAB -1 from_beginning [('account_id.account_type', 'in', ['liability_current', 'liability_non_current', 'liability_credit_card']), ('account_id.account_type', '!=', 'liability_payable')] EquityEQUITY 50 aggregationBS_EQUITY BS_EQUITY_ACCOUNTS + BS_CURRENT_EARNINGS Capital and Retained EarningsEQUITY_ACCOUNTS10 domainBS_EQUITY_ACCOUNTS -1 from_beginning [('account_id.account_type', 'in', ['equity', 'equity_unaffected', 'equity_retained'])] Current Period ResultCURRENT_EARNINGS20 domainBS_CURRENT_EARNINGS -1 [('account_id.internal_group', 'in', ['income', 'expense'])] Total Liabilities and EquityLE_TOTAL 60 aggregationBS_LE_TOTAL BS_LIABILITIES + BS_EQUITY General Ledger DN_GL 40 Every entry per account, with opening balance, period movement and cumulative balance. start_of_fiscal_year today Entry DetailsDETAIL10 ledgerGL_DETAIL [] Partner Ledger DN_PARTNER 50 Receivable and payable movements and balances, grouped by partner. start_of_fiscal_year today Partner DetailsPARTNER_DETAIL10 ledgerPARTNER_DETAIL [('account_id.account_type', 'in', ['asset_receivable', 'liability_payable'])] Aged Receivable DN_AR 60 Receivables bucketed by due-date aging intervals. today Not yet dueCURRENT10 agecalcAR_CURRENT receivable:current 1-30 daysB3020 agecalcAR_30 receivable:0-30 31-60 daysB6030 agecalcAR_60 receivable:31-60 61-90 daysB9040 agecalcAR_90 receivable:61-90 91-120 daysB12050 agecalcAR_120 receivable:91-120 Over 120 daysB120P60 agecalcAR_120P receivable:121+ TotalAR_TOTAL 90 aggregationAR_TOTAL AR_CURRENT + AR_30 + AR_60 + AR_90 + AR_120 + AR_120P Aged Payable DN_AP 70 Payables bucketed by due-date aging intervals. today Not yet dueCURRENT10 agecalcAP_CURRENT -1 payable:current 1-30 daysB3020 agecalcAP_30 -1 payable:0-30 31-60 daysB6030 agecalcAP_60 -1 payable:31-60 61-90 daysB9040 agecalcAP_90 -1 payable:61-90 91-120 daysB12050 agecalcAP_120 -1 payable:91-120 Over 120 daysB120P60 agecalcAP_120P -1 payable:121+ TotalAP_TOTAL 90 aggregationAP_TOTAL AP_CURRENT + AP_30 + AP_60 + AP_90 + AP_120 + AP_120P Cash Flow Statement DN_CF 80 Cash movement for the period, split into operating, investing and financing activities. start_of_fiscal_year today Opening Cash BalanceOPENING10 domainCF_OPENING before_period [('account_id.account_type', 'in', ['asset_cash', 'liability_credit_card'])] Cash Flow from Operating ActivitiesOPERATING20 customCF_OPERATING _custom_cash_flow_operating Cash Flow from Investing ActivitiesINVESTING30 customCF_INVESTING _custom_cash_flow_investing Cash Flow from Financing ActivitiesFINANCING40 customCF_FINANCING _custom_cash_flow_financing Net Cash MovementNET_CHANGE 80 aggregationCF_NET_CHANGE CF_OPERATING + CF_INVESTING + CF_FINANCING Closing Cash BalanceCLOSING 90 domainCF_CLOSING from_beginning [('account_id.account_type', 'in', ['asset_cash', 'liability_credit_card'])] Journal Audit DN_JOURNAL 90 Entries and debit/credit totals per journal, for sampling and audit. start_of_fiscal_year today SalesSALE10 domainJOURNAL_SALEdebit [('journal_id.type', '=', 'sale')] PurchasesPURCHASE20 domainJOURNAL_PURCHASEdebit [('journal_id.type', '=', 'purchase')] Bank and CashBANK30 domainJOURNAL_BANKdebit [('journal_id.type', 'in', ['bank', 'cash'])] MiscellaneousMISC40 domainJOURNAL_MISCdebit [('journal_id.type', '=', 'general')] Total DebitJOURNAL_TOTAL 90 aggregationJOURNAL_TOTAL JOURNAL_SALE + JOURNAL_PURCHASE + JOURNAL_BANK + JOURNAL_MISC Tax Summary DN_TAX 100 Output and input tax totals, grouped by tax. start_of_fiscal_year today Output TaxOUTPUT10 customTAX_OUTPUT _custom_tax_output Input TaxINPUT20 customTAX_INPUT _custom_tax_input Tax PayableNET 30 aggregationTAX_NET TAX_OUTPUT - TAX_INPUT Taxable SalesBASE_SALE40 customTAX_BASE_SALE _custom_tax_base_sale Sales Analysis DN_SALES 110 Sales revenue, returns and discounts summarised for the period. start_of_fiscal_year today Net Sales RevenueNET_SALES10 customSALES_NET _custom_sales_total Output TaxSALES_TAX20 customSALES_TAX _custom_tax_output Sales Including TaxGROSS_SALES30 aggregationGROSS_SALES SALES_NET + SALES_TAX Executive Summary DN_EXEC 120 One-page overview: revenue, cost, profit, cash and receivables/payables. start_of_fiscal_year today Operating RevenueREVENUE10 customEXEC_REVENUE _custom_sales_total Cost of Revenue and ExpensesEXPENSES20 customEXEC_EXPENSES _custom_purchase_total Net ProfitNET_PROFIT30 aggregationEXEC_NET_PROFIT EXEC_REVENUE - EXEC_EXPENSES Net Profit MarginMARGIN40 percent aggregationEXEC_MARGIN (EXEC_NET_PROFIT / EXEC_REVENUE * 100) if EXEC_REVENUE else 0 Cash BalanceCASH50 domainEXEC_CASH from_beginning [('account_id.account_type', 'in', ['asset_cash', 'liability_credit_card'])] Receivable BalanceAR60 domainEXEC_AR from_beginning [('account_id.account_type', '=', 'asset_receivable')] Payable BalanceAP70 domainEXEC_AP -1 from_beginning [('account_id.account_type', '=', 'liability_payable')] Open Partner BalanceUNRECONCILED80 domainEXEC_UNRECONCILED from_beginning [('account_id.account_type', 'in', ['asset_receivable', 'liability_payable']), ('reconciled', '=', False)] Open Items DN_OPEN_ITEMS 130 Unreconciled receivable and payable items, with days overdue. today Open ReceivableOPEN_AR10 ledgerOPEN_AR [('account_id.account_type', '=', 'asset_receivable'), ('reconciled', '=', False), ('amount_residual', '!=', 0)] Open PayableOPEN_AP20 ledgerOPEN_AP [('account_id.account_type', '=', 'liability_payable'), ('reconciled', '=', False), ('amount_residual', '!=', 0)] Total Open BalanceOPEN_TOTAL90 aggregationOPEN_TOTAL OPEN_AR + OPEN_AP Customer Statement DN_STATEMENT 140 Receivable charges and settlements for the period, per partner. Suitable for sending to the customer. start_of_fiscal_year today Partner DetailsSTATEMENT_DETAIL10 ledgerSTATEMENT_DETAIL from_beginning [('account_id.account_type', '=', 'asset_receivable')] Deferred Revenues and Expenses DN_DEFERRED 150 Prepaid expenses and deferred income that are not yet fully amortised. today Prepaid Expense BalancePREPAID10 domainDEFERRED_PREPAID from_beginning [('account_id.account_type', '=', 'asset_prepayments')] Deferred Income BalanceUNEARNED20 domainDEFERRED_UNEARNED from_beginning [('account_id.account_type', '=', 'liability_current'), ('account_id.name', 'ilike', 'deferred')] TotalDEFERRED_TOTAL90 aggregationDEFERRED_TOTAL DEFERRED_PREPAID + DEFERRED_UNEARNED Deferred Revenues DN_DEFERRED_REV 151 Income received in advance and not yet recognised in the profit and loss. today Deferred IncomeDEF_REV_BAL10 domainDEF_REV_BAL from_beginning [('account_id.account_type', '=', 'liability_current'), ('account_id.name', 'ilike', 'deferred')] Total Deferred RevenuesDEF_REV_TOTAL90 aggregationDEF_REV_TOTAL DEF_REV_BAL Deferred Expenses DN_DEFERRED_EXP 152 Prepaid expenses not yet charged to the profit and loss. today Prepaid ExpensesDEF_EXP_BAL10 domainDEF_EXP_BAL from_beginning [('account_id.account_type', '=', 'asset_prepayments')] Total Deferred ExpensesDEF_EXP_TOTAL90 aggregationDEF_EXP_TOTAL DEF_EXP_BAL Unrealized Currency Gains and Losses DN_FX 160 Revalues open foreign-currency receivables and payables at the closing rate and shows the unrealised gain or loss. today Unrealized Currency Gains and LossesFX_TOTAL10 customFX_TOTAL _custom_unrealized_gain_loss Foreign Currency Receivable BalanceFX_AR20 domainFX_AR from_beginning [('account_id.account_type', '=', 'asset_receivable'), ('currency_id', '!=', False), ('reconciled', '=', False)] Foreign Currency Payable BalanceFX_AP30 domainFX_AP -1 from_beginning [('account_id.account_type', '=', 'liability_payable'), ('currency_id', '!=', False), ('reconciled', '=', False)] Intercompany Comparison DN_INTERCO 170 Internal balances between companies, for checking before consolidation eliminations. today Internal ReceivableINTERCO_AR10 domainINTERCO_AR from_beginning [('account_id.account_type', '=', 'asset_receivable'), ('partner_id.is_company', '=', True)] Internal PayableINTERCO_AP20 domainINTERCO_AP -1 from_beginning [('account_id.account_type', '=', 'liability_payable'), ('partner_id.is_company', '=', True)] Difference (should be 0)INTERCO_DIFF30 aggregationINTERCO_DIFF INTERCO_AR + INTERCO_AP Bank Reconciliation Status DN_BANKREC 180 Reconciled and unreconciled amounts and the balance difference, per bank journal. today Book Cash BalanceBOOK_BALANCE10 domainBANKREC_BOOK from_beginning [('account_id.account_type', '=', 'asset_cash')] Unreconciled Cash EntriesUNRECONCILED_CASH20 domainBANKREC_UNRECONCILED from_beginning [('account_id.account_type', '=', 'asset_cash'), ('reconciled', '=', False)] Cash Entry DetailsCASH_DETAIL30 ledgerBANKREC_DETAIL from_beginning [('account_id.account_type', '=', 'asset_cash')] Annual Statements DN_ANNUAL 190 The year-end closing pack: balance sheet, profit and loss, cash flow statement. start_of_fiscal_year end_of_year Balance Sheet Check (should be 0) BALANCE_CHECK10 aggregationANNUAL_BALANCE_CHECK ANNUAL_ASSETS - ANNUAL_LIABILITIES - ANNUAL_EQUITY Total Assets at Year EndASSETS20 domainANNUAL_ASSETS from_beginning [('account_id.internal_group', '=', 'asset')] Total Liabilities at Year EndLIABILITIES30 domainANNUAL_LIABILITIES -1 from_beginning [('account_id.internal_group', '=', 'liability')] Total Equity at Year End (including current year profit)EQUITY40 domainANNUAL_EQUITY -1 from_beginning [('account_id.internal_group', 'in', ['equity', 'income', 'expense'])] Revenue for the YearREVENUE50 domainANNUAL_REVENUE -1 [('account_id.internal_group', '=', 'income')] Cost and Expenses for the YearEXPENSES60 domainANNUAL_EXPENSES [('account_id.internal_group', '=', 'expense')] Net Profit for the YearNET_PROFIT70 aggregationANNUAL_NET_PROFIT ANNUAL_REVENUE - ANNUAL_EXPENSES Cash Balance at Year EndCASH80 domainANNUAL_CASH from_beginning [('account_id.account_type', 'in', ['asset_cash', 'liability_credit_card'])] Depreciation Schedule DN_DEPRECIATION 185 Movements of the year on fixed assets and their accumulated depreciation, and the net book value at the end of the period. start_of_fiscal_year today Acquisitions of the Period DEP_ACQ10 domainDEP_ACQ [('account_id.account_type', 'in', ['asset_fixed', 'asset_non_current'])] Disposals of the Period DEP_DIS20 domainDEP_DIS -1 [('account_id.account_type', 'in', ['asset_fixed', 'asset_non_current']), ('credit', '>', 0)] Depreciation Expense of the Period DEP_EXP30 domainDEP_EXP [('account_id.account_type', '=', 'expense_depreciation')] Gross Book Value at Period End DEP_GROSS40 domainDEP_GROSS from_beginning [('account_id.account_type', 'in', ['asset_fixed', 'asset_non_current'])] Accumulated Depreciation at Period End DEP_ACCUM50 domainDEP_ACCUM from_beginning [('account_id.account_type', '=', 'asset_non_current'), ('account_id.name', 'ilike', 'depreciation')] Net Book Value at Period End DEP_NET90 aggregationDEP_NET DEP_GROSS - DEP_ACCUM