pub struct AccountingPeriodBalanceTransfer {
pub from: Option<Vec<i64>>,
pub opening_balance_account: Option<Option<i64>>,
pub extra: Map<String, Value>,
}Expand description
Optional opening-balance transfer. Both an openingBalanceAccount and a nonempty from list are needed to start a transfer. The previous period must have the same client and a start date exactly one year earlier.
Fields§
§from: Option<Vec<i64>>Source balance-sheet account IDs from the previous period. Matching target accounts must have the same numbers. Profit-and-loss accounts are not allowed. The transfer posts only the difference between closing balances and already existing opening balances; zero differences are skipped.
opening_balance_account: Option<Option<i64>>ID of an existing account whose number identifies an opening-balance account in the target period. The source ID itself need not belong to the target period; its number is used for matching.
None leaves the field out, Some(None) sends null.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.