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

Item with taxable=false is ignored

Open DustinAPI opened this issue 1 year ago • 0 comments

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);

`

DustinAPI avatar Dec 16 '22 18:12 DustinAPI