jwray100
16th November 2004, 21:32
I have written a report that displays each delivery for a customer with the order date, planned delivery date, and actual ship date. I am trying to add a column that would show status for each delivery, i.e. Late or On-Time, based on the difference between the planned delivery date and the actual ship date.
I have created a report field with the print expression:
(tdsls041.ddta - tdsls045.ddat) > 0 ? dsta.o : dsta.l
All four variables are defined as input variables to the report. dsta.o and dsta.l are delared extern and defined as "On-Time" and "Late", respectively, in the session script.
When I run the report I get blank output in this column for all records.
Anyone have an idea on how to fix this?
I would also like to have a "sub total" by customer and "grand total" for the report which would be the on-time order percentage (on-time shipments/total shipments) for each customer's shipments and all shipments, respectively, in the report.
Any ideas on how to go about doing this?
Thanks,
Joel
I have created a report field with the print expression:
(tdsls041.ddta - tdsls045.ddat) > 0 ? dsta.o : dsta.l
All four variables are defined as input variables to the report. dsta.o and dsta.l are delared extern and defined as "On-Time" and "Late", respectively, in the session script.
When I run the report I get blank output in this column for all records.
Anyone have an idea on how to fix this?
I would also like to have a "sub total" by customer and "grand total" for the report which would be the on-time order percentage (on-time shipments/total shipments) for each customer's shipments and all shipments, respectively, in the report.
Any ideas on how to go about doing this?
Thanks,
Joel