Report Designer, Expressions? or Conditional Formatting? (CONT)

SUGGESTED

Further to my earlier post about conditional formatting. I now need to change it slightly and use a different field, but also to have 3 colours instead. I will see if I can explain it. 

I have butchered a copy of the Purchase Orders and Returns report as its got 90% of the information that I need from it. I have added RequestedDeliveryDates.DeliveryDate to the Details section that is shows the requested delivery date on each line item per PO and I have set the style to display as red by default and have used 

IF RequestedDeliveryDates.DeliveryDate > REPORT.DATE THEN

BEGIN
TextStyle -> Color := NamedColor("Green");
END

As conditional formatting and this works perfectly, red if its late and green if its not.. 

BUT

I need to add an extra step where the RequestedDeliveryDates.DeliveryDate is amber (or orange) if the date is within the lead time of the item. I am pretty sure I need to add the supplier table to the report using a join so that I can get the lead time or whether I can just reference that table. 

As far I can understand the logic its RED if the date is late, Amber if the date is late but within the lead time and green if its not late. 

Hope that makes sense. 

  • 0
    SUGGESTED

    Hi Derrick
    Apologies this reply has not reached you earlier.
    As the lead time is attached to the StockItemSuppliers table and can have multiple suppliers attached to the same stock item then a sub report would need creating to bring through the lead time for the preferred supplier attached to relevant stock item from the POP line onto the main report.
    If you have not been able to successfully achieve the outcome your after since your original post about this query then we would suggest you booked an appointment via the process here so we can discuss creating the report on your behalf as part of Sage 200 Services.
    Regards, Keith Carver
    Sage 200 Report Design