All files / src/app/extensions/quoting/shared/quote-line-item-list quote-line-item-list.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 44 45 46 47 48 492x                                                                                                
<div class="section">
  <h2 class="h3">{{ 'quote.items.table.heading' | translate }}</h2>
</div>
@if (lineItems$ | async; as lineItems) {
  @if (lineItems.length) {
    <div class="container">
      <!-- Line Items Overview -->
      <div class="row list-header d-none d-md-flex">
        <div class="col-md-8 col-xl-6 list-header-item list-header-item-descr">
          {{ 'shopping_cart.product_description.heading' | translate }}
        </div>
        <div
          class="col-xl-2 d-none d-xl-flex list-header-item"
          [ngClass]="{ 'justify-content-end': editable$ | async }"
        >
          {{ 'shopping_cart.qty.heading' | translate }}
        </div>
        <div class="col-md-2 list-header-item column-price">{{ 'shopping_cart.price.heading' | translate }}</div>
        <div class="col-md-2 list-header-item column-price">{{ 'shopping_cart.total.heading' | translate }}</div>
      </div>
      <div class="list-body">
        @for (pli of lineItems; track pli.productSKU) {
          <ish-quote-line-item-list-element
            ishProductContext
            [allowZeroQuantity]="true"
            [lineItem]="pli"
            [quantity]="pli.quantity?.value"
            [sku]="pli.productSKU"
          />
        }
      </div>
      @if (displayTotal$ | async) {
        <div class="clearfix section">
          <div class="row justify-content-end list-body">
            <div class="col-sm-4 col-md-3 col-lg-2 text-end pe-0">{{ 'quote.items.total.label' | translate }}</div>
            <div class="col-sm-4 col-md-2 pe-0">
              <div class="total-price text-end">{{ total$ | async | ishPrice }}</div>
            </div>
          </div>
        </div>
      }
    </div>
  } @else {
    <p class="section">{{ 'quote.items.no_items' | translate }}</p>
  }
} @else {
  <p class="section">{{ 'quote.items.no_items' | translate }}</p>
}