I am trying to create date filters based on the current and the equivalent previous financial year (ie. 0101..3112) without mentioning the year in the formula. I am using the CALCDATE function but I cannot get a value for 01/01 and its equivalent for the previous year. Can anyone help?
0
Comments
The normal way is to use the virtual table date or the accounting period table depending on the context. These will give to the period starts and ends.
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
Declare a variable of datatype record, subtype date/accounting period. Then in the onprereport use
In the on predataitem use a setrange( "posting date", startdate, enddate );
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html