Hi, I'm not sure if this is a bug or not, but when updating an Invoice the total amount is update but the taxes value are not updated:
$invoice = $this->dataService->FindbyId('invoice', $id);
$invoice = Invoice::update($invoice ,$newData); // $newData contains data modifying the total amount
// (1)
$this->dataService->Update($invoice);
I have to manually set $invoice->TxnTaxDetail = null; at (1) if I want the taxes to be recalculated.
is this a feature or a bug ? ^^'
Thank you,
Youssef
Hi, I'm not sure if this is a bug or not, but when updating an Invoice the total amount is update but the taxes value are not updated:
I have to manually set
$invoice->TxnTaxDetail = null;
at (1) if I want the taxes to be recalculated.is this a feature or a bug ? ^^'
Thank you, Youssef