I want to read the expiry dates of all input lines on Work Orders. Client wants to display a little popup to advise if an item is expired.
Like with the outputs, I guess I need to use a similar implementation of the IJiwaSOHConsumer?
Will this work when the work order is only at Forecast status? I reckon this might be where the complexity lies. When W/O is at Started or Closed is too late for this client. The popup needs to show at forecast. I know no inputs have been allocated yet from SOH so I'll need some way to know what the likely SOH lines would get allocated based on FIFO.
If I could have a starting point beyond what I have here that should at least give me some guidance.
- Code: Select all
if (workOrder.Status == JiwaFinancials.Jiwa.JiwaBillOfMaterials.WorkOrder.WorkOrder.Statuses.Forecast)
{
foreach(JiwaFinancials.Jiwa.JiwaBillOfMaterials.WorkOrder.Stage stage in workOrder.Stages)
{
foreach(JiwaFinancials.Jiwa.JiwaBillOfMaterials.WorkOrder.InputItem inputItem in stage.InputItems)
{
//look for expiry dates
}
}
}


