Skip to content

Commit

Permalink
Display Submitted On Date in Loan Charge views (#1776)
Browse files Browse the repository at this point in the history
Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
  • Loading branch information
josehernandezfintecheandomx and Jose Alberto Hernandez committed Jul 1, 2023
1 parent eea79d7 commit 709b171
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<td mat-cell *matCellDef="let charge"> {{ charge.chargeTimeType.value }} </td>
</ng-container>

<ng-container matColumnDef="submittedDate">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Submitted On </th>
<td mat-cell *matCellDef="let charge"> {{ charge.submittedOnDate | dateFormat }} </td>
</ng-container>

<ng-container matColumnDef="dueDate">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Due as of </th>
<td mat-cell *matCellDef="let charge"> {{ charge.dueDate | dateFormat }} </td>
Expand Down Expand Up @@ -55,7 +60,7 @@
</ng-container>

<ng-container matColumnDef="actions">
<th mat-header-cell class="center" *matHeaderCellDef mat-sort-header> Actions </th>
<th mat-header-cell class="r-amount" *matHeaderCellDef mat-sort-header> Actions </th>
<td mat-cell class="center" *matCellDef="let charge">
<span *ngIf="status === 'Submitted and pending approval'">
<button class="account-action-button" mat-raised-button color="primary" matTooltip="Edit Charge"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class ChargesTabComponent implements OnInit {
/** Status */
status: any;
/** Columns to be displayed in charges table. */
displayedColumns: string[] = ['name', 'feepenalty', 'paymentdueat', 'dueDate', 'calculationtype', 'due', 'paid', 'waived', 'outstanding', 'actions'];
displayedColumns: string[] = ['name', 'feepenalty', 'paymentdueat', 'submittedDate', 'dueDate', 'calculationtype', 'due', 'paid', 'waived', 'outstanding', 'actions'];
/** Data source for charges table. */
dataSource: MatTableDataSource<any>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@
{{ chargeData.amountOutstanding | formatNumber }}
</div>

<div fxFlex="50%" class="mat-body-strong">
Submitted On Date
</div>

<div fxFlex="50%">
{{ chargeData.submittedOnDate | dateFormat }}
</div>

</div>

<div fxLayout="row" fxLayoutAlign="center" fxLayoutGap="2%" fxLayout.lt-md="column">
Expand Down

0 comments on commit 709b171

Please sign in to comment.