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
This commit is contained in:
vpj-cd 2007-04-18 22:57:18 +00:00
parent 56575e6679
commit 1e4ecda35a
1 changed files with 2 additions and 0 deletions

View File

@ -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();