| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<templates id="template" xml:space="preserve"> |
| 3 |
<t t-name="point_of_sale.Orderline"> |
| 4 |
<t t-set="vals" t-value="lineScreenValues" /> |
| 5 |
<li t-ref="root" t-if="line.order_id" t-att-class="lineContainerClasses" class="orderline"> |
| 6 |
<div t-if="vals.productImage" class="o_line_container d-flex align-items-center justify-content-center"> |
| 7 |
<img t-attf-style="border-radius: 1rem;" t-att-src="vals.productImage"/> |
| 8 |
</div> |
| 9 |
<div class="d-flex flex-column w-100" t-att-class="lineClasses"> |
| 10 |
<div class="line-details d-flex justify-content-between" t-att-class="{ 'align-items-center' : vals.isReceipt }"> |
| 11 |
<div class="product-name d-flex flex-grow-1 pe-2 text-truncate" t-att-class="{ 'align-items-center' : vals.isReceipt }"> |
| 12 |
<span class="qty d-inline-block fw-bolder" t-attf-class="{{ vals.isReceipt ? 'pe-2' : 'px-1' }}"> |
| 13 |
<t t-esc="vals.unitPart"/> |
| 14 |
<small t-if="vals.decimalPart" t-out="vals.decimalPart" class="fw-normal" style="font-size: 85%;" /> |
| 15 |
</span> |
| 16 |
<span class="text-wrap d-inline"> |
| 17 |
<t t-esc="vals.name" /><br/> |
| 18 |
<small t-if="vals.attributeString" t-out="vals.attributeString" class="attribute-line fst-italic" /> |
| 19 |
</span> |
| 20 |
</div> |
| 21 |
<div t-if="vals.price" t-out="vals.price" class="product-price price" t-attf-class="{{ vals.isReceipt ? 'font-monospace' : 'fw-bolder' }}" |
| 22 |
/> |
| 23 |
<div t-if="vals.taxGroup" t-esc="vals.taxGroup" class="text-end" style="width: 2rem"/> |
| 24 |
</div> |
| 25 |
<ul class="info-list d-flex flex-column mb-0 ms-2" t-att-style="vals.isReceipt and 'font-size: 75%;'" t-att-class="infoListClasses"> |
| 26 |
<li class="price-per-unit" t-if="vals.displayPriceUnit" t-out="vals.displayPriceUnit" /> |
| 27 |
<li t-if="vals.discount" class="price-per-unit"> |
| 28 |
<i class="fa fa-tag pe-1"/><em><t t-esc="vals.discount" />% </em> discount off on <t t-esc="vals.noDiscountPrice"/> |
| 29 |
</li> |
| 30 |
<li t-if="line.customer_note" class="customer-note w-100 rounded text-break bg-opacity-25" t-att-class="{'bg-warning text-warning p-2': vals.isDisplay}"> |
| 31 |
<i class="fa fa-sticky-note me-1" role="img" aria-label="Customer Note" title="Customer Note"/> |
| 32 |
<t t-esc="line.customer_note" /> |
| 33 |
</li> |
| 34 |
<div t-if="vals.internalNote" class="internal-note-container d-flex gap-2 flex-wrap"> |
| 35 |
<TagsList tags="vals.internalNote" /> |
| 36 |
</div> |
| 37 |
<li t-if="vals.lotLines" class="row flex-wrap w-100 m-0"> |
| 38 |
<div class="col-auto" t-attf-class="{{ vals.isReceipt ? 'p-0' : 'px-1' }}"> |
| 39 |
<t t-slot="pack-lot-icon" /> |
| 40 |
</div> |
| 41 |
<div class="col ps-0"> |
| 42 |
<li class="lot-number" t-foreach="vals.lotLines" t-as="lot" t-key="lot_index" t-esc="lot" /> |
| 43 |
</div> |
| 44 |
</li> |
| 45 |
<t t-slot="default" /> |
| 46 |
</ul> |
| 47 |
</div> |
| 48 |
</li> |
| 49 |
</t> |
| 50 |
</templates> |