intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
241 stars 242 forks source link

(potential bug) Invoice update not updating taxes #422

Open mybouhssina opened 2 years ago

mybouhssina commented 2 years ago

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