There are two accounting equations
Static equations: Assets = Liabilities + owner equity
Dynamic equality: profit = income-cost
The two can be combined into one
Assets = Liabilities + owner benefits + income-cost
Foreign software mostly adopts the TABLE statement method, that is to say, when the report is generated, the current year's profit is calculated dynamically based on the income and cost, and no creden are generated. Domestic software adopts the statement, generate the following two creden:
1. carry-over income
DR: various sales revenue
Cr: current year's profit
Sales return
2. Carry-over fees
DR: current year's profit
Cr: sales cost
Business Management, financial periods, fees
Income tax fees, etc.
In this way, the sum of the monthly settlement income accounts is zero.
1. Create a template
For more flexibility, it is best to customize the subjects to be carried over, so you need to create a template for users to use, as shown in:
The evaluation formula is used to indicate how to calculate the balance, write a class to store the calculation methods of various balances, and then call the formula when the monthly settlement is performed, this is also an application of the legendary policy model.
2. Monthly close action
The next step is to generate the monthly settlement creden. Based on the subjects and calculation methods set in the template. As for the generation method of monthly settlement creden., we will not go into details here.
In this way, the monthly certificate is OK.