IDEMPIERE-1776 Payment Allocation: Allow user to apply payment to credit memo
This commit is contained in:
parent
7ca2cbc167
commit
118c4f74ef
|
@ -421,7 +421,8 @@ public class Allocation
|
||||||
|
|
||||||
if (col == i_payment)
|
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();
|
applied = applied.negate();
|
||||||
if (! MSysConfig.getBooleanValue("ALLOW_OVER_APPLIED_PAYMENT", false, Env.getAD_Client_ID(Env.getCtx())))
|
if (! MSysConfig.getBooleanValue("ALLOW_OVER_APPLIED_PAYMENT", false, Env.getAD_Client_ID(Env.getCtx())))
|
||||||
if ( open.abs().compareTo( applied.abs() ) < 0 )
|
if ( open.abs().compareTo( applied.abs() ) < 0 )
|
||||||
|
|
Loading…
Reference in New Issue