Prepare Year-End Close
prepare_year_end_closeRun a dry-run year-end close for a calendar year: check for unresolved items, verify balances, detect existing closes, and generate the Dec 31 profit-entry and Jan 1 transfer drafts.
Instructions
Dry-run calendar-year close per RIK's e-arveldaja method: unresolved items, balance check, existing-close detection, and the two drafts — Dec 31 result entry (profit D 9000 / K 2970) and Jan 1 transfer (D 2970 / K 2960). Revenue/expense accounts are not zeroed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Fiscal year (YYYY) | |
| reserve_capital_amount | No | Part of a profit to credit to reserve capital (default account: name-resolved Kohustuslik reservkapital, 2940) instead of retained earnings in the 1 January entry | |
| reserve_capital_account | No | Reserve capital account override for reserve_capital_amount |