pub struct FinanceMasterData {
pub account_classes: Vec<AccountClass>,
pub account_groups: Vec<AccountGroup>,
pub account_types: Vec<AccountType>,
pub accounting_periods: Vec<AccountingPeriod>,
pub accounts: Vec<Account>,
pub cash_discounts: Vec<CashDiscount>,
pub clients: Vec<Client>,
pub cost_centers: Vec<CostCenter>,
pub tax_rates: Vec<TaxRate>,
pub tax_types: Vec<TaxType>,
pub transaction_purposes: Vec<TransactionPurpose>,
pub extra: Map<String, Value>,
}Expand description
Finance definitions needed for one accounting period. Clients and periods include all entries visible to the caller; account types, classes, groups and tax types are installation-wide. Accounts, cost centers, tax rates, cash discounts and transaction purposes relate to the selected period.
Fields§
§account_classes: Vec<AccountClass>§account_groups: Vec<AccountGroup>§account_types: Vec<AccountType>§accounting_periods: Vec<AccountingPeriod>§accounts: Vec<Account>Entries for the selected period filtered by the caller’s finance permissions.
cash_discounts: Vec<CashDiscount>Entries linked to accounts of the selected period; this collection has no per-account visibility filter.
clients: Vec<Client>§cost_centers: Vec<CostCenter>Entries for the selected period filtered by the caller’s finance permissions.
tax_rates: Vec<TaxRate>Entries linked to accounts of the selected period; this collection has no per-account visibility filter.
tax_types: Vec<TaxType>§transaction_purposes: Vec<TransactionPurpose>Entries for the selected period filtered by the caller’s finance permissions.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.