IDEMPIERE-1776 Payment Allocation: Allow user to apply payment to credit memo

This commit is contained in:
Elaine Tan 2014-02-28 10:55:14 +08:00
parent 7ca2cbc167
commit 118c4f74ef
1 changed files with 2 additions and 1 deletions

View File

@ -421,7 +421,8 @@ public class Allocation
if (col == i_payment)
{
if ( open.signum() > 0 && applied.signum() == -open.signum() )
if (! MSysConfig.getBooleanValue("ALLOW_APPLY_PAYMENT_TO_CREDITMEMO", false, Env.getAD_Client_ID(Env.getCtx()))
&& open.signum() > 0 && applied.signum() == -open.signum() )
applied = applied.negate();
if (! MSysConfig.getBooleanValue("ALLOW_OVER_APPLIED_PAYMENT", false, Env.getAD_Client_ID(Env.getCtx())))
if ( open.abs().compareTo( applied.abs() ) < 0 )