blob: af2046ec9bf4309c65f1b6675825d36d9c78481f [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="{{'Account entries for account' | translate:{ value: account.identifier} }}"
[navigateBackTo]="['../']"
*ngIf="account$ | async as account">
<form [formGroup]="form">
<mat-form-field layout-margin>
<input matInput type="date" placeholder="{{'Start date' | translate}}" formControlName="startDate">
</mat-form-field>
<mat-form-field layout-margin>
<input matInput type="date" placeholder="{{'End date' | translate}}" formControlName="endDate">
<mat-error *ngIf="form.hasError('rangeInvalid')" class="tc-red-600" translate>Invalid date range</mat-error>
</mat-form-field>
<button layout-margin mat-button mat-icon-button (click)="fetchAccountsEntries(account.identifier)" [disabled]="!form.valid">
<mat-icon>search</mat-icon>
</button>
</form>
<fims-data-table flex
(onFetch)="fetchAccountsEntries(account.identifier, $event)"
[columns]="columns"
[data]="accountEntryData$ | async"
[actionColumn]="false"
[sortable]="true"
[sortBy]="'transactionDate'"
[pageable]="true">
</fims-data-table>
</fims-layout-card-over>