batigoal a écrit:
3.1.7.2 “Save” button
At save:
- Check if instructions exists if for this QA number,
- If yes,
o control that all instructions results for this QA number is in status COMPLETED
o If it is not the case, display popup ‘Instruction results are needed for QA nnn, you cannot apply a final decision’
- Else
o Put the “final decision” frozen with decision in red for all selected decisions
o If the decision is ‘Unquarantine’
Search in Quarantine table the request for this FG and QA number
Update the line to ask to remove the quarantine (ask deactivation)
Send a mail to ICT logistic SD: “Decision to deactivate quarantine on QA numer x FG p has been requested by <Author>”
o If the decision is “SCRAP”
Send a mail to ICT logistic SD: “Decision to Scrap QA number x FG p has been requested by <Author>. ”
o If the decision is CONFORM
Put the “final decision” frozen with decision in red for all selected decisions
Insert into table chnc_type_request one request with
• Request_id (automatically generated)
• Requestor (steduid)
• Comment
• Suspected plant (store)
• Status = REQUESTED
Insert into table chnc_type_request_qanbr for all QA number crosschecked (selected decisions)
• QA nbr
• Requested nc flag
• Lot id
• Status = Requested
Send a mail to plant QA logistic involved in the operation “A new request has been created for lot xx Qa number yyyy product ppppp. Please flag the lot xxx in store”.
o Insert decisions in the LEMS_EVENT_FINAL_DECISION table with the LOT/QA number and request id generated in status “Requested” or “PENDING” for intermediate store.
algorithme de tafiole