You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.9 KiB
43 lines
1.9 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!-- Inherited POS scale screen -->
|
|
<templates id="template" xml:space="preserve">
|
|
<t t-name="pos_weight_manual.ScaleScreenManual">
|
|
<Dialog size="'md'" title="props.productName || 'Unnamed Product'">
|
|
<t t-set-slot="header">
|
|
<h4 class="modal-title text-break text-center w-100">
|
|
<t t-esc="props.productName || 'Unnamed Product'" />
|
|
</h4>
|
|
<button type="button" class="btn-close" aria-label="Close" t-on-click="props.close"></button>
|
|
</t>
|
|
|
|
<div class="d-flex flex-column align-items-center px-4">
|
|
<!-- Weight Input -->
|
|
<div class="d-flex align-items-center mb-3 w-100">
|
|
<label class="fs-4 me-2">Weight:</label>
|
|
<input type="number"
|
|
class="form-control text-end"
|
|
style="max-width: 120px;"
|
|
t-att-value="state.weight || ''"
|
|
t-on-input="handleInputChange" />
|
|
<span class="ms-2 fs-4" t-esc="props.uomName"/>
|
|
</div>
|
|
|
|
<!-- Computed Price -->
|
|
<div class="d-flex justify-content-between w-100 mb-3">
|
|
<div class="fs-5">
|
|
<t t-esc="props.productPrice"/> / <t t-esc="props.uomName"/>
|
|
</div>
|
|
<div class="fs-5 fw-bold text-primary">
|
|
<t t-esc="computedPriceString"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<t t-set-slot="footer">
|
|
<div class="btn btn-lg btn-primary w-100" t-on-click="confirm">
|
|
Order <i class="fa fa-angle-double-right ms-2"></i>
|
|
</div>
|
|
</t>
|
|
</Dialog>
|
|
</t>
|
|
</templates>
|
|
|