updating withdraw fee in saving product(exception) fixed
This commit is contained in:
+10
-2
@@ -179,7 +179,11 @@ public final class JsonCommand {
|
|||||||
boolean differenceExists = false;
|
boolean differenceExists = false;
|
||||||
|
|
||||||
if (baseValue != null) {
|
if (baseValue != null) {
|
||||||
differenceExists = !baseValue.equals(workingCopyValue);
|
if(workingCopyValue != null) {
|
||||||
|
differenceExists = !baseValue.equals(workingCopyValue);
|
||||||
|
} else {
|
||||||
|
differenceExists = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
differenceExists = workingCopyValue != null;
|
differenceExists = workingCopyValue != null;
|
||||||
}
|
}
|
||||||
@@ -191,7 +195,11 @@ public final class JsonCommand {
|
|||||||
boolean differenceExists = false;
|
boolean differenceExists = false;
|
||||||
|
|
||||||
if (baseValue != null) {
|
if (baseValue != null) {
|
||||||
differenceExists = baseValue.compareTo(workingCopyValue) != 0;
|
if(workingCopyValue != null) {
|
||||||
|
differenceExists = baseValue.compareTo(workingCopyValue) != 0;
|
||||||
|
}else {
|
||||||
|
differenceExists = true;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
differenceExists = workingCopyValue != null;
|
differenceExists = workingCopyValue != null;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -340,7 +340,7 @@ public class SavingsProduct extends AbstractPersistable<Long> {
|
|||||||
if (command.isChangeInIntegerParameterNamed(withdrawalFeeTypeParamName, this.withdrawalFeeType)) {
|
if (command.isChangeInIntegerParameterNamed(withdrawalFeeTypeParamName, this.withdrawalFeeType)) {
|
||||||
final Integer newValue = command.integerValueOfParameterNamed(withdrawalFeeTypeParamName);
|
final Integer newValue = command.integerValueOfParameterNamed(withdrawalFeeTypeParamName);
|
||||||
actualChanges.put(withdrawalFeeTypeParamName, newValue);
|
actualChanges.put(withdrawalFeeTypeParamName, newValue);
|
||||||
this.withdrawalFeeType = SavingsWithdrawalFeesType.fromInt(newValue).getValue();
|
this.withdrawalFeeType = newValue != null? SavingsWithdrawalFeesType.fromInt(newValue).getValue(): newValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command.isChangeInBigDecimalParameterNamed(annualFeeAmountParamName, this.annualFeeAmount)) {
|
if (command.isChangeInBigDecimalParameterNamed(annualFeeAmountParamName, this.annualFeeAmount)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user