diff --git a/serverRoot/src/main/server/org/compiere/acct/FactLine.java b/serverRoot/src/main/server/org/compiere/acct/FactLine.java index f009b4366e..bee50a0f55 100644 --- a/serverRoot/src/main/server/org/compiere/acct/FactLine.java +++ b/serverRoot/src/main/server/org/compiere/acct/FactLine.java @@ -1,5 +1,5 @@ /****************************************************************************** - * Product: Adempiere ERP & CRM Smart Business Solution * + * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * * under the terms version 2 of the GNU General Public License as published * @@ -27,7 +27,12 @@ import org.compiere.util.*; * Accounting Fact Entry. * * @author Jorg Janke - * @version $Id: FactLine.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $ + * @version $Id: FactLine.java,v 1.3 2006/07/30 00:53:33 jjanke Exp $ + * + * Contributor(s): + * Chris Farley: Fix Bug [ 1657372 ] M_MatchInv records can not be balanced + * https://sourceforge.net/forum/message.php?msg_id=4151117 + * */ public final class FactLine extends X_Fact_Acct { @@ -940,9 +945,8 @@ public final class FactLine extends X_Fact_Acct BigDecimal cr = fact.getAmtAcctCr(); setAmtAcctDr (cr.multiply(multiplier)); setAmtAcctCr (dr.multiply(multiplier)); - // Source Amounts - setAmtSourceDr (getAmtAcctDr()); - setAmtSourceCr (getAmtAcctCr()); + // Source Amounts + setAmtSource(fact.getC_Currency_ID(), getAmtAcctDr(), getAmtAcctCr()); // success = true; log.fine(new StringBuffer("(Table=").append(AD_Table_ID)