Fix bug [ 1657372 ] M_MatchInv records can not be balanced
integrate solution reported by Chris Farley
This commit is contained in:
parent
2b0729720e
commit
892131e35f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue