Hi Friends,
I need a logic for the below requirement.
I need a report to display the inactive customers or vendors, those who did not made any transactions for the past 1 year. Could any tell the logic for displaying the inactive customers or vendors?
Thanks in advance,
Aravindh R.
0
Answers
CustLedgEntry.SETCURRENTKEY("Customer No.","Posting Date");
CustLedgEntry.SETRANGE("Customer No.",Customer."No.");
CustLedgEntry.SETFILTER("Posting Date",'%1..',CALCDATE('-1Y',TODAY));
IF FINDFIRST THEN
CurrReport.SKIP;
Your report will then only show customers which do not have transactions in the last year. You could make it more flexible by having a field on the Options tab to select the time period and then use that for the CALCDATE instead of hardcoding it to one year.
KCP Consultores
Aravindh R.
Hope this helps.
Chn
KCP Consultores