Fix typo allowPartialPeriodInterestCalcualtion for allowPartialPeriodInterestCalculation (#2993)
This commit is contained in:
@@ -205,7 +205,7 @@ export class EditLoansAccountComponent {
|
||||
|
||||
// In Fineract, the POST and PUT endpoints for /v1/loans have a typo in the field
|
||||
// allowPartialPeriodInterestCalculation. Until that is fixed, we need to replace the field name in the payload.
|
||||
loansAccountData.allowPartialPeriodInterestCalcualtion = loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
loansAccountData.allowPartialPeriodInterestCalculation = loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
delete loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
|
||||
this.loansService.updateLoansAccount(this.loanId, loansAccountData).subscribe((response: any) => {
|
||||
|
||||
@@ -759,7 +759,7 @@ export class LoansService {
|
||||
|
||||
// In Fineract, the POST and PUT endpoints for /v1/loans have a typo in the field
|
||||
// allowPartialPeriodInterestCalculation. Until that is fixed, we need to replace the field name in the payload.
|
||||
loansAccountData.allowPartialPeriodInterestCalcualtion = loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
loansAccountData.allowPartialPeriodInterestCalculation = loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
delete loansAccountData.allowPartialPeriodInterestCalculation;
|
||||
return loansAccountData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user