FINERACT-183 Not able to save Edit Fixed deposit product page displays Internal server error

This commit is contained in:
Nazeer Hussain Shaik
2016-06-22 07:20:23 +05:30
parent b7ba924174
commit d7e7feb361
@@ -303,7 +303,12 @@ public class SavingsProduct extends AbstractPersistable<Long> {
this.withHoldTax = withHoldTax;
this.taxGroup = taxGroup;
this.isDormancyTrackingActive = isDormancyTrackingActive;
if(isDormancyTrackingActive == null) {
this.isDormancyTrackingActive = Boolean.FALSE ;
}else {
this.isDormancyTrackingActive = isDormancyTrackingActive;
}
this.daysToInactive = daysToInactive;
this.daysToDormancy = daysToDormancy;
this.daysToEscheat = daysToEscheat;
@@ -590,7 +595,7 @@ public class SavingsProduct extends AbstractPersistable<Long> {
this.daysToEscheat = newValue;
}
if(!this.isDormancyTrackingActive){
if(this.isDormancyTrackingActive == null || !this.isDormancyTrackingActive){
this.daysToInactive = null;
this.daysToDormancy = null;
this.daysToEscheat = null;