From 1e4ecda35afec61c624a948b923170573908dbf8 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Wed, 18 Apr 2007 22:57:18 +0000 Subject: [PATCH] Fixed : [ 1703318 ] Error generate invoice line ad charge and should use product https://sourceforge.net/tracker/index.php?func=detail&aid=1703318&group_id=176962&atid=879332 --- base/src/org/compiere/model/MInvoiceLine.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/base/src/org/compiere/model/MInvoiceLine.java b/base/src/org/compiere/model/MInvoiceLine.java index 10b41fe950..cbcab33dd2 100644 --- a/base/src/org/compiere/model/MInvoiceLine.java +++ b/base/src/org/compiere/model/MInvoiceLine.java @@ -189,6 +189,7 @@ public class MInvoiceLine extends X_C_InvoiceLine setIsDescription(oLine.isDescription()); setDescription(oLine.getDescription()); // + if(oLine.getM_Product_ID() == 0) setC_Charge_ID(oLine.getC_Charge_ID()); // setM_Product_ID(oLine.getM_Product_ID()); @@ -236,6 +237,7 @@ public class MInvoiceLine extends X_C_InvoiceLine setC_UOM_ID(sLine.getC_UOM_ID()); setM_AttributeSetInstance_ID(sLine.getM_AttributeSetInstance_ID()); // setS_ResourceAssignment_ID(sLine.getS_ResourceAssignment_ID()); + if(getM_Product_ID() == 0) setC_Charge_ID(sLine.getC_Charge_ID()); // int C_OrderLine_ID = sLine.getC_OrderLine_ID();