Search code examples
xmltally

Tally prime 2.1 is not fetching data under the given date


I was not able to fetch data of the below applied date. It fetches the whole data and also I'm not using education mode.

 <CURRENTCOMPANY>${company}</CURRENTCOMPANY>
 <SVEXPORTFORMAT>$$SysName:XML</SVEXPORTFORMAT>
 <SVFROMDATE>1-Apr-2022</SVFROMDATE>
 <SVTODATE>31-Apr-2022</SVTODATE>

I want to get only one month data, but it is not possible using the above code.


Solution

  • The company tag is wrong and for dates, use type="DATE":

        <SVFROMDATE TYPE="DATE">{{Fromdate}}</SVFROMDATE>
        <SVTODATE TYPE="DATE">{{ToDate}}</SVTODATE>
         <SVCURRENTCOMPANY>{{Company}}</SVCURRENTCOMPANY>