account at tenant
This commit is contained in:
@ -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>
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user