Fix loan product allow partial period interest calculation (#1739)

* Fix charge payment method edition

* Fix Loan Product edition to use correctly allowPartialPeriodInterestCalculation

---------

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-04-18 21:41:19 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 30c1085b45
commit 7306781db8
6 changed files with 45 additions and 30 deletions
@@ -44,6 +44,7 @@ export class EditClientComponent implements OnInit {
constitutionOptions: any;
/** Gender Options */
genderOptions: any;
legalFormId = 1;
/**
* Fetches client template data from `resolve`
@@ -70,6 +71,7 @@ export class EditClientComponent implements OnInit {
this.createEditClientForm();
this.setOptions();
this.buildDependencies();
this.legalFormId = 1;
this.editClientForm.patchValue({
'officeId': this.clientDataAndTemplate.officeId,
'staffId': this.clientDataAndTemplate.staffId,
@@ -87,6 +89,9 @@ export class EditClientComponent implements OnInit {
'submittedOnDate': this.clientDataAndTemplate.timeline.submittedOnDate && new Date(this.clientDataAndTemplate.timeline.submittedOnDate),
'activationDate': this.clientDataAndTemplate.timeline.activatedOnDate && new Date(this.clientDataAndTemplate.timeline.activatedOnDate)
});
if (this.clientDataAndTemplate.legalForm) {
this.legalFormId = this.clientDataAndTemplate.legalForm.id;
}
}
/**