Jelajahi Sumber

Módulo para impresión de por su pollo

sebas 3 tahun lalu
induk
melakukan
6ed5779e22
1 mengubah file dengan 12 tambahan dan 9 penghapusan
  1. 12 9
      static/src/xml/pos.xml

+ 12 - 9
static/src/xml/pos.xml

@@ -2,7 +2,7 @@
 <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-sale-ticket" style='font-family: "Courier New;font-size: 15px;'>
                 <!-- <div id="company_logo">
                     <img t-att-src="logo" style="width:100%;"/>
                 </div> -->
@@ -15,13 +15,14 @@
                 <br/>
                 <br />
                 <t t-if="widget.pos.config.receipt_header">
-                    <div style='text-align:center;font-size: 30px;'>
+                    <div style='text-align:center;font-size: 20px;'>
                         <t t-esc="widget.pos.config.receipt_header" />
                     </div>
                     <br />
                 </t>
-
-                User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br />
+                Tel: <t t-esc="widget.pos.company.phone || ''"/> <br/>
+                www.porsupollo.com.py<br/>
+                Vendedor: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
                 <t t-if="order.attributes.client">
                     Cliente: <t t-esc="order.attributes.client.name ? order.attributes.client.name : ''"/>
                 </t>
@@ -30,9 +31,9 @@
                 <table class="table table-condensed" style="font-size: 12px;">
                     <thead>
                         <tr>
-                            <th class="text-right">Cant.</th>
-                            <th>Producto</th>
-                            <th class="text-right">Precio</th>
+                            <th class="text-right">Cant.    </th>
+                            <th>Producto            </th>
+                            <th class="text-right">Precio </th>
                             <th class="text-right">Sub-total</th>
                         </tr>
                     </thead>
@@ -90,7 +91,7 @@
                     <tr class="emph">
                         <br />
                         <td>Total:</td>
-                        <td class="pos-right-align" style='font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;font-size: 20px;'>
+                        <td class="pos-right-align" style='font-family: "Courier New;font-size: 20px;'>
                             <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
                         </td>
                     </tr>
@@ -108,9 +109,11 @@
                 </table>
                 <br />
                 <table>
-                    <tr><td>Change:</td><td class="pos-right-align">
+                    <tr><td>Vuelto:</td><td class="pos-right-align">
                         <t t-esc="widget.format_currency(order.getChange())"/>
                         </td></tr>
+                        <tr><td>           Nota sin valor fiscal</td>
+                        </tr>
                 </table>
                 <br/>
                 <t t-if="widget.pos.config.receipt_footer">