AVecinal/avecinal#10 Añadido módulo que añade la tarifa configurada en el cliente al ticket.

This commit is contained in:
Luis 2022-06-28 10:26:19 +02:00
parent 56b6dd758e
commit 5e8d01f6e6
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="PosTicket">
<t t-jquery="table.receipt-orderlines" t-operation="before">
<t t-if="order.get_client()">
<t t-if="order.get_client().property_product_pricelist">
<t t-esc="order.get_client().property_product_pricelist[1]" /><br />
</t>
<br /><br />
</t>
</t>
</t>
<t t-extend="XmlReceipt">
<t t-jquery="[t-if='!receipt.company.logo']" t-operation="after">
<t t-if="order.get_client()">
<t t-esc="order.get_client().property_product_pricelist[1] ? order.get_client().property_product_pricelist[1] : ''"/><br />
</t>
</t>
</t>
</templates>