如何通过soap请求获取特定凭证类型的凭证列表

时间:2017-09-06 05:07:17

标签: xml

我正在尝试通过XML请求获取Tally Erp 9 Ledger,一切正常。我收到了凭证清单,但我需要从该清单中获取特定的凭证类型。

    <ENVELOPE>
    <HEADER>
    <VERSION>1</VERSION>
    <TALLYREQUEST>Export</TALLYREQUEST>
     <TYPE>Collection</TYPE>
   <ID>Day Book</ID>
    </HEADER>
  <BODY>
  <DESC>
 <STATICVARIABLES>
  <SVFROMDATE TYPE="Date">dd-MMM-yyyy</SVFROMDATE>
    <SVTODATE TYPE="Date">dd-MMM-yyyy</SVTODATE>
   <EXPLODEFLAG>Yes</EXPLODEFLAG>
          <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
      </STATICVARIABLES>
     <TDL>
       <TDLMESSAGE>
         <COLLECTION NAME="Day Book" ISMODIFY="No">
      <TYPE>VoucherType</TYPE>
      <FETCH>Name,Parent</FETCH>

        <FILTERS>VTYPE</FILTERS>

        </COLLECTION>

             <SYSTEM TYPE="Formulae" NAME="VTYPE">

          </SYSTEM>


            </TDLMESSAGE>
            </TDL>
             </DESC>
               </BODY>
             </ENVELOPE>

1 个答案:

答案 0 :(得分:1)

你去了:

<ENVELOPE>
  <HEADER>
    <VERSION>1</VERSION>
    <TALLYREQUEST>EXPORT</TALLYREQUEST>
    <TYPE>DATA</TYPE>
    <ID>Voucher Register</ID>
  </HEADER>
  <BODY>
    <DESC>
      <STATICVARIABLES>
      <VoucherTypeName>Sales</VoucherTypeName>
      </STATICVARIABLES>
    </DESC>
  </BODY>
</ENVELOPE>