Once a Kit has been flagged as "In Process" the Work Order management module will not allow the users to change the WO status between Standard and Rework.
WO form Modifications:
When a user is trying to change the status for the work order from the "REWORK" to any other status we check the KIT data and if the KIT has only line shortages present the KIT status will become empty (instead of "KIT PROCSS"). The reason is that MRP is checking for the KIT status in order to determine whether it needs to explode the BOM to get the demands for this work order or BOM is already exploded. When changing status from anything to "REWORK" check CURVAL () because if someone else pulled the kit for that work order while the user was editing the status the kit status might already be updated to the "KIT PROCSS".
KIT form Modifications:
In the save method when line shortages are added and rework work order is selected replace start date and initials only when they are empty. When re-opening the KIT, check if work order status is rework kit status has to be "REWORK" as well. When saving, after issuing items from the inventory, do not update Kit Status if WO status is not "REWORK". For the regular WO if BOM is already exploded and shortages are created the kit status would be already updated, but if BOM was not exploded and only line shortage are present we do not want to change the kit status because MRP will only use line shortages and miss all the demands from the BOM.
|