From ce7b1aeb4500e8727284f6d72d8aea26ff557b51 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Mon, 12 Jan 2009 20:51:09 +0000 Subject: [PATCH] Revision: 8054 http://adempiere.svn.sourceforge.net/adempiere/?rev=8054&view=rev Author: vpj-cd Date: 2009-01-12 20:39:55 +0000 (Mon, 12 Jan 2009) Log Message: ----------- fixed the issue with IDColumn [vpj-cd] Make To Kit functionality http://sourceforge.net/tracker2/?func=detail&atid=879335&aid=2501713&group_id=176962 The kit functionality let define a BOM Type of Make To Kit Type when it is combined with BOM Use Manufacturing ADempiere let create a Manufacturing Order from Standard Sales Order this functionality is very similar to Make To Order but with de different that when a Customer Shipment for this Sales Order is completed the Manufacturing Order is close , finish product is receipt and the components are issue automatically. --- base/src/org/eevolution/model/MPPOrder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/base/src/org/eevolution/model/MPPOrder.java b/base/src/org/eevolution/model/MPPOrder.java index 8cea3414bc..fbeae95324 100644 --- a/base/src/org/eevolution/model/MPPOrder.java +++ b/base/src/org/eevolution/model/MPPOrder.java @@ -27,7 +27,6 @@ import java.util.Properties; import org.adempiere.exceptions.AdempiereException; import org.adempiere.exceptions.DocTypeNotFoundException; -import org.compiere.minigrid.IDColumn; import org.compiere.model.MAcctSchema; import org.compiere.model.MClient; import org.compiere.model.MCost; @@ -657,7 +656,7 @@ public class MPPOrder extends X_PP_Order implements DocAction for(int i = 0; i < issue.length; i++ ) { - IDColumn id = (IDColumn) issue[i][0].get(0); + KeyNamePair key = (KeyNamePair) issue[i][0].get(0); Boolean isCritical = (Boolean) issue[i][0].get(1); String value = (String)issue[i][0].get(2); KeyNamePair productkey = (KeyNamePair) issue[i][0].get(3); @@ -674,7 +673,7 @@ public class MPPOrder extends X_PP_Order implements DocAction MPPOrder.createIssue( this, - id.getRecord_ID(), + key.getKey(), today, qtyToDeliver, qtyScrapComponent, Env.ZERO,