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. *
|
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
* 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 *
|
* under the terms version 2 of the GNU General Public License as published *
|
||||||
|
@ -27,7 +27,12 @@ import org.compiere.util.*;
|
||||||
* Accounting Fact Entry.
|
* Accounting Fact Entry.
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @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
|
public final class FactLine extends X_Fact_Acct
|
||||||
{
|
{
|
||||||
|
@ -940,9 +945,8 @@ public final class FactLine extends X_Fact_Acct
|
||||||
BigDecimal cr = fact.getAmtAcctCr();
|
BigDecimal cr = fact.getAmtAcctCr();
|
||||||
setAmtAcctDr (cr.multiply(multiplier));
|
setAmtAcctDr (cr.multiply(multiplier));
|
||||||
setAmtAcctCr (dr.multiply(multiplier));
|
setAmtAcctCr (dr.multiply(multiplier));
|
||||||
// Source Amounts
|
// Source Amounts
|
||||||
setAmtSourceDr (getAmtAcctDr());
|
setAmtSource(fact.getC_Currency_ID(), getAmtAcctDr(), getAmtAcctCr());
|
||||||
setAmtSourceCr (getAmtAcctCr());
|
|
||||||
//
|
//
|
||||||
success = true;
|
success = true;
|
||||||
log.fine(new StringBuffer("(Table=").append(AD_Table_ID)
|
log.fine(new StringBuffer("(Table=").append(AD_Table_ID)
|
||||||
|
|
Loading…
Reference in New Issue