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 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | 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 scope="col" cdk-header-cell *cdkHeaderCellDef data-testing-id="th-requisition-no"> <span aria-hidden="true">{{ 'account.approvallist.table.id_of_order' | translate }}</span> <span class="sr-only">{{ 'account.approvallist.table.id_of_order.title' | translate }}</span> </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.id_of_order.title' | 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 scope="col" cdk-header-cell *cdkHeaderCellDef data-testing-id="th-order-no"> <span aria-hidden="true">{{ 'account.approvallist.table.no_of_order' | translate }}</span> <span class="sr-only">{{ 'account.approvallist.table.no_of_order.title' | translate }}</span> </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.no_of_order.title' | translate" > <a [routerLink]="['../../orders/', requisition.id]">{{ requisition.orderNo }}</a> </td> </ng-container> <!-- Order No - No link --> <ng-container cdkColumnDef="orderNoSimple"> <th scope="col" cdk-header-cell *cdkHeaderCellDef data-testing-id="th-order-no-simple"> <span aria-hidden="true">{{ 'account.approvallist.table.no_of_order' | translate }}</span> <span class="sr-only">{{ 'account.approvallist.table.no_of_order.title' | translate }}</span> </th> <td cdk-cell *cdkCellDef="let requisition" [attr.data-label]="'account.approvallist.table.no_of_order.title' | translate" > {{ requisition.orderNo }} </td> </ng-container> <!-- Creation Date --> <ng-container cdkColumnDef="creationDate"> <th scope="col" 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 scope="col" 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 scope="col" 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 scope="col" 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 scope="col" 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 scope="col" 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 scope="col" 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> <!-- Approval Actions --> <ng-container cdkColumnDef="actions"> <th cdk-header-cell *cdkHeaderCellDef data-testing-id="th-actions"> <span class="sr-only">{{ 'account.approvallist.table.actions' | translate }}</span> </th> <td cdk-cell *cdkCellDef="let requisition" class="column-price"> <ng-container *ngIf="status === 'PENDING'"> <button type="button" class="btn-tool btn-link" (click)="approveRequisition(requisition.id)" title="{{ 'account.requisitions.approvals.approve' | translate : { requisitionNo: requisition.requisitionNo } }}" > <fa-icon [icon]="['fas', 'check']" /> </button> <button type="button" class="btn-tool btn-link" (click)="openRejectDialog(requisition.id)" title="{{ 'account.requisitions.approvals.reject' | translate : { requisitionNo: requisition.requisitionNo } }}" > <fa-icon [icon]="['fas', 'times']" /> </button> </ng-container> </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> <ish-requisition-reject-dialog #rejectDialog (submitRejectRequisition)="rejectRequisition($event)" /> |