pub struct CostCenterCreate {
pub accounting_period_id: i64,
pub annotation: Option<Option<String>>,
pub budget: Option<Option<i64>>,
pub group_id: Option<Option<i64>>,
pub name: String,
pub number: String,
pub extra: Map<String, Value>,
}Expand description
A cost center assigns income and expenses to a purpose, project or group within one accounting period. Budgets and balances use integer minor currency units (for example cents). Linking a group also enables access through group-internal finance permissions.
Fields§
§accounting_period_id: i64Existing, open accounting period owning this cost center.
annotation: Option<Option<String>>Optional trimmed note. Omitted, null or blank clears it.
None leaves the field out, Some(None) sends null.
budget: Option<Option<i64>>Optional budget in minor currency units, for example 3200 for EUR 32.00. Omitted or null removes the budget.
None leaves the field out, Some(None) sends null.
group_id: Option<Option<i64>>Optional linked group. Omitted or null removes the link, including on update.
None leaves the field out, Some(None) sends null.
name: StringTrimmed name, unique within the accounting period. Supply a nonblank name when creating.
number: StringTrimmed identifier, unique within the accounting period. Leading zeros are preserved; letters are accepted, although list ordering compares the integer value.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.