1

我在尝试使用 QBXML 将税款应用于发票时遇到问题。我在 InvoiceLineAdd 中使用 SalesTaxCodeRef,但无论出于何种原因,它似乎都不起作用。相同的代码适用于 SalesReceiptAddRq。我错过了一面旗帜还是什么?

<?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>
4

2 回答 2

6

对于 QuickBooks 的非美国版本(CA、UK 等):

您应该工作,假设销售税代码“SBT”正确映射到 QuickBooks 中您的税收优惠中的税率。

对于美国版本的 QuickBooks:

销售税代码仅表明某物是可征税的还是不可征税的。它们实际上并未指明任何税额,或强制记录/收取税款。

除了销售税代码之外,您还需要指定 ItemSalesTaxRef,它是对特定税项(特定税率,例如 7%)的引用。

...
<ItemSalesTaxRef>
  <FullName>My Existing Tax Item Name</FullName>
</ItemSalesTaxRef>
<IsToBePrinted>true</IsToBePrinted>
...
于 2013-07-31T14:31:26.537 回答
-3

使用 SDK Validator 检查您的 XML。

于 2013-07-31T14:33:46.137 回答