2015-01-24 2 views
0

인보이스를 추가하고 해당 CLASS 입력란에 값을 채우려 고합니다 (인보이스 'CLASS'입력란의 캡쳐 화면을 게시 할 수 없습니다. 명성을 얻으려면, "PRICE EACH"필드 오른쪽에있는 필드), qbxml에 CLASS 값을 추가하는 방법을 모르겠습니다. 여기 내가 사용하여 XML이며 작동 : 2.1.0.30 : 나는 QuickBooks에 엔터프라이즈 버전 웹 커넥터를 사용하고quickbooks 데스크탑 웹 커넥터 qbxml : CLASS 입력란에 인보이스 추가

$xml = '<?xml version="1.0" encoding="utf-8"?> 
      <?qbxml version="2.0"?> 
      <QBXML> 
       <QBXMLMsgsRq onError="stopOnError"> 
       <InvoiceAddRq requestID="xxxxxxxx"> 
        <InvoiceAdd> 
        <CustomerRef> 
         <FullName>Some company:12 street gotham</FullName> 
        </CustomerRef> 
        <TxnDate>2015-01-23</TxnDate> 
        <RefNumber>TPY125</RefNumber> 
        <BillAddress> 
         <Addr1>some bill address</Addr1> 
         <City>some bill city</City> 
         <State>some bill state</State> 
         <PostalCode>some bill zip</PostalCode> 
         <Country>United States</Country> 
        </BillAddress> 
        <ShipAddress> 
         <Addr1>some ship address</Addr1> 
         <City>some ship address</City> 
         <State>some ship state</State> 
         <PostalCode>some ship zip</PostalCode> 
         <Country>United States</Country> 
        </ShipAddress> 
        <PONumber></PONumber> 
        <TermsRef> 
      <FullName>Net 120</FullName> 
        </TermsRef> 
        <Memo></Memo> 

        <InvoiceLineAdd> 
         <ItemRef> 
         <FullName>16 Electrical and Lighting</FullName> 
         </ItemRef> 
         <Desc>Item 1 Description Goes Here</Desc> 
         <Quantity>1</Quantity> 
         <Rate>33.00</Rate>      
        </InvoiceLineAdd> 

        </InvoiceAdd> 
       </InvoiceAddRq> 
       </QBXMLMsgsRq> 
      </QBXML>'; 

. 그렇다면 "CLASS"필드에 대해 XML에 무엇을 추가해야합니까? 미리 감사드립니다.

답변

0

당신은 항상 QuickBooks에 바탕을위한 XML 참조에 대한 QuickBooks에 OSR을 참조 할 수 있습니다 :

이 특정 경우에, 당신은이 같은 줄에 항목을 기준으로 Class을 설정할 수 있습니다 :

   ... 
       <InvoiceLineAdd> 
        <ItemRef> 
        <FullName>16 Electrical and Lighting</FullName> 
        </ItemRef> 
        <Desc>Item 1 Description Goes Here</Desc> 
        <Quantity>1</Quantity> 
        <Rate>33.00</Rate> 

        <ClassRef> 
        <ListID> ... specify a ListID here ...</ListID 
        <!-- Or, instead of ListID you can specify: --> 
        <FullName> ... specify Class FullName here ...</FullName> 

       </InvoiceLineAdd> 
       ... 
+0

고마워요. 나는 링크에 대해 몰랐다, 모든 것이 거기에있는 것 같다. – realife