intuit / QuickBooks-V3-PHP-SDK

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

Item with taxable=false is ignored #466

Open DustinAPI opened 1 year ago

DustinAPI commented 1 year ago

The API documentation says an item (product) can be set as non-taxable for US companies and my sandbox is US but the attribute seems to be ignored when creating an item .

` $item = [ 'Name' => $product->getName(), 'Sku' => $product->getId(), 'SubItem' => true, 'ParentRef' => [ 'value' => $this->itemCategory, ], 'Active' => true, 'FullyQualifiedName' => $product->getName(), 'Taxable' => false, 'UnitPrice' => $product->getPrice(), 'Type' => 'NonInventory', 'IncomeAccountRef' => [ 'value' => $this->depositToAccount['all'], ], 'PurchaseCost' => 0, 'TrackQtyOnHand' => false, 'domain' => 'QBO', 'sparse' => false, ];

        $theResourceObj = Item::create($item);
        $resultingObj = $this->dataService->Add($theResourceObj);

`