瀏覽代碼

Módulo para impresión de por su pollo

sebas 3 年之前
父節點
當前提交
81e40bc661
共有 1 個文件被更改,包括 27 次插入8 次删除
  1. 27 8
      static/src/xml/pos.xml

+ 27 - 8
static/src/xml/pos.xml

@@ -30,13 +30,13 @@
                 <br/>
                 <br />
                 <center>----------------------------------------</center><br/>
-                <table class="table table-condensed" style="font-size: 12px;">
+                <table class="table table-condensed" style="font-size: 8px;">
                     <thead>
                         <tr>
-                            <th class="text-right">Cant.</th>
-                            <th>&#160;&#160;Producto&#160;&#160;&#160;&#160;</th>
-                            <th class="text-right">&#160;&#160;Precio </th>
-                            <th class="text-right">&#160;&#160;Sub-total</th>
+                            <th style="font-size:8px;font-family: Courier New;width:0.6cm;overflow: auto; text-align: center;"><b>Cant.</b></th>
+                            <th style="font-size:8px;font-family: Courier New;width:4.0cm;overflow: auto; text-align: left;"><b>Producto</b></th>
+                            <th style="font-size:8px;font-family: Courier New;width:1.6cm;overflow: auto; text-align: center;"><b>Precio</b></th>
+                            <th style="font-size:8px;font-family: Courier New;width:1.6cm;overflow: auto; text-align: center;"><b>Sub Total</b></th>
                         </tr>
                     </thead>
                     <tbody>
@@ -46,7 +46,7 @@
                             <col width='25%' style="font-size: 9px;"/>
                             <col width='25%' style="font-size: 9px;"/>
                         </colgroup> -->
-                        <t t-foreach="orderlines" t-as="orderline">
+                        <!-- <t t-foreach="orderlines" t-as="orderline">
                             <tr>
                                 <td>
                                     <t t-esc="&#160;&#160;orderline.quantity&#160;&#160;"/>
@@ -59,14 +59,33 @@
                                 </td>
                                 <td class="pos-right-align">
                                      <![CDATA[&nbsp;]]><t t-esc="(orderline.price*orderline.quantity)"/>
-                                    <!-- <t t-esc="widget.format_currency(orderline.get_display_price())"/> -->
+
                                 </td>
                             </tr>
                             <tr>
                                 <td></td>
                                 <td></td>
                             </tr>
-                        </t>
+                        </t> -->
+                        <tr t-foreach="orderlines" t-as="l">
+
+                              <!-- CANTIDAD -->
+                              <th style="font-size:8px;font-family: Arial;width:0.5cm;overflow: auto; text-align: center;">
+                                    <span t-esc="l.quantity"/>
+                              </th>
+
+                              <!-- NOMBRE DEL PRODUCTO -->
+                              <th style="font-size:8px;font-family: Arial;width:4.0cm;overflow: auto; text-align: left;">
+                                    <span t-esc="l.get_product().display_name"/>
+                              </th>
+                              <th style="font-size:8px;font-family: Arial;width:1.6cm;overflow: auto; text-align: right;">
+                                    <span t-esc="l.price"/>
+                              </th>
+                              <!-- PRECIO UNITARIO -->
+                              <th style="font-size:8px;font-family: Arial;width:1.6cm;overflow: auto; text-align: right;">
+                                    <span t-esc="(l.quantity * l.price)"/>
+                              </th>
+                        </tr>
                     </tbody>
                 </table>