pub struct SplitTransactionChildCreate {Show 14 fields
pub account_id: i64,
pub amount: i64,
pub cash_discount_amount: Option<Option<i64>>,
pub cash_discount_id: Option<Option<i64>>,
pub contra_account_id: i64,
pub cost_center_id: Option<Option<i64>>,
pub donator_id: Option<Option<i64>>,
pub donator_spouse_id: Option<Option<i64>>,
pub id: Option<Option<i64>>,
pub is_synced: Option<bool>,
pub is_waiver_of_reimbursement_of_expenses: Option<bool>,
pub note: Option<String>,
pub tax_rate_id: Option<Option<i64>>,
pub extra: Map<String, Value>,
}Expand description
One non-tax part of a split booking. Parent documentDate/documentNumber are applied automatically. Supply its gross amount when taxRateId is present. Do not copy generated tax rows from a read response into a new request; they are created from their main rows. Use real JSON numbers and booleans because child normalization is currently discarded.
Fields§
§account_id: i64ID of the debit account the amount is posted to.
amount: i64Gross booking amount in integer minor currency units. With taxRateId, tax is calculated from this amount and split into a separate booking; the returned main booking contains the remaining net amount.
cash_discount_amount: Option<Option<i64>>Cash discount in the smallest currency unit. Used only together with cashDiscountId.
None leaves the field out, Some(None) sends null.
cash_discount_id: Option<Option<i64>>Cash-discount definition from the same accounting period. When supplied, cashDiscountAmount must also be non-null.
None leaves the field out, Some(None) sends null.
contra_account_id: i64ID of the credit (contra) account the amount is posted from. Must differ from accountId.
cost_center_id: Option<Option<i64>>Cost center from the same accounting period. Omission or null clears the assignment on update.
None leaves the field out, Some(None) sends null.
donator_id: Option<Option<i64>>Donor person ID. Normally required when only the credit account is a donation account. Donor assignments are retained only when exactly one side is a donation account.
None leaves the field out, Some(None) sends null.
donator_spouse_id: Option<Option<i64>>Spouse for joint donation receipts. Requires a different donor person and an existing spouse relationship; inconsistent assignments return 422.
None leaves the field out, Some(None) sends null.
id: Option<Option<i64>>Existing ordinary booking to update/adopt. Omit or use null for a new booking. Existing children from another split cannot be moved through the regular multi-child update.
None leaves the field out, Some(None) sends null.
is_synced: Option<bool>Sync marker used for newly created children; existing children retain their marker.
is_waiver_of_reimbursement_of_expenses: Option<bool>Whether this is a donation through waived reimbursement of expenses. Defaults to false, including on update.
note: Option<String>Child booking note. Validation checks the trimmed length, but the current implementation writes the original child value.
tax_rate_id: Option<Option<i64>>Tax rate from the same period. On update an explicit null removes the existing tax booking; omission currently retains it because child defaults are discarded.
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.