Datatable views updates for display values with format (#1603)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
eae1b350b7
commit
7bbab6423e
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user