123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?xml version="1.0" encoding="UTF-8"?>
- <templates>
- <t t-extend="PosTicket">
- <t t-jquery="div.pos-sale-ticket" t-operation="replace">
- <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> -->
- <center>            POR SU POLLO</center><br/>
- <!-- <t t-esc="           widget.pos.company.phone || ''"/> <br/> -->
- <center>           (0973) 558806</center><br/>
- <center>        www.porsupollo.com.py</center><br/>
- <center>----------------------------------------</center><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/>
- <br />
- <t t-if="widget.pos.config.receipt_header">
- <div style='text-align:center;font-size: 20px;'>
- <t t-esc="widget.pos.config.receipt_header" />
- </div>
- <br />
- </t>
- 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>
- <br/>
- <br />
- <center>----------------------------------------</center><br/>
- <table class="table table-condensed" style="font-size: 8px;">
- <thead>
- <tr>
- <th style="font-size:8px;font-family: Courier New;width:0.6cm;overflow: auto; text-align: center;">Cant </th>
- <th style="font-size:8px;font-family: Courier New;width:3.0cm;overflow: auto; text-align: left;"><b>Producto</b>    </th>
- <th style="font-size:8px;font-family: Courier New;width:1.0cm;overflow: auto; text-align: center;"><b>Precio</b> </th>
- <th style="font-size:8px;font-family: Courier New;width:1.0cm;overflow: auto; text-align: center;"><b>SubTotal</b> </th>
- </tr>
- </thead>
- <tbody>
- <!-- <colgroup>
- <col width='15%' style="font-size: 9px;"/>
- <col width='35%' style="font-size: 9px;"/>
- <col width='25%' style="font-size: 9px;"/>
- <col width='25%' style="font-size: 9px;"/>
- </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>
- <![CDATA[ ]]><t t-esc="orderline.price"/>
- </td>
- <td class="pos-right-align">
- <![CDATA[ ]]><t t-esc="(orderline.price*orderline.quantity)"/>
- </td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- </tr>
- </t> -->
- <tr t-foreach="orderlines" t-as="l">
- <!-- CANTIDAD -->
- <th style="font-size:8px;font-family: Arial;width:0.6cm;overflow: auto; text-align: center;">
- <span t-esc="l.quantity"/>
- </th>
- <!-- NOMBRE DEL PRODUCTO -->
- <th style="font-size:8px;font-family: Arial;width:3.5cm;overflow: auto; text-align: left;">
- <![CDATA[ ]]><span t-esc="l.get_product().display_name"/>
- </th>
- <th style="font-size:8px;font-family: Arial;width:1.0cm;overflow: auto; text-align: right;">
- <![CDATA[ ]]><span t-esc="l.price"/>
- </th>
- <!-- PRECIO UNITARIO -->
- <th style="font-size:8px;font-family: Arial;width:1.0cm;overflow: auto; text-align: right;">
- <![CDATA[ ]]><span t-esc="(l.quantity * l.price)"/>
- </th>
- </tr>
- </tbody>
- </table>
- <table>
- <center>----------------------------------------</center><br/>
- <tr class="emph">
- <br />
- <td>Total:                   </td>
- <td class="pos-right-align" style='font-family: "Courier New;font-size: 20px;'>
- <t t-esc="widget.format_currency(order.getTotalTaxIncluded())"/>
- </td>
- </tr>
- </table>
- <table>
- <tr t-foreach="paymentlines" t-as="line">
- <td>
- <t t-esc="line.name"/>
- </td>
- <td class="pos-right-align">
- <![CDATA[ ]]><t t-esc="widget.format_currency(line.get_amount())"/>
- </td>
- </tr>
- </table>
- <br />
- <table>
- <tr><td>Vuelto:                 </td><td class="pos-right-align">
- <t t-esc="widget.format_currency(order.getChange())"/>
- </td></tr>
- <tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nota sin valor fiscal</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>
- </t>
- </templates>
|