pub struct SplitTransaction {
pub amount: i64,
pub bills: Option<Vec<Bill>>,
pub document_date: NaiveDate,
pub document_number: String,
pub id: i64,
pub meta: MetaDataEntityId,
pub note: Option<String>,
pub split_children: Vec<Transaction>,
pub extra: Map<String, Value>,
}Expand description
A parent grouping ordinary accounting bookings into one gross amount. All submitted non-tax children share either their debit account or their credit account, and an account cannot occur on both sides. The parent is not itself an ordinary transaction row. Generated tax bookings also appear in splitChildren; their amounts plus the corresponding net children make up the gross total.
Fields§
§amount: i64Total amount in the currency’s smallest denomination (e.g. cents). Must equal the sum of all splitChildren amounts.
bills: Option<Vec<Bill>>Parent receipts, included when include[]=bills is requested.
document_date: NaiveDateA simple date in ISO format, e.g. ‘2022-10-19’
document_number: StringDocument number of the split transaction. Auto-generated when the accounting period increments document numbers, otherwise required.
id: i64ID of the split parent, distinct from each ordinary child transaction ID.
meta: MetaDataEntityId§note: Option<String>Free-text note describing the split booking.
split_children: Vec<Transaction>Ordinary child bookings, including generated tax rows. A fresh read orders them by transaction ID. Child IDs can be read through /finance/transactions/{id}; edit the group through the split endpoint.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.