Tower: upload laundry_management 19.0.19.0.4 (via marketplace)
This commit is contained in:
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates id="template" xml:space="preserve">
|
||||
|
||||
<t t-name="laundry_management.LaundryWorkOrderThermal">
|
||||
<div class="laundry-thermal pos-receipt-container">
|
||||
<div class="laundry-thermal__header">
|
||||
<div class="laundry-thermal__company"
|
||||
t-esc="props.data.company_name"/>
|
||||
<div class="laundry-thermal__title">WORK ORDER</div>
|
||||
<div class="laundry-thermal__name"
|
||||
t-esc="props.data.name"/>
|
||||
</div>
|
||||
|
||||
<div class="laundry-thermal__divider"/>
|
||||
|
||||
<div class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Customer</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="props.data.partner_name"/>
|
||||
</div>
|
||||
<div t-if="props.data.partner_phone"
|
||||
class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Phone</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="props.data.partner_phone"/>
|
||||
</div>
|
||||
<div t-if="props.data.pos_reference"
|
||||
class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">POS Ref</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="props.data.pos_reference"/>
|
||||
</div>
|
||||
<div class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Date</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="fmtDate(props.data.create_date)"/>
|
||||
</div>
|
||||
|
||||
<t t-if="props.data.is_delivery">
|
||||
<div class="laundry-thermal__divider"/>
|
||||
<div class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Delivery</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="props.data.delivery_address"/>
|
||||
</div>
|
||||
<div t-if="props.data.delivery_scheduled_at"
|
||||
class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Scheduled</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="fmtDate(props.data.delivery_scheduled_at)"/>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
<div class="laundry-thermal__divider"/>
|
||||
|
||||
<table class="laundry-thermal__lines">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="qty">Qty</th>
|
||||
<th>Item</th>
|
||||
<th class="amount">Amount</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr t-foreach="props.data.lines" t-as="line"
|
||||
t-key="line_index">
|
||||
<td class="qty" t-esc="line.qty"/>
|
||||
<td>
|
||||
<t t-esc="line.description"/>
|
||||
<div t-if="line.tracking_code"
|
||||
class="laundry-thermal__tracking">
|
||||
#<t t-esc="line.tracking_code"/>
|
||||
</div>
|
||||
</td>
|
||||
<td class="amount" t-esc="money(line.subtotal)"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="laundry-thermal__divider"/>
|
||||
|
||||
<div class="laundry-thermal__totals">
|
||||
<div class="laundry-thermal__row laundry-thermal__total">
|
||||
<span class="laundry-thermal__label">Total</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="money(props.data.amount_total)"/>
|
||||
</div>
|
||||
<div t-if="props.data.amount_paid"
|
||||
class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Paid</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="money(props.data.amount_paid)"/>
|
||||
</div>
|
||||
<div t-if="props.data.amount_settled"
|
||||
class="laundry-thermal__row">
|
||||
<span class="laundry-thermal__label">Settled</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="money(props.data.amount_settled)"/>
|
||||
</div>
|
||||
<div t-if="props.data.amount_due"
|
||||
class="laundry-thermal__row laundry-thermal__due">
|
||||
<span class="laundry-thermal__label">DUE</span>
|
||||
<span class="laundry-thermal__value"
|
||||
t-esc="money(props.data.amount_due)"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="laundry-thermal__divider"/>
|
||||
|
||||
<div class="laundry-thermal__status">
|
||||
STATUS: <strong t-esc="props.data.state_label"/>
|
||||
</div>
|
||||
|
||||
<div class="laundry-thermal__footer">
|
||||
* Keep this slip until pickup *
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
|
||||
</templates>
|
||||
Reference in New Issue
Block a user