account at tenant

This commit is contained in:
2021-09-09 15:49:49 +02:00
parent b394a16d7e
commit 75120b1d80
7 changed files with 170 additions and 3 deletions

View File

@ -173,7 +173,7 @@
</ng-container>
<ng-container matColumnDef="fee_type">
<th mat-header-cell *matHeaderCellDef>Typ</th>
<td mat-cell *matCellDef="let element">{{element.fee_type}}</td>
<td mat-cell *matCellDef="let element">{{element.fee_type}}</td>
</ng-container>
<ng-container matColumnDef="startdate">
<th mat-header-cell *matHeaderCellDef>Beginn</th>
@ -203,4 +203,6 @@
</mat-card-content>
</mat-card>
<app-account [selectedAccountId]="tenantId"></app-account>
</section>

View File

@ -23,6 +23,7 @@ interface DN_Tenancy {
export class TenantDetailsComponent implements OnInit {
tenant: Tenant = NULL_Tenant
tenantId: number
account: Account = NULL_Account
@ -64,6 +65,7 @@ export class TenantDetailsComponent implements OnInit {
try {
const id = +this.route.snapshot.paramMap.get('id')
if (id != 0) {
this.tenantId = id
this.tenant = await this.tenantService.getTenant(id)
this.account = await this.accountService.getAccount(this.tenant.account)
this.getTenancies()