[ 1680304 ] Problem with Replenish Report when you use custom type

This commit is contained in:
Heng Sin Low 2007-04-17 00:51:55 +00:00
parent 9b93ed4317
commit e034e5ff52
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,7 @@ public class ReplenishReport extends SvrProcess
sql = "UPDATE T_Replenish"
+ " SET QtyToOrder = Order_Min "
+ "WHERE QtyToOrder < Order_Min"
+ " AND QtyToOrder > 0"
+ " AND AD_PInstance_ID=" + getAD_PInstance_ID();
no = DB.executeUpdate(sql, get_TrxName());
if (no != 0)
@ -288,6 +289,7 @@ public class ReplenishReport extends SvrProcess
sql = "UPDATE T_Replenish"
+ " SET QtyToOrder = QtyToOrder - MOD(QtyToOrder, Order_Pack) + Order_Pack "
+ "WHERE MOD(QtyToOrder, Order_Pack) <> 0"
+ " AND QtyToOrder > 0"
+ " AND AD_PInstance_ID=" + getAD_PInstance_ID();
no = DB.executeUpdate(sql, get_TrxName());
if (no != 0)