IAccountingDocument
đź”§ calculateDocumentTotals
Permet de calculer le total d'une ligne de document. obligatoire Ă tout Accounting Document. sinon on vient recalculer Ă partir de toutes les lignes
function calculateDocumentTotals(array $lineItems, bool $fullSum): array;
}
⚙️ Parameters
- $lineItems (array) Array of lineItem_callback
- $fullSum (bool) si full reload false alors on incrmente la ligne aux totaux existants
↩️ Returns
(array) Document totals including avec un dégrèvement de TVA par vat_rate