Discussions
Setting the Tax Rate on a Sales Order (Transaction Was Not In Balance)
When I (a) set the Tax Item on a salesOrder, it is ignored - no tax is charged. When I explicitly set the taxRate, I get an error (eg: "Transaction was not in balance. Total = 0.36") You can see an example of my code below. If I remove the taxRate, I don't get the error, but of course no tax is calculated on the SalesOrder. Any idea what's throwing that error? For the record, that 36 cents in the error quoted above is because I set the taxRate to 9.00 (%) and the subtotal of the order was $4.00
oRefClass.internalId = NS_CLASS_ID;
oRefDept.internalId = NS_DEPT_ID;