I have a main report that links to a subreport using the part number to find the average selling price from all customer orders. This average is displayed on the subreport. I need to use this average to multiply by an order quantity for a total order price and then give a grand total at the end of the report.
subreport formula field aveprice
whileprintingrecords;
shared numbervar aveprice := average({CUST_ORDER_LINE.UNIT_PRICE});
main report formula field invtrantdol
WhilePrintingRecords;
shared numbervar aveprice;
aveprice * {WORK_ORDER.DESIRED_QTY}
the fields are displayed in the group footer section
The problem I have is the invtrantdol does not match with the line it is on. It is for the line above it.
subreport formula field aveprice
whileprintingrecords;
shared numbervar aveprice := average({CUST_ORDER_LINE.UNIT_PRICE});
main report formula field invtrantdol
WhilePrintingRecords;
shared numbervar aveprice;
aveprice * {WORK_ORDER.DESIRED_QTY}
the fields are displayed in the group footer section
The problem I have is the invtrantdol does not match with the line it is on. It is for the line above it.