pub struct AccountingPeriod {
pub client_id: i64,
pub end_date: NaiveDate,
pub increment_document_number: bool,
pub is_closed: bool,
pub start_date: NaiveDate,
pub donation_receipts_created: Option<DateTime<Utc>>,
pub id: i64,
pub meta: MetaDataEntityId,
pub permissions: AccountingPeriodPermissions,
pub extra: Map<String, Value>,
}Expand description
An accounting period is the date range for one finance client’s books, usually a financial year. Accounts and cost centers belong to a period. Closing a period prevents ordinary account and transaction changes; it is separate from making individual transactions immutable.
Fields§
§client_id: i64Finance client owning this period.
end_date: NaiveDateLast date of the period.
increment_document_number: boolWhether document numbers are incremented automatically. Required in both creation and update.
is_closed: boolWhether the period is closed for ordinary accounting changes. This flag alone does not make transactions immutable.
start_date: NaiveDateFirst date of the period. Used to match the previous period by subtracting exactly one year.
donation_receipts_created: Option<DateTime<Utc>>Timestamp when donation receipts were marked as created, or null when not yet marked.
id: i64§meta: MetaDataEntityId§permissions: AccountingPeriodPermissions§extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.