Hi Navision Experts!
I have a report that contains following filter, according to user report is displaying wrong data so i want to understand this filter.
ILE1.SETFILTER(ILE1."Posting Date",'%1..%2',CALCDATE('-1M',EndDate),EndDate);
My whole code of report to calculate PurchaesQty
ILE1.RESET;
ILE1.SETCURRENTKEY("Item No.","Posting Date","Location Code","Remaining Quantity");
ILE1.SETRANGE(ILE1."Item No.","No.");
ILE1.SETFILTER(ILE1."Posting Date",'%1..%2',CALCDATE('-1M',EndDate),EndDate);
IF LocationFilter <>'' THEN
ILE1.SETFILTER(ILE1."Location Code",LocationFilter);
ILE1.SETFILTER(ILE1."Remaining Quantity",'>%1',0);
IF ILE1.FIND('-') THEN
REPEAT
PurchaseQty+=ILE1.Quantity;
ILE1.CALCFIELDS("Cost Amount (Actual)");
PurchaseValue+=ILE1."Cost Amount (Actual)";
UNTIL recILE1.NEXT = 0;
Kindly suggest me how purchase qty is calculating.
Thanx.
0
Comments
if enddate value is 20-07-2012(DD-MM-YYYY) then Hope it's clear now....!!!
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Firstly thanx for your reply,
As per your example what will be the range of posting date to select data.
Thanx