Compute Profit and Loss
compute_profit_and_lossCalculate profit and loss for a date range, subtracting expenses from revenue while excluding year-end close entries. Use to generate accurate income statements.
Instructions
Compute profit and loss statement (kasumiaruanne) for a period. Shows revenue minus expenses; account 9000 (Arvestuslik koondtulemus, the RIK year-end close counter-account) and legacy YECL closing journals are excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Clear cached API/reference data before computing this report (use after web UI changes). | |
| date_to | Yes | Period end (YYYY-MM-DD) | |
| date_from | Yes | Period start (YYYY-MM-DD) |