I need to create a report which is basically the customer/item sales report. However, the users would perfer a monthly split over the year to see seasonal information. Seeing what i could do to generate this information, i used the information in the aged debtors as that showed a “period” layout, and then entered this into a new customer/item sales report. The initial problem i had was that for each item / period it copied down down the above value if the value was zero. As the “field” was a variable, I used the “clear” command in order to correct this. The next problem i am faced with is that if there has been a sale over a number of different periods, then only the last value is returned
quote:
Actual Sales Pd 1 = 10 Pd 2 = 20 Pd 3 = 30 Total Sales = 60 Report Pd 1 Pd 2 Pd 3 00 00 30
I am using the customer and value entry dataitems on the value entry i have added this : OnAfterGetRecord() CLEAR(InvtQty); FOR i := 1 TO 14 DO IF ("Posting Date" >= PeriodStartDate[i]) AND ("Posting Date" < PeriodStartDate[i + 1]) THEN BEGIN CLEAR(InvtCost); InvtQty[i] := "Invoiced Quantity"; IF InvtQty[i] <> 0 THEN PrintLine := TRUE; InvtCost[i] := Amount; //"Adjusted Cost (Expected)"; IF InvtCost[i] <> 0 THEN PrintLine := TRUE; END;
Is this something i should be getting the NSC to do, or will i be able to finish it??! (the latter being better, as ive got so far!!)