12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?xml version="1.0" encoding="UTF-8"?>
- <templates>
- <t t-extend="PosTicket">
- <t t-jquery="div.pos-sale-ticket" t-operation="replace">
- <div class="pos-sale-ticket" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 15px;'>
- <div class="pos-center-align"><t t-esc="new Date().toString(Date.CultureInfo.formatPatterns.shortDate + ' ' +
- Date.CultureInfo.formatPatterns.longTime)"/>
- <br/>
- <t t-esc="order.get('name')"/></div>
- <br/>
- <br />
- <t t-if="widget.pos.config.receipt_header">
- <div style='text-align:center;font-size: 30px;'>
- <t t-esc="widget.pos.config.receipt_header" />
- </div>
- <br />
- </t>
- <p>=======================================</p>
- Tel: <t t-esc="widget.pos.company.phone || ''"/> <br/>
- Vendedor: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
- <t t-if="order.attributes.client">
- <br/>
- <p>=======================================</p>
- Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/><br/>
- Tel: <t t-esc="order.attributes.client.phone ? order.attributes.client.phone : ''"/><br/>
- <t t-esc="order.attributes.client.address ? order.attributes.client.address : ''"/><br/><br/>
- </t>
- <p>=======================================</p>
- <table class="table table-condensed">
- <tbody>
- <tr t-foreach="orderlines" t-as="orderline">
- <p>
- <t t-esc="orderline.get_product().display_name"/>
- <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
- <t t-esc="orderline.get_quantity_str_with_unit()"/>
- <span>&nbsp;&nbsp;&nbsp;&nbsp;</span>
- <t t-esc="widget.format_currency(orderline.get_display_price())"/>
- </p>
- </tr>
- </tbody>
- </table>
- <p>=======================================</p>
- <table>
- <tr>
- <p>
- Subtotal:&nbsp;&nbsp;
- <t t-esc="widget.format_currency(order.getTotalTaxExcluded())"/>
- </p>
- </tr>
- <t t-foreach="order.getTaxDetails()" t-as="taxdetail">
- <tr>
- <p>
- <t t-esc="taxdetail.name"/>: &nbsp;&nbsp;
- <t t-esc="widget.format_currency(taxdetail.amount)"/>
- </p>
- </tr>
- </t>
- <tr class="emph">
- <p>
- Total: &nbsp;&nbsp;
- <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
- </p>
- </tr>
- </table>
- <p>=======================================</p>
- <table>
- <tr t-foreach="paymentlines" t-as="line">
- <p>
- <t t-esc="line.name"/>: &nbsp;
- <t t-esc="widget.format_currency(line.get_amount())"/>
- </p>
- </tr>
- <tr>
- <p>
- Cambio: &nbsp;&nbsp;
- <t t-esc="widget.format_currency(order.getChange())"/>
- </p>
- </tr>
- </table>
- <br/>
- <t t-if="widget.pos.config.receipt_footer">
- <br/>
- <div style='text-align:center'>
- <t t-esc="widget.pos.config.receipt_footer" />
- </div>
- </t>
- </div>
- </t>
- </t>
- </templates>
|