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
|
@ -28,6 +28,11 @@ import org.compiere.util.*;
|
||||||
*
|
*
|
||||||
* @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
|
||||||
{
|
{
|
||||||
|
@ -941,8 +946,7 @@ public final class FactLine extends X_Fact_Acct
|
||||||
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