Selaa lähdekoodia

[FIX] limpieza de codigo y cambio de fuente

Rodney Elpidio Enciso Arias 7 vuotta sitten
vanhempi
commit
5785b3d845
1 muutettua tiedostoa jossa 28 lisäystä ja 19 poistoa
  1. 28 19
      static/src/xml/pos.xml

+ 28 - 19
static/src/xml/pos.xml

@@ -6,7 +6,7 @@
                 <div class="pos-receipt-container">
                 </div>
             </div>
-        </div>
+        </div> 
     </t>
     <t t-name="KitchenTicketButton">
         <span class="control-button order-printbill">
@@ -15,33 +15,42 @@
         </span>
     </t>
     <t t-name="KitchenTicket">
-        <div class="pos-sale-ticket">
+        <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/>
+            <t t-esc="widget.pos.company.name"/> -->
             <br/>
-            <t t-esc="widget.pos.company.name"/>
-            <br/>
-            <!-- Phone: <t t-esc="widget.pos.company.phone || ''"/><br /> -->
             User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/><br/>
             <br />
-            <div class="pos-center-align" style="font-size:20pt;font-weight:bold">Cocina</div>
-            <br />
+            <div class="pos-center-align" style="font-size:25pt;font-weight:bold">Cocina</div>
+            <!-- <br /> -->
             <table>
-                <colgroup>
-                    <col width='75%' />
-                    <col width='25%' />
-                </colgroup>
-                <tr t-foreach="orderlines" t-as="orderline">
-                    <td>
-                        <t t-esc="orderline.get_product().display_name"/>
-                    </td>
-                    <td class="pos-right-align">
-                        <t t-esc="orderline.get_quantity_str_with_unit()"/>
-                    </td>
-                </tr>
+                <thead>
+                    <tr>
+                        <th>Producto</th>
+                        <th>Cantidad</th>
+                    </tr>
+                    <p>--------------------------------------------</p>
+                </thead>
+                <tbody>
+                    <colgroup>
+                        <col width='80%' />
+                        <col width='20%' />
+                    </colgroup>
+                    <tr t-foreach="orderlines" t-as="orderline">
+                        <td>
+                            <t t-esc="orderline.get_product().display_name"/>
+                        </td>
+                        <td class="pos-right-align">
+                            <t t-esc="orderline.get_quantity_str_with_unit()"/>
+                        </td>
+                    </tr>  
+                </tbody>
+                
             </table>
             <br />
             <t t-if="widget.pos.config.receipt_footer">