2013-05-18 55 views
1

對QuickBooks Desktop使用C#API時,如何將行標記爲應納稅?這裏是我的代碼:IPP應納稅額

  InvoiceLine qboInvoiceLine = new InvoiceLine(); 
      qboInvoiceLine.Amount = order.ShippingExclTax; 
      qboInvoiceLine.AmountSpecified = true; 
      qboInvoiceLine.Taxable = false; 
      qboInvoiceLine.TaxableSpecified = false; 

我的XML不指定應稅元素:

<?xml version="1.0" encoding="utf-8"?> 
<Add xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" RequestId="8313fa49e42f432cacfcade7b0787a7a" FullResponse="true" xmlns="http://www.intuit.com/sb/cdm/v2"><ExternalRealmId>310582310</ExternalRealmId> 
    <Object xsi:type="Invoice"> 
<Header> 
    <DocNumber>1</DocNumber> 
    <TxnDate>2013-05-18T17:54:52.668263-04:00</TxnDate> 
    <CustomerName>Web Store</CustomerName> 
    <ShipAddr> 
    <Line1>John Smith</Line1> 
    <Line2>21 West 52nd Street</Line2> 
    <Line3 /> 
    <City>New York</City> 
    <Country>United States</Country> 
    <CountrySubDivisionCode>New York</CountrySubDivisionCode> 
    <PostalCode>10021</PostalCode> 
    </ShipAddr> 
    <DiscountAmt>0</DiscountAmt> 
</Header> 
<Line> 
    <Amount>1.0000</Amount> 
    <ItemName>TestShoe123</ItemName> 
    <UnitPrice>1.0000</UnitPrice> 
    <Qty>1</Qty> 
</Line> 
<Line> 
    <Amount>0.0000</Amount> 
    <ItemName>In-Store Pickup</ItemName> 
    <UnitPrice>0.0000</UnitPrice> 
    <Qty>1</Qty> 
</Line> 

回答

1

我需要分配SalesTaxCodeName以 「稅」 或 「非」,而不是應稅如真或假。

+3

您是否已嘗試將SalesTaxCodeName添加到標頭?有關可添加的部分,請參閱https://developer.intuit.com/docs/0025_quickbooksapi/0050_data_services/v2/0500_quickbooks_windows/0600_object_reference/invoice。 –