updated react servs form to fill available intrusive maintenance flows based on data instead of a form list
This commit is contained in:
@ -879,7 +879,29 @@ Service GetFlowChecklistIds(NicaOrderFlowIds, NicaOrderFlowType=ORDER_TYPES, Rea
|
||||
|
||||
end service
|
||||
|
||||
|
||||
Service GetAvailableFlowIds(NicaOrderType=ORDER_TYPES)
|
||||
|
||||
If NicaOrderType NE '' then
|
||||
ChecklistIds = ''
|
||||
Extract_SI_Keys('NICA_CHECKLISTS', 'NICA_ORDER_FLOW_TYPE', NicaOrderType, ChecklistIds)
|
||||
If ChecklistIds NE '' then
|
||||
FlowIds = Xlate('NICA_CHECKLISTS', ChecklistIds, 'NICA_ORDER_FLOW_IDS', 'X')
|
||||
If FlowIds NE '' then
|
||||
FlowIds = SRP_Array('Clean', FlowIds, 'TrimAndMakeUnique', @VM)
|
||||
FlowIds = SRP_Array('SortSimpleList', FlowIds, 'AscendingText', @VM)
|
||||
Response = FlowIds
|
||||
end
|
||||
end
|
||||
end else
|
||||
ErrorMsg = 'Error in ':Service:' service. Null NicaOrderType passed in.'
|
||||
Error_Services('Add', ErrorMsg)
|
||||
end
|
||||
|
||||
end service
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Internal GoSubs
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user