All files / projects/requisition-management/src/app/components/checkout-receipt-requisition checkout-receipt-requisition.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 441x                                                                                      
@if (basket) {
  <div>
    <h1>
      <span id="page-main-content" tabindex="-1">{{ 'checkout.cart_for_approval.title' | translate }}</span>
    </h1>
    <div>
      @if (requisition$ | async; as req) {
        <p>
          {{ 'checkout.id_of_order.label' | translate
          }}<strong data-testing-id="order-document-number"
            >&nbsp;
            <a
              data-testing-id="requisition-number"
              [routerLink]="['/account/requisitions/buyer/' + req.id, { status: 'PENDING' }]"
              >{{ req.requisitionNo || req.recurringOrderDocumentNo }}</a
            >
          </strong>
        </p>
      }
 
      <p>{{ 'approval.cart.order_has_been_submitted' | translate }}</p>
      @if (basket.customerNo) {
        <div>
          <p
            [ishServerHtml]="
              'approval.cart.once_order_approved'
                | translate: { '0': 'route://account/requisitions/buyer', '1': 'route://account' }
            "
          ></p>
          <p [innerHTML]="'approval.cart.notification.mail.text' | translate: { '0': basket.email }"></p>
        </div>
      } @else {
        <p [innerHTML]="'approval.cart.notification.mail.text' | translate: { '0': basket.invoiceToAddress.email }"></p>
      }
 
      <div>
        @if (basket.approval) {
          <ish-basket-approval-info [approval]="basket.approval" />
        }
      </div>
    </div>
  </div>
}