Skip to content

Instantly share code, notes, and snippets.

@r38y
Created April 30, 2015 21:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r38y/423d9fdcf93807319a6d to your computer and use it in GitHub Desktop.
Save r38y/423d9fdcf93807319a6d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="7.0"?>
<QBXML>
<QBXMLMsgsRq onError="continueOnError">
<BillAddRq>
<BillAdd>
<VendorRef>
<ListID>80000438-1429823956</ListID>
</VendorRef>
<ItemLineAdd>
<Desc>Some line item</Desc>
<Quantity>2</Quantity>
<Cost>123.45</Cost>
<Amount>246.9</Amount>
</ItemLineAdd>
</BillAdd>
</BillAddRq>
</QBXMLMsgsRq>
</QBXML>
<?xml version="1.0" ?>
<QBXML>
<QBXMLMsgsRs>
<BillAddRs statusCode="3040" statusSeverity="Error" statusMessage="There was an error when converting the amount &quot;246.9&quot; in the field &quot;Amount&quot;. " />
</QBXMLMsgsRs>
</QBXML>
@manojSpant
Copy link

You don't need to pass 246.9 in QBXML request, it will automatically calculate on the basis of cost and quantity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment