quickbooks - QBXML InvoiceAddRq and Taxes -


i'm having issue trying tax applied invoice qbxml. i'm using salestaxcoderef in invoicelineadd doesn't seem it's working whatever reason. same code worked salesreceiptaddrq. missing flag or something?

<?xml version="1.0" encoding="utf-8"?> <?qbxml version="11.0"?><qbxml>  <qbxmlmsgsrq onerror="stoponerror">   <invoiceaddrq requestid="c16d1753af62163f3891551c07a1eed493bb291a">    <invoiceadd>     <customerref>      <fullname>customers fullname</fullname>     </customerref>     <templateref>      <fullname>default template</fullname>     </templateref>     <txndate>2013-07-31</txndate>     <refnumber>12324</refnumber>     <billaddress>      <addr1>customers fullname</addr1>      <addr2>123 test dr</addr2>      <addr3></addr3>      <city>customer city</city>      <state>al</state>      <postalcode>12323</postalcode>      <country>us</country>     </billaddress>     <shipaddress>      <addr1>customers fullname</addr1>      <addr2>123 test dr</addr2>      <addr3></addr3>      <city>customer city</city>      <state>al</state>      <postalcode>12323</postalcode>      <country>us</country>     </shipaddress>     <ispending>false</ispending>     <istobeprinted>false</istobeprinted>     <istobeemailed>false</istobeemailed>     <invoicelineadd>      <itemref>       <listid>80000540-1339572998</listid>      </itemref>      <desc>item desc</desc>      <quantity>1</quantity>      <rate>39.27</rate>      <salestaxcoderef>       <fullname>sbt</fullname>      </salestaxcoderef>     </invoicelineadd>    </invoiceadd>   </invoiceaddrq>  </qbxmlmsgsrq> </qbxml> 

for non-usa versions of quickbooks (ca, uk, etc.):

what have should work, assuming sales tax code "sbt" correctly mapped tax rate in tax preferences within quickbooks.

for usa versions of quickbooks:

sales tax codes indicate whether taxable, or nontaxable. not indicate tax amount, or force tax recorded/charged.

in addition sales tax code, need specify itemsalestaxref, reference specific tax item (a specific tax rate, e.g. 7%).

... <itemsalestaxref>   <fullname>my existing tax item name</fullname> </itemsalestaxref> <istobeprinted>true</istobeprinted> ... 

Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -