|
@@ -0,0 +1,107 @@
|
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
+<templates id="template" xml:space="preserve">
|
|
|
|
+ <t t-name="BillTicketScreenWidget">
|
|
|
|
+ <div class="receipt-screen screen touch-scrollable" >
|
|
|
|
+ <div class="pos-step-container">
|
|
|
|
+ <div class="pos-receipt-container">
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-name="BillTicketButton">
|
|
|
|
+ <span class="control-button order-printbill">
|
|
|
|
+ <i class="fa fa-print"></i>
|
|
|
|
+ Cuenta
|
|
|
|
+ </span>
|
|
|
|
+ </t>
|
|
|
|
+ <t t-name="BillTicket">
|
|
|
|
+ <div class="pos-sale-ticket" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 15px;'>
|
|
|
|
+
|
|
|
|
+ <div class="pos-center-align" style="font-size:25px;font-weight:bold">Cuenta</div>
|
|
|
|
+ <br/>
|
|
|
|
+
|
|
|
|
+ <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/>
|
|
|
|
+ User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><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>
|
|
|
|
+ </t>
|
|
|
|
+ <table class="table table-condensed">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>Producto</th>
|
|
|
|
+ <th class="text-right">Cant.</th>
|
|
|
|
+ <th class="text-right">Precio</th>
|
|
|
|
+ </tr>
|
|
|
|
+ <p>--------------------------------------------</p>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ <colgroup>
|
|
|
|
+ <col width='50%' />
|
|
|
|
+ <col width='20%' />
|
|
|
|
+ <col width='30%' />
|
|
|
|
+ </colgroup>
|
|
|
|
+ <tr t-foreach="orderlines" t-as="orderline">
|
|
|
|
+ <td>
|
|
|
|
+ <t t-esc="orderline.get_product().display_name"/>
|
|
|
|
+ <t t-if="orderline.get_discount() > 0">
|
|
|
|
+ <div class="pos-disc-font">
|
|
|
|
+ Con <t t-esc="orderline.get_discount()"/>% descuento
|
|
|
|
+ </div>
|
|
|
|
+ </t>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <t t-esc="orderline.get_quantity_str_with_unit()"/>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="pos-right-align">
|
|
|
|
+ <t t-esc="widget.format_currency(orderline.get_display_price())"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ <p>--------------------------------------------</p>
|
|
|
|
+ <br />
|
|
|
|
+ <table>
|
|
|
|
+ <tr>
|
|
|
|
+ <td>Subtotal:</td>
|
|
|
|
+ <td class="pos-right-align">
|
|
|
|
+ <t t-esc="widget.format_currency(order.getTotalTaxExcluded())"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <t t-foreach="order.getTaxDetails()" t-as="taxdetail">
|
|
|
|
+ <tr>
|
|
|
|
+ <td><t t-esc="taxdetail.name" /></td>
|
|
|
|
+ <td class="pos-right-align">
|
|
|
|
+ <t t-esc="widget.format_currency(taxdetail.amount)"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </t>
|
|
|
|
+ <tr>
|
|
|
|
+ <td>Descuento:</td>
|
|
|
|
+ <td class="pos-right-align">
|
|
|
|
+ <t t-esc="widget.format_currency(order.getDiscountTotal())"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <tr class="emph">
|
|
|
|
+ <td>Total:</td>
|
|
|
|
+ <td class="pos-right-align" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 20px;'>
|
|
|
|
+ <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
|
|
|
|
+ </td>
|
|
|
|
+ </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>
|
|
|
|
+</templates>
|