[Giving your topic a good title and explaining better what you need might help. This seems like you haven't the slightest idea what you need to do and want a complete solution from the community.]
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
You need to sum all the period, for that
//filter sales
recItemEntries.SETRANGE(recItemEntries."Entry type",recItemEntries."Entry type"::Sale);
//item
recItemEntries.SETRANGE(recItemEntries.Nº,youritem);
//period of time
startdate=CALCDATE('<-6M>',TODAY);
recItemEntries.SETRANGE(recItemEntries.postingdate,startdate,TODAY);
//total period
recItemEntries.CALCSUMS(recItemEntries.quantity);
//average
avg=recItemEntries.quantity/6;
You need to sum all the period, for that
//filter sales
recItemEntries.SETRANGE(recItemEntries."Entry type",recItemEntries."Entry type"::Sale);
//item
recItemEntries.SETRANGE(recItemEntries.Nº,youritem);
//period of time
startdate=CALCDATE('<-6M>',TODAY);
recItemEntries.SETRANGE(recItemEntries.postingdate,startdate,TODAY);
//total period
recItemEntries.CALCSUMS(recItemEntries.quantity);
//average
avg=recItemEntries.quantity/6;
[Giving your topic a good title and explaining better what you need might help. This seems like you haven't the slightest idea what you need to do and want a complete solution from the community.]
I'll try to implement your suggestions , thank you
Answers
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
//filter sales
recItemEntries.SETRANGE(recItemEntries."Entry type",recItemEntries."Entry type"::Sale);
//item
recItemEntries.SETRANGE(recItemEntries.Nº,youritem);
//period of time
startdate=CALCDATE('<-6M>',TODAY);
recItemEntries.SETRANGE(recItemEntries.postingdate,startdate,TODAY);
//total period
recItemEntries.CALCSUMS(recItemEntries.quantity);
//average
avg=recItemEntries.quantity/6;
I want Monthwise
I'll try to implement your suggestions , thank you