feat: add view client charges component (#688)

Fixes: #688
This commit is contained in:
Benura Abeywardena
2020-07-15 15:45:00 +05:30
committed by GitHub
parent 90b6e3cc6d
commit bf98074b71
11 changed files with 327 additions and 3 deletions
@@ -35,6 +35,8 @@ export class GeneralTabComponent {
showClosedFixedAccounts = false;
clientid: any;
/** Route to Charges */
routeToCharges: any;
constructor(
private route: ActivatedRoute,
@@ -48,6 +50,11 @@ export class GeneralTabComponent {
this.upcomingCharges = data.clientChargesData.pageItems;
this.clientSummary = data.clientSummary[0];
this.clientid = this.route.parent.snapshot.params['clientId'];
});
/** Get Client Id and generate the route link. */
this.route.parent.params.subscribe((params: any) => {
this.routeToCharges = '../../' + params.clientId + '/charges';
});
}