Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 | 3x | <ng-container *ngIf="requisitions?.length > 0; else emptyList"> <table cdk-table [dataSource]="requisitions" class="table table-lg mobile-optimized" data-testing-id="requisition-list" > <!-- Requisition No --> <ng-container cdkColumnDef="requisitionNo"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-requisition-no"> {{ 'account.approvallist.table.id_of_order' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.id_of_order' | translate" > <a [routerLink]="[requisition.id, { status: status }]" [attr.aria-label]="'account.approvallist.table.id_of_order.aria_label' | translate" > {{ requisition.requisitionNo }} </a> </td> </ng-container> <!-- Order No --> <ng-container cdkColumnDef="orderNo"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-order-no"> {{ 'account.approvallist.table.no_of_order' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.no_of_order' | translate" > <a [routerLink]="['../../orders/', requisition.id]">{{ requisition.orderNo }}</a> </td> </ng-container> <!-- Order No - No link --> <ng-container cdkColumnDef="orderNoSimple"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-order-no-simple"> {{ 'account.approvallist.table.no_of_order' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.no_of_order' | translate" > {{ requisition.orderNo }} </td> </ng-container> <!-- Creation Date --> <ng-container cdkColumnDef="creationDate"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-creation-date"> {{ 'account.approvallist.table.date_of_order' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.date_of_order' | translate" > {{ requisition.creationDate | ishDate }} </td> </ng-container> <!-- Approver --> <ng-container cdkColumnDef="approver"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-approver"> {{ 'account.approvallist.table.approver' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.approver' | translate"> {{ requisition.approval?.approver?.firstName }} {{ requisition.approval?.approver?.lastName }} <div *ngIf="requisition.systemRejected"> ({{ 'approval.detailspage.approval_status.system_rejected.status' | translate }}) </div> </td> </ng-container> <!-- Buyer --> <ng-container cdkColumnDef="buyer"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-buyer"> {{ 'account.approvallist.table.buyer' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.buyer' | translate"> {{ requisition.user?.firstName }} {{ requisition.user?.lastName }} </td> </ng-container> <!-- Approval Date --> <ng-container cdkColumnDef="approvalDate"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-approval-date"> {{ 'account.approvallist.table.approval_date' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.approval_date' | translate" > {{ requisition.approval.approvalDate | ishDate }} </td> </ng-container> <!-- Rejection Date --> <ng-container cdkColumnDef="rejectionDate"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-rejection-date"> {{ 'account.approvallist.table.reject_date' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.reject_date' | translate" > {{ requisition.approval.approvalDate | ishDate }} </td> </ng-container> <!-- Items count --> <ng-container cdkColumnDef="lineItems"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-line-items"> {{ 'account.approvallist.table.line_items' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.line_items' | translate" > {{ requisition.lineItemCount }} </td> </ng-container> <!-- Total --> <ng-container cdkColumnDef="orderTotal"> <th cdk-header-cell *cdkHeaderCellDef class="text-right" data-testing-id="th-order-total"> {{ 'account.approvallist.table.line_item_total' | translate }} </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.line_item_total' | translate" class="column-price" > {{ requisition.totals.total | ishPrice : 'gross' }} </td> </ng-container> <!-- Header and Row Declarations --> <tr cdk-header-row *cdkHeaderRowDef="columnsToDisplay"></tr> <tr cdk-row *cdkRowDef="let row; columns: columnsToDisplay"></tr> </table> <div data-testing-id="list-counter"> {{ 'account.approvallist.items' | translate : { '0': requisitions?.length } }} </div> </ng-container> <ng-template #emptyList> <p data-testing-id="emptyList">{{ 'account.approvallist.no_items_message' | translate }}</p> </ng-template> |