Book Lightyear Distributions
book_lightyear_distributionsCreates journal entries for Lightyear dividend, interest, and reward distributions, including withheld tax, with a dry-run preview by default.
Instructions
Create journal entries for Lightyear dividend, interest, and reward distributions, including withheld tax. DRY RUN by default. With fx_source="ecb", a foreign distribution that stays in its currency (no conversion on the statement) is valued at the ECB reference rate of its statement day; the rate (or the failed lookup) is bound into the reviewed plan and execute never refetches. Retained USD distributions are logged in the USD cash-fund pool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview without creating entries (default true) | |
| file_ref | No | Opaque Lightyear AccountStatement file reference. | |
| file_path | No | AccountStatement path/base64 input. Provide exactly one of file_path or file_ref. | |
| fx_source | No | Rate source for foreign distributions: "statement" (default) needs the paired Lightyear conversion; "ecb" values a distribution that has no conversion at all at the ECB rate of its statement day (weekend/holiday: last earlier published rate). Today's rate is never final. | |
| fee_account | No | Platform fee expense account (default 8610 Muud finantskulud) | |
| plan_handle | No | Execution-plan handle from the reviewed dry run. Required for dry_run=false. | |
| tax_account | No | Withheld tax receivable/expense account (for tax_amount from CSV) | |
| broker_account | Yes | Broker cash account (e.g. 1120 Lightyear konto) | |
| income_account | Yes | Income account for Dividend rows (dividends from directly-held shares → 8330 'Tulu aktsiatelt ja osadelt'). Fund Distribution rows use fund_distribution_account and Interest rows use interest_account. | |
| reward_account | No | Account for platform rewards/bonuses (default: auto-detect 'Muud finantstulud', standard 8600). Rewards are broker fee/campaign income, not securities income. | |
| interest_account | No | Account for Interest rows (default: auto-detect 'Intressitulu hoiustelt', standard 8400). | |
| lightyear_account | No | Lightyear account id (e.g. CHZELUU) for the USD pool when the statement's file name does not carry it. | |
| broker_dimension_id | No | Dimension ID for broker account (accounts_dimensions_id) | |
| fund_distribution_account | No | Account for fund Distribution rows — both Lightyear cash funds (BRICEKSP, ICSUSSDP) alike (default: auto-detect 'Tulu fondiosakute ümberhindlusest', standard 8320). |