blob: 5e01fe99611ca26c459f02c29df4c80c19c0671d [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<fims-layout-card-over title="{{'Deposit account' | translate}}" [navigateBackTo]="['../../../../../../']">
<fims-layout-card-over-header-menu>
<button mat-icon-button (click)="issueCheques()" title="{{'Issue cheques' | translate}}"
*hasPermission="{ id: 'cheque_management', accessLevel: 'CHANGE'}">
<mat-icon>import_contacts</mat-icon>
</button>
</fims-layout-card-over-header-menu>
<div class="mat-content inset" flex>
<div layout="row">
<mat-list *ngIf="(depositInstance$ | async) as instance">
<h3 mat-subheader translate>Current status</h3>
<fims-state-display [state]="instance.state"></fims-state-display>
<h3 mat-subheader translate>Details</h3>
<mat-list-item>
<h3 matLine translate>Account</h3>
<p matLine>
<a [routerLink]="['/accounting/accounts/detail', instance.accountIdentifier, 'entries']">
{{instance.alternativeAccountNumber ? instance.alternativeAccountNumber : instance.accountNumber}}
</a>
</p>
</mat-list-item>
<mat-list-item>
<h3 matLine translate>Balance</h3>
<p matLine>{{instance.balance | number:'1.2-2'}}</p>
</mat-list-item>
<mat-list-item>
<h3 matLine translate>Beneficiaries</h3>
<p matLine>{{instance.beneficiaries?.join(', ')}}</p>
</mat-list-item>
<mat-list-item>
<h3 matLine translate>Opened on</h3>
<p matLine>{{instance.openedOn | date:'shortDate'}}</p>
</mat-list-item>
<mat-list-item>
<h3 matLine translate>Last transaction</h3>
<p matLine>{{instance.lastTransactionDate | date:'medium'}}</p>
</mat-list-item>
</mat-list>
</div>
</div>
</fims-layout-card-over>
<fims-fab-button title="{{'Edit deposit account' | translate}}" icon="mode_edit" [link]="['edit']"
[permission]="{ id: 'deposit_instances', accessLevel: 'CHANGE'}"></fims-fab-button>