Browse Source

Ajuste para cocina

Sebas 5 years ago
parent
commit
1db221d7d5
2 changed files with 64 additions and 0 deletions
  1. BIN
      __init__.pyc
  2. 64 0
      static/src/xml/pos.xml

BIN
__init__.pyc


+ 64 - 0
static/src/xml/pos.xml

@@ -146,6 +146,70 @@
                         </td></tr>
                 </table>
                 <br/>
+                <br/><br/>
+                <div class="pos-center-align" style="font-size:20pt;font-weight:bold">Cocina</div>
+                User: <t t-esc="widget.pos.cashier ? widget.pos.cashier.name : widget.pos.user.name"/>
+                <t t-if="order.attributes.client">
+                    <p>========================</p>
+                    <!-- RUC: <t t-esc="order.attributes.client.ruc ? order.attributes.client.ruc : ''"/><br /> -->
+                    <t t-if="order.attributes.client.name">
+                      Cliente: <t t-esc="order.attributes.client.name"/><br />
+                    </t>
+                    <t t-if="order.attributes.client.fax">
+                      N° de legajo: <t t-esc="order.attributes.client.fax"/><br />
+                    </t>
+                    <t t-if="order.attributes.table">
+                      <t t-if="order.attributes.table.type =='table'">
+                        Mesa: <t t-esc="order.attributes.table.name"/>
+                      </t>
+                      <t t-if="order.attributes.table.type =='delivery'">
+                        Delivery: <t t-esc="order.attributes.table.name"/>
+                      </t>
+                    </t>
+                </t>
+                <p>========================</p>
+                <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">Sub-total</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        <colgroup>
+                            <col width='15%'/>
+                            <col width='35%'/>
+                            <col width='25%'/>
+                            <col width='25%'/>
+                        </colgroup>
+                        <t t-foreach="orderlines" t-as="orderline">
+                            <tr>
+                                <td>
+                                    <t t-esc="orderline.quantity"/>
+                                </td>
+                                <td>
+                                    <t t-esc="orderline.get_product().display_name"/>
+                                </td>
+                                <td>
+                                    <t t-esc="widget.format_currency(orderline.price)"/>
+                                </td>
+                                <td class="pos-right-align">
+                                    <t t-esc="widget.format_currency(orderline.get_display_price())"/>
+                                </td>
+                            </tr>
+                            <tr>
+                                <td>********</td>
+                                <td>******************</td>
+                                <td>*************</td>
+                                <td>*************</td>
+                            </tr>
+                        </t>
+                    </tbody>
+                </table>
+
+
                 <t t-if="widget.pos.config.receipt_footer">
                     <br />
                     <div style='text-align:center'>