Implementation MRP Notice Action

http://sourceforge.net/tracker2/?func=detail&aid=2529050&group_id=176962&atid=879335
This commit is contained in:
vpj-cd 2009-01-22 18:41:34 +00:00
parent ff5c39b052
commit 26ce6b55f9
1 changed files with 77 additions and 69 deletions

View File

@ -482,7 +482,7 @@ public class MRP extends SvrProcess
} }
} }
else else if (product != null)
{ {
//Create Action Notice if exist supply //Create Action Notice if exist supply
getNetRequierements( getNetRequierements(
@ -1138,6 +1138,10 @@ public class MRP extends SvrProcess
for (MPPMRP mrp : mrps) for (MPPMRP mrp : mrps)
{ {
QtyScheduledReceipts = QtyScheduledReceipts.add(mrp.getQty()); QtyScheduledReceipts = QtyScheduledReceipts.add(mrp.getQty());
if(DemandDateStartSchedule != null)
{
//MRP-030 De-Expedite Action Notice //MRP-030 De-Expedite Action Notice
//Indicates that a schedule supply order is due before it is needed and should be delayed, //Indicates that a schedule supply order is due before it is needed and should be delayed,
//or demand rescheduled to an earlier date. //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 ) if (QtyNetReqs.signum() == 0 )
{ {
return QtyNetReqs; return QtyNetReqs;
@ -1228,10 +1235,11 @@ public class MRP extends SvrProcess
mrp.getQty(), comment mrp.getQty(), comment
); );
} }
} QtyNetReqs.add(mrp.getQty());
mrp.setIsAvailable(false); mrp.setIsAvailable(false);
mrp.saveEx(); mrp.saveEx();
} }
}
return QtyNetReqs; return QtyNetReqs;