使用 xml 标签从 Tally Erp 9 中按月显示分类帐详细信息
Display LedgerDetails MonthlyWise from TallyErp 9 using xml tag
我正在从 tally erp9 中获取分类凭证。我能够每月明智地获取详细信息。现在我需要像这样获取每月明智的分类帐摘要
目前我获取账本凭证的代码是这样的:
<?xml version=1.0 encoding=UTF-8>
<ENVELOPE>
<HEADER>
<TALLYREQUEST>Export Data</TALLYREQUEST>
</HEADER>
<BODY>
<EXPORTDATA>
<REQUESTDESC>
<REPORTNAME>Ledger Vouchers</REPORTNAME>
<STATICVARIABLES>
<SVCURRENTCOMPANY>Prakash Electrical Enterprises (17-18)</SVCURRENTCOMPANY>
<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
<SHOWRUNBALANCE>Yes</SHOWRUNBALANCE>
<SVFROMDATE>1-Apr-2017</SVFROMDATE>
<SVTODATE>`+ lastDate + `</SVTODATE>
<LEDGERNAME>`+ ledgerName + `</LEDGERNAME>
</STATICVARIABLES>
</REQUESTDESC>
</EXPORTDATA>
</BODY>
</ENVELOPE></xml>
XML 请求从 Tally ERP 9 获取特定分类账的分类账月度摘要。
<ENVELOPE>
<HEADER>
<TALLYREQUEST>Export Data</TALLYREQUEST>
</HEADER>
<BODY>
<EXPORTDATA>
<REQUESTDESC>
<STATICVARIABLES>
<!--Specify the Report FORMAT here-->
<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
<!-- Show Opening balances -->
<DSPSHOWOPENING>Yes</DSPSHOWOPENING>
<!-- Show Dr/Cr totals or only NET balance of Dr/Cr -->
<DSPSHOWNETT>No</DSPSHOWNETT>
<DSPSHOWTRANS>Yes</DSPSHOWTRANS>
<!-- Month,3 Month, 6 Month, 12 Month-->
<!-- Or specify Day for Daily breakup report-->
<SVPERIODICITY>Month</SVPERIODICITY>
<!-- Required for Monthly Summary Report-->
<DSPSHOWMONTHLY>Yes</DSPSHOWMONTHLY>
<DSPSHOWALLACCOUNTS>Yes</DSPSHOWALLACCOUNTS>
<!--Specify the Period here. -->
<SVFROMDATE>20170401</SVFROMDATE>
<SVTODATE>20180331</SVTODATE>
<!-- Specify the LedgerName here -->
<LEDGERNAME>ABC</LEDGERNAME>
</STATICVARIABLES>
<!-- Report Name -->
<REPORTNAME>Ledger Monthly Summary</REPORTNAME>
</REQUESTDESC>
</EXPORTDATA>
</BODY>
</ENVELOPE>
备注:
- 在标签中指定分类帐名称 LEDGERNAME
- 使用 SVPERIODICITY 标签按每月、每季度等进行分组
我正在从 tally erp9 中获取分类凭证。我能够每月明智地获取详细信息。现在我需要像这样获取每月明智的分类帐摘要
目前我获取账本凭证的代码是这样的:
<?xml version=1.0 encoding=UTF-8>
<ENVELOPE>
<HEADER>
<TALLYREQUEST>Export Data</TALLYREQUEST>
</HEADER>
<BODY>
<EXPORTDATA>
<REQUESTDESC>
<REPORTNAME>Ledger Vouchers</REPORTNAME>
<STATICVARIABLES>
<SVCURRENTCOMPANY>Prakash Electrical Enterprises (17-18)</SVCURRENTCOMPANY>
<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
<SHOWRUNBALANCE>Yes</SHOWRUNBALANCE>
<SVFROMDATE>1-Apr-2017</SVFROMDATE>
<SVTODATE>`+ lastDate + `</SVTODATE>
<LEDGERNAME>`+ ledgerName + `</LEDGERNAME>
</STATICVARIABLES>
</REQUESTDESC>
</EXPORTDATA>
</BODY>
</ENVELOPE></xml>
XML 请求从 Tally ERP 9 获取特定分类账的分类账月度摘要。
<ENVELOPE>
<HEADER>
<TALLYREQUEST>Export Data</TALLYREQUEST>
</HEADER>
<BODY>
<EXPORTDATA>
<REQUESTDESC>
<STATICVARIABLES>
<!--Specify the Report FORMAT here-->
<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
<!-- Show Opening balances -->
<DSPSHOWOPENING>Yes</DSPSHOWOPENING>
<!-- Show Dr/Cr totals or only NET balance of Dr/Cr -->
<DSPSHOWNETT>No</DSPSHOWNETT>
<DSPSHOWTRANS>Yes</DSPSHOWTRANS>
<!-- Month,3 Month, 6 Month, 12 Month-->
<!-- Or specify Day for Daily breakup report-->
<SVPERIODICITY>Month</SVPERIODICITY>
<!-- Required for Monthly Summary Report-->
<DSPSHOWMONTHLY>Yes</DSPSHOWMONTHLY>
<DSPSHOWALLACCOUNTS>Yes</DSPSHOWALLACCOUNTS>
<!--Specify the Period here. -->
<SVFROMDATE>20170401</SVFROMDATE>
<SVTODATE>20180331</SVTODATE>
<!-- Specify the LedgerName here -->
<LEDGERNAME>ABC</LEDGERNAME>
</STATICVARIABLES>
<!-- Report Name -->
<REPORTNAME>Ledger Monthly Summary</REPORTNAME>
</REQUESTDESC>
</EXPORTDATA>
</BODY>
</ENVELOPE>
备注:
- 在标签中指定分类帐名称 LEDGERNAME
- 使用 SVPERIODICITY 标签按每月、每季度等进行分组