9的xml请求来检索销售订单明细

9的xml请求来检索销售订单明细

本文介绍了需要使用对Tally ERp 9的xml请求来检索销售订单明细的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将开发一个与Tally ERP 9集成的桌面应用程序.我的应用程序对XML Post请求使用('localhost:9000').

I am going to develop a desktop application for Integration with Tally ERP 9. My application uses ('localhost:9000') for XML Post request.

我可以通过使用下面的XML发布请求来汇总所有销售记录.

I can get all Sales Records by using below XML post request to tally.

<ENVELOPE>
<HEADER>
<VERSION>1</VERSION>
<TALLYREQUEST>Export</TALLYREQUEST>
<TYPE>Data</TYPE>
<ID>Sales Orders Book</ID>
</HEADER>
<BODY>
<DESC>
<STATICVARIABLES>
<EXPLODEFLAG>Yes</EXPLODEFLAG>
<SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
<SVFROMDATE>01/04/2006</SVFROMDATE>
<SVTODATE>31/03/2013</SVTODATE>
</STATICVARIABLES>
<TDL>
<TDLMESSAGE>
<REPORT NAME="Sales Orders Book">
</REPORT>
</TDLMESSAGE>
</TDL>
</DESC>
</BODY>
</ENVELOPE>

现在,我需要通过传递订单编号/参考号来检索单个销售订单的详细信息.

Now, I need to retrieve single sales order details by passing orderid/referencenumber.

我在<STATICVARIABLES>中一一尝试了以下语法,但失败了,

I tried below syntaxes one by one in <STATICVARIABLES> but it fails,

<SVGUID>91209900-f40c-4222-b605-79462be5b1cf-00000043</SVGUID>
<SVREMOTEID>91209900-f40c-4222-b605-79462be5b1cf-00000043</SVREMOTEID>
<SVVCHKEY>91209900-f40c-4222-b605-79462be5b1cf-0000a46d:00000078</SVVCHKEY>
<SVMASTERID>67</SVMASTERID>

请让我知道是否有人知道正确的XML请求或与使用xml请求进行的各种导出操作有关的任何文档.

Please let me know if anyone knows the proper XML request or any documentation related to various export operation using xml request.

推荐答案

    <ENVELOPE>
    <HEADER>
    <VERSION>1</VERSION>
    <TALLYREQUEST>EXPORT</TALLYREQUEST>
    <TYPE>DATA</TYPE>
    <ID>Voucher Register</ID>
    </HEADER>
    <BODY>
    <DESC>
    <STATICVARIABLES>
    <VoucherTypeName>Sales</VoucherTypeName>
    <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
    <SVFROMDATE TYPE="Date">20170331</SVFROMDATE>
    <SVTODATE TYPE="Date">20170331</SVTODATE>
    </STATICVARIABLES>
    </DESC>
    </BODY>
    </ENVELOPE>

尝试一下,我用

这篇关于需要使用对Tally ERp 9的xml请求来检索销售订单明细的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 23:42