Options

Date Filtering in GL Account

thankeshthankesh Member Posts: 170
edited 2012-02-28 in NAV Three Tier
Hi,

In my report, "Totaling" is the customized field from a customized table "GP analysis". I want to filter for those acc no. in the text field in G/L account table.

EG: If "Totaling" field has "10000..10020" (text) value. the corresponding acc. nos will get filtered so that the "balance to date" value can be calculated.
:-k

PF the below code:

GLAcc.RESET;
GLAcc.SETRANGE("No.",Totaling);
GLAcc.SETFILTER("Date Filter",'%1..%2',S_CurrMonth,E_CurrMonth);
IF GLAcc.FINDSET THEN
REPEAT
GLAcc.CALCFIELDS(GLAcc."Balance at Date");
Currmonth_Totsale += GLAcc."Balance at Date";
UNTIL GLAcc.NEXT = 0;
With warm regards,

Thankesh

***Learn to lead***

Comments

Sign In or Register to comment.