| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 | <?xml version="1.0" encoding="utf-8"?><openerp><data>    <report id="registro_caja"        model="account.bank.statement"        string="Registro de Caja"        report_type="qweb-pdf"        name="account_bank_statement_report.report_registro_caja"        file="account_bank_statement_report.report_registro_caja"    />    <template id="report_registro_caja">        <t t-call="report.html_container">            <t t-foreach="docs" t-as="o">                <t t-call="report.internal_layout">                    <div class="page">                        <h2>Registro de Caja</h2>                        <div class="row">                            <div class="col-xs-3">                                <strong>Nombre del Registro</strong>:<br/>                                <span t-field="o.name"/>                            </div>                            <div class="col-xs-3">                                <strong>Diario</strong>:<br/>                                <span t-field="o.journal_id"/>                            </div>                            <div class="col-xs-3">                                <strong>Empresa</strong>:<br/>                                <span t-field="o.company_id"/>                            </div>                            <div class="col-xs-3">                                <strong>Responsable</strong>:<br/>                                <span t-field="o.user_id"/>                            </div>                        </div>                        <div class="row mb32">                            <div class="col-xs-3">                                <strong>Fecha de Apertura</strong>:<br/>                                <span t-field="o.date"/>                            </div>                            <div class="col-xs-3">                                <strong>Fecha de Cierre</strong>:<br/>                                <span t-field="o.closing_date"/>                            </div>                            <div class="col-xs-3">                                <strong>Balance Inicial</strong>:<br/>                                <span t-field="o.balance_start" t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>                            </div>                            <div class="col-xs-3">                                <strong>Balance Final</strong>:<br/>                                <span t-field="o.balance_end_real" t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>                            </div>                        </div>                        <table class="table table-condensed">                            <thead>                                <tr>                                    <th>Referencia</th>                                    <th>Socio</th>                                    <th class="text-right">Monto</th>                                </tr>                            </thead>                            <tbody>                                <tr t-foreach="o.line_ids" t-as="line">                                    <t t-if="line.amount > 0">                                        <td><span t-field="line.ref"/></td>                                        <td><span t-esc="line.partner_id.name"/></td>                                        <td class="text-right">                                                <span t-field="line.amount"                                            t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>                                        </td>                                    </t>                                </tr>                                <tr>                                    <td colspan="3"></td>                                </tr>                                <tr class="border-black">                                        <td></td>                                        <td><strong>Sub Total de Ventas</strong></td>                                        <td class="text-right"><strong><span t-esc="get_sub_total_pos(o.line_ids)" t-esc-options='{"widget": "monetary", "display_currency": "o.currency"}'/></strong></td>                                </tr>                                <tr t-foreach="o.line_ids" t-as="line">                                    <t t-if="not line.amount > 0">                                        <td><span t-field="line.name"/></td>                                        <td><span t-esc="line.partner_id.name"/></td>                                        <td class="text-right">                                                <span t-field="line.amount"                                            t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>                                        </td>                                    </t>                                </tr>                                <tr>                                    <td colspan="3"></td>                                </tr>                                <tr class="border-black">                                        <td></td>                                        <td><strong>Sub Total</strong></td>                                        <td class="text-right"><strong><span t-esc="get_sub_total_neg(o.line_ids)" t-esc-options='{"widget": "monetary", "display_currency": "o.currency"}'/></strong></td>                                </tr>                            </tbody>                        </table>                        <div class="row">                            <div class="col-xs-4 pull-right">                                <table class="table table-condensed">                                    <tr class="border-black">                                        <td><strong>Saldo Final</strong></td>                                        <!--<td class="text-right"><strong><span t-esc="formatLang(get_total(o.line_ids), currency_obj=res_company.currency_id)"/></strong></td>-->                                        <td class="text-right"><strong><span t-esc="get_total(o.line_ids)" t-esc-options='{"widget": "monetary", "display_currency": "o.currency"}'/></strong></td>                                    </tr>                                </table>                            </div>                        </div>                    </div>                </t>            </t>        </t>    </template></data></openerp>
 |