expenses
Register a purchase
Fields
products[] (all required, except cost_center_id and cost_center_distribution_id)
Cost center
- The effective center of each line is the line’s own or, if it has none, the purchase’s.
- A nonexistent or inactive center, or one with subcenters, returns
422with details inerrors. - When posting to accounting, the expense is grouped by account and center: two lines with different centers generate two expense lines. Suppliers, cash and VAT (IVA) are left without a center.
- Payments made after the purchase take their center by default (see Accounts payable).