FINERACT-822 enable OperatorPrecedence error

This commit is contained in:
percyashu
2020-06-08 02:32:30 +01:00
committed by Yemdjih Kaze Nasser
parent d5af661231
commit cfe5848a02
2 changed files with 3 additions and 3 deletions
@@ -114,7 +114,7 @@ public class GlobalConfigurationProperty extends AbstractPersistableCustom {
final String passwordPropertyName = "force-password-reset-days"; final String passwordPropertyName = "force-password-reset-days";
if (this.name.equalsIgnoreCase(passwordPropertyName)) { if (this.name.equalsIgnoreCase(passwordPropertyName)) {
if (((this.enabled == true) && command.hasParameter(valueParamName) && (this.value == 0)) || ((this.enabled == true) if ((this.enabled == true && command.hasParameter(valueParamName) && (this.value == 0)) || (this.enabled == true
&& !command.hasParameter(valueParamName) && (previousValue == 0))) { throw new ForcePasswordResetException(); } && !command.hasParameter(valueParamName) && (previousValue == 0))) { throw new ForcePasswordResetException(); }
} }
@@ -2383,8 +2383,8 @@ public class Loan extends AbstractPersistableCustom {
* selected * selected
**/ **/
if (isNoneOrCashOrUpfrontAccrualAccountingEnabledOnLoanProduct() if ((isNoneOrCashOrUpfrontAccrualAccountingEnabledOnLoanProduct()
&& ((isMultiDisburmentLoan() && getDisbursedLoanDisbursementDetails().size() == 1) || !isMultiDisburmentLoan())) { && isMultiDisburmentLoan() && getDisbursedLoanDisbursementDetails().size() == 1) || !isMultiDisburmentLoan()) {
final LoanTransaction interestAppliedTransaction = LoanTransaction.accrueInterest(getOffice(), this, interestApplied, final LoanTransaction interestAppliedTransaction = LoanTransaction.accrueInterest(getOffice(), this, interestApplied,
actualDisbursementDate, createdDate, currentUser); actualDisbursementDate, createdDate, currentUser);
addLoanTransaction(interestAppliedTransaction) ; addLoanTransaction(interestAppliedTransaction) ;