Tower: upload laundry_management 19.0.19.0.4 (via marketplace)

This commit is contained in:
2026-05-01 15:00:50 +00:00
parent 68ce996d7b
commit 3e1a94eaed

View File

@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="laundry_management.SettlementReceipt">
<Dialog title="'Payment Receipt'" size="'md'">
<div class="settlement-receipt-content p-3" style="font-family: monospace; max-width: 320px; margin: 0 auto;">
<!-- Header -->
<div class="text-center mb-2">
<div class="fw-bold fs-5">Payment Receipt</div>
<div class="small text-muted">Laundry Dues Settlement</div>
</div>
<div class="border-top border-bottom mb-2 py-2">
<div class="d-flex justify-content-between">
<span>Customer:</span>
<span class="fw-bold" t-esc="props.partnerName"/>
</div>
<div class="d-flex justify-content-between">
<span>Date:</span>
<span t-esc="dateTime"/>
</div>
</div>
<!-- Payment breakdown (grouped by method, sorted cash first) -->
<div class="mb-2">
<div class="fw-bold mb-1">Payment Details</div>
<t t-foreach="groupedPayments" t-as="pmt" t-key="pmt.name">
<div class="d-flex justify-content-between">
<span t-esc="pmt.name"/>
<span t-esc="fmt(pmt.amount)"/>
</div>
</t>
<div class="d-flex justify-content-between fw-bold border-top mt-2 pt-1">
<span>Total Paid:</span>
<span t-esc="fmt(props.settledTotal)"/>
</div>
</div>
<!-- Settled orders (grouped by order name) -->
<t t-if="groupedOrders.length > 0">
<div class="mb-2">
<div class="fw-bold mb-1">Orders Settled</div>
<table class="w-100 small">
<thead>
<tr>
<th class="text-start">Order</th>
<th class="text-end">Applied</th>
<th class="text-end">Remaining</th>
</tr>
</thead>
<tbody>
<t t-foreach="groupedOrders" t-as="so" t-key="so.name">
<tr>
<td t-esc="so.name"/>
<td class="text-end" t-esc="fmt(so.applied)"/>
<td class="text-end" t-esc="fmt(so.remaining_on_order)"/>
</tr>
</t>
</tbody>
</table>
</div>
</t>
<!-- Footer -->
<div class="border-top pt-2">
<div class="d-flex justify-content-between fw-bold">
<span>Remaining Balance:</span>
<span t-esc="fmt(props.remainingDue)"/>
</div>
</div>
<div class="text-center mt-2 small text-muted">
Thank you for your payment
</div>
</div>
<t t-set-slot="footer">
<button class="btn btn-primary btn-lg flex-fill" t-on-click="printReceipt">
<i class="fa fa-print me-1"/>Print
</button>
<button class="btn btn-secondary btn-lg" t-on-click="props.close">
Close
</button>
</t>
</Dialog>
</t>
</templates>