IPP应税行

时间:2013-05-18 22:02:00

标签: intuit-partner-platform

使用QuickBooks Desktop的C#API,如何将行标记为应税?这是我的代码:

            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 个答案:

答案 0 :(得分:1)

我需要将SalesTaxCodeName分配给“Tax”或“Non”,而不是Taxable分配为true或false。