pub struct CostCenter {Show 13 fields
pub accounting_period_id: i64,
pub annotation: Option<String>,
pub budget: Option<i64>,
pub budget_balance: Option<i64>,
pub budget_balance_last_period: Option<i64>,
pub budget_last_period: Option<i64>,
pub budget_spent: Option<i64>,
pub id: i64,
pub meta: MetaDataEntityId,
pub name: Option<String>,
pub number: String,
pub group: Option<DomainObjectGroup>,
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. Includes the linked group, or null when there is none.
Fields§
§accounting_period_id: i64§annotation: Option<String>§budget: Option<i64>Budget is in cent.
budget_balance: Option<i64>Budget plus cash-account income minus cash-account expenses, in minor currency units. Null without a budget or before calculation.
budget_balance_last_period: Option<i64>Remaining budget of the matching cost center in the previous period, in minor currency units. Null when unavailable or not calculated; an unmatched center can have 0.
budget_last_period: Option<i64>Budget of the cost center with the same number in the previous period of this client, in minor currency units. Null when unavailable or not calculated.
budget_spent: Option<i64>Cash-account expenses minus cash-account income, in minor currency units. Can be negative. Null if not calculated, for example immediately after creation.
id: i64§meta: MetaDataEntityId§name: Option<String>§number: String§group: Option<DomainObjectGroup>Linked group as a domain object, or null. The response does not include a separate groupId.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.