Why Opening Balance and Closing Balance values is same in XML Ledger Report

Discussion in 'Tally Integration' started by Researcher, Jul 6, 2021.

    
  1. Researcher

    Researcher New Member


    XML Request shown below is used to fetch Opening Balance And Closing Balance values of ledger in tally. They are giving same values for both opening balance and closing balance.

    Code:
    <ENVELOPE><HEADER><VERSION>1</VERSION><TALLYREQUEST>Export</TALLYREQUEST><TYPE>Collection</TYPE><ID>TestLedgerList</ID></HEADER><BODY><DESC><TDL><TDLMESSAGE><COLLECTION NAME='TestLedgerList' ISMODIFY='NO'><TYPE>Ledger</TYPE ><FETCH>Name,OpeningBalance, ClosingBalance  </FETCH></COLLECTION></TDLMESSAGE></TDL></DESC></BODY></ENVELOPE>
    The opening and closing balances are not equal when it is checked in tally software directly.
    How to fetch Opening and Closing Balance through XML request.
     


  2. Sai Vineeth

    Sai Vineeth Active Member


    You need to send From Date and todate in StaticVariables
    Sample XML to get ledger opening and closing balance for specific period
     
    Researcher likes this.


Share This Page