简体   繁体   中英

Tally XML to get Single Accounting Voucher

I tried many ways but getting only an empty voucher. Added id field and used the voucher number but still, it shows an empty voucher. Can anyone help to get the single Accounting Voucher(Sales Voucher)? Basically I need the invoice of the voucher.

<ENVELOPE>
    < HEADER >
    <TALLYREQUEST>Export Data</TALLYREQUEST>
    </HEADER>
  <BODY><EXPORTDATA>
    <REQUESTDESC>
      <STATICVARIABLES>
        <SVCURRENTCOMPANY>COMPANY NAME</SVCURRENTCOMPANY>   
        <SVFROMDATE>20200206</SVFROMDATE>
        <SVTODATE>20200206</SVTODATE>
        <SVEXPORTFORMAT>$$SysName:html</SVEXPORTFORMAT>

      </STATICVARIABLES>
      <REPORTNAME>ACCOUNTING VOUCHER</REPORTNAME>
    </REQUESTDESC>
  </EXPORTDATA>
  </BODY>
  </ENVELOPE >

This is the response

在此处输入图片说明

This XML request looks like it has been written for a report - do you want a report or a single voucher?

In case you need a single voucher, you can refer this stackoverflow thread .

And if you need a report, you need to change report name to 'Voucher Register'

<REPORTNAME>Voucher Register</REPORTNAME>

Here's how the output would look - https://ibb.co/j38cGZj

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM