QuickBooks-V3-PHP-SDK icon indicating copy to clipboard operation
QuickBooks-V3-PHP-SDK copied to clipboard

(potential bug) Invoice update not updating taxes

Open mybouhssina opened this issue 2 years ago • 0 comments

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

mybouhssina avatar Sep 29 '21 18:09 mybouhssina