我正在尝试通过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>
答案 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>