FINERACT-2107: Cumulative loan product creation fix
This commit is contained in:
@@ -154,7 +154,11 @@ export class CreateLoanProductComponent implements OnInit {
|
|||||||
loanProduct['dueDaysForRepaymentEvent'] = null;
|
loanProduct['dueDaysForRepaymentEvent'] = null;
|
||||||
loanProduct['overDueDaysForRepaymentEvent'] = null;
|
loanProduct['overDueDaysForRepaymentEvent'] = null;
|
||||||
}
|
}
|
||||||
loanProduct['supportedInterestRefundTypes'] = this.mapStringEnumOptionToIdList(loanProduct['supportedInterestRefundTypes']);
|
if (this.isAdvancedPaymentStrategy) {
|
||||||
|
loanProduct['supportedInterestRefundTypes'] = this.mapStringEnumOptionToIdList(loanProduct['supportedInterestRefundTypes']);
|
||||||
|
} else {
|
||||||
|
delete loanProduct['supportedInterestRefundTypes'];
|
||||||
|
}
|
||||||
delete loanProduct['useDueForRepaymentsConfigurations'];
|
delete loanProduct['useDueForRepaymentsConfigurations'];
|
||||||
|
|
||||||
this.productsService.createLoanProduct(loanProduct)
|
this.productsService.createLoanProduct(loanProduct)
|
||||||
|
|||||||
@@ -184,7 +184,11 @@ export class EditLoanProductComponent implements OnInit {
|
|||||||
loanProduct['dueDaysForRepaymentEvent'] = null;
|
loanProduct['dueDaysForRepaymentEvent'] = null;
|
||||||
loanProduct['overDueDaysForRepaymentEvent'] = null;
|
loanProduct['overDueDaysForRepaymentEvent'] = null;
|
||||||
}
|
}
|
||||||
loanProduct['supportedInterestRefundTypes'] = this.mapStringEnumOptionToIdList(loanProduct['supportedInterestRefundTypes']);
|
if (this.isAdvancedPaymentStrategy) {
|
||||||
|
loanProduct['supportedInterestRefundTypes'] = this.mapStringEnumOptionToIdList(loanProduct['supportedInterestRefundTypes']);
|
||||||
|
} else {
|
||||||
|
delete loanProduct['supportedInterestRefundTypes'];
|
||||||
|
}
|
||||||
delete loanProduct['useDueForRepaymentsConfigurations'];
|
delete loanProduct['useDueForRepaymentsConfigurations'];
|
||||||
|
|
||||||
this.productsService.updateLoanProduct(this.loanProductAndTemplate.id, loanProduct)
|
this.productsService.updateLoanProduct(this.loanProductAndTemplate.id, loanProduct)
|
||||||
|
|||||||
Reference in New Issue
Block a user