Implementation MRP Notice Action
http://sourceforge.net/tracker2/?func=detail&aid=2529050&group_id=176962&atid=879335
This commit is contained in:
parent
ff5c39b052
commit
26ce6b55f9
|
@ -482,7 +482,7 @@ public class MRP extends SvrProcess
|
|||
}
|
||||
|
||||
}
|
||||
else
|
||||
else if (product != null)
|
||||
{
|
||||
//Create Action Notice if exist supply
|
||||
getNetRequierements(
|
||||
|
@ -1138,6 +1138,10 @@ public class MRP extends SvrProcess
|
|||
for (MPPMRP mrp : mrps)
|
||||
{
|
||||
QtyScheduledReceipts = QtyScheduledReceipts.add(mrp.getQty());
|
||||
|
||||
if(DemandDateStartSchedule != null)
|
||||
{
|
||||
|
||||
//MRP-030 De-Expedite Action Notice
|
||||
//Indicates that a schedule supply order is due before it is needed and should be delayed,
|
||||
//or demand rescheduled to an earlier date.
|
||||
|
@ -1203,8 +1207,11 @@ public class MRP extends SvrProcess
|
|||
);
|
||||
}
|
||||
|
||||
if(DemandDateStartSchedule != null)
|
||||
{
|
||||
mrp.setIsAvailable(false);
|
||||
mrp.saveEx();
|
||||
|
||||
QtyNetReqs.add(mrp.getQty());
|
||||
|
||||
if (QtyNetReqs.signum() == 0 )
|
||||
{
|
||||
return QtyNetReqs;
|
||||
|
@ -1228,10 +1235,11 @@ public class MRP extends SvrProcess
|
|||
mrp.getQty(), comment
|
||||
);
|
||||
}
|
||||
}
|
||||
QtyNetReqs.add(mrp.getQty());
|
||||
mrp.setIsAvailable(false);
|
||||
mrp.saveEx();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return QtyNetReqs;
|
||||
|
|
Loading…
Reference in New Issue