Datatable views updates for display values with format (#1603)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2022-12-19 23:09:09 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent eae1b350b7
commit 7bbab6423e
23 changed files with 325 additions and 149 deletions
@@ -32,6 +32,8 @@ export class ViewChargeComponent {
chargeData: any;
/** Loans Account Data */
loansAccountData: any;
allowPayCharge = true;
allowWaive = true;
/**
* Retrieves the Charge data from `resolve`.
@@ -50,6 +52,8 @@ export class ViewChargeComponent {
private settingsService: SettingsService) {
this.route.data.subscribe((data: { loansAccountCharge: any, loanDetailsData: any }) => {
this.chargeData = data.loansAccountCharge;
this.allowPayCharge = (this.chargeData.chargeTimeType.code === 'chargeTimeType.instalmentFee');
this.allowWaive = !this.chargeData.chargeTimeType.waived;
this.loansAccountData = data.loanDetailsData;
});
}