QBSDK - 英国2013忽略关于CustomerAdd请求的TaxRegistrationNumber

时间:2013-07-19 17:36:14

标签: quickbooks qbxml qbfc

QuickBooks UK 2013 - SDK忽略了TaxRegistrationNumber字段。如果您查看下面的请求,我们将设置TaxRegistrationNumber,但它会被忽略,如响应中所示。

这是传出XML

`
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE QBXML PUBLIC '-//INTUIT//DTD QBXML QBD 12.0//EN' >
<QBXML>
  <QBXMLMsgsRq onError = "continueOnError">
    <CustomerAddRq requestID = "1">
      <CustomerAdd>
        <Name>AAA Euro</Name>
        <IsActive>1</IsActive>
        <BillAddress>
          <Addr1></Addr1>
          <Addr2></Addr2>
          <Addr3></Addr3>
          <Addr4></Addr4>
          <Addr5></Addr5>
          <City></City>
          <State></State>
          <PostalCode></PostalCode>
          <Country></Country>
        </BillAddress>
        <ShipAddress>
          <Addr1></Addr1>
          <Addr2></Addr2>
          <Addr3></Addr3>
          <Addr4></Addr4>
          <Addr5></Addr5>
          <City></City>
          <State></State>
          <PostalCode></PostalCode>
          <Country></Country>
        </ShipAddress>
        <SalesTaxCodeRef>
          <FullName>E</FullName>
        </SalesTaxCodeRef>
        <SalesTaxCountry>UK</SalesTaxCountry>
        <TaxRegistrationNumber>230 161 818</TaxRegistrationNumber>
        <CurrencyRef>
          <FullName>British Pound Sterling</FullName>
        </CurrencyRef>
      </CustomerAdd>
    </CustomerAddRq>
  </QBXMLMsgsRq>
</QBXML>
`

这是返回XML - 注意缺少TaxRegistrationNumber

`
<QBXML>
<QBXMLMsgsRs>
<CustomerAddRs requestID="1" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
<CustomerRet>
<ListID>8000000F-1374158926</ListID>
<TimeCreated>2013-07-18T10:48:46-05:00</TimeCreated>
<TimeModified>2013-07-18T10:48:46-05:00</TimeModified>
<EditSequence>1374158926</EditSequence>
<Name>AAA Euro</Name>
<FullName>AAA Euro</FullName>
<IsActive>true</IsActive>
<Sublevel>0</Sublevel>
<Balance>0.00</Balance>
<TotalBalance>0.00</TotalBalance>
<SalesTaxCodeRef>
<ListID>80000007-1350563554</ListID>
<FullName>E</FullName>
</SalesTaxCodeRef>
<SalesTaxCountry>UK</SalesTaxCountry>
<JobStatus>None</JobStatus>
<PreferredDeliveryMethod>None</PreferredDeliveryMethod>
<CurrencyRef>
<ListID>80000016-1350563181</ListID>
<FullName>British Pound Sterling</FullName>
</CurrencyRef>
</CustomerRet>
</CustomerAddRs>
</QBXMLMsgsRs>
</QBXML>
`

1 个答案:

答案 0 :(得分:0)

我经历过的时候,我发送的所有内容都没有在回复中返回。您是否已验证QB中的元素是否已更新?

我会在我的请求中添加以下内容以强制返回元素。

 <IncludeRetElement >TaxRegistrationNumber</IncludeRetElement>