registro_caja.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="registro_caja"
  5. model="account.bank.statement"
  6. string="Registro de Caja"
  7. report_type="qweb-pdf"
  8. name="account_bank_statement_report.report_registro_caja"
  9. file="account_bank_statement_report.report_registro_caja"
  10. />
  11. <template id="report_registro_caja">
  12. <t t-call="report.html_container">
  13. <t t-foreach="docs" t-as="o">
  14. <t t-call="report.internal_layout">
  15. <div class="page">
  16. <h2>Registro de Caja</h2>
  17. <div class="row">
  18. <div class="col-xs-3">
  19. <strong>Nombre del Registro</strong>:<br/>
  20. <span t-field="o.name"/>
  21. </div>
  22. <div class="col-xs-3">
  23. <strong>Diario</strong>:<br/>
  24. <span t-field="o.journal_id"/>
  25. </div>
  26. <div class="col-xs-3">
  27. <strong>Empresa</strong>:<br/>
  28. <span t-field="o.company_id"/>
  29. </div>
  30. <div class="col-xs-3">
  31. <strong>Responsable</strong>:<br/>
  32. <span t-field="o.user_id"/>
  33. </div>
  34. </div>
  35. <div class="row mb32">
  36. <div class="col-xs-3">
  37. <strong>Fecha de Apertura</strong>:<br/>
  38. <span t-field="o.date"/>
  39. </div>
  40. <div class="col-xs-3">
  41. <strong>Fecha de Cierre</strong>:<br/>
  42. <span t-field="o.closing_date"/>
  43. </div>
  44. <div class="col-xs-3">
  45. <strong>Balance Inicial</strong>:<br/>
  46. <span t-field="o.balance_start" t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>
  47. </div>
  48. <div class="col-xs-3">
  49. <strong>Balance Final</strong>:<br/>
  50. <span t-field="o.balance_end_real" t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>
  51. </div>
  52. </div>
  53. <table class="table table-condensed">
  54. <thead>
  55. <tr>
  56. <th>Referencia</th>
  57. <th>Socio</th>
  58. <th class="text-right">Monto</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. <tr t-foreach="o.line_ids" t-as="line">
  63. <t t-if="line.amount > 0">
  64. <td><span t-field="line.ref"/></td>
  65. <td><span t-esc="line.partner_id.name"/></td>
  66. <td class="text-right">
  67. <span t-field="line.amount"
  68. t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>
  69. </td>
  70. </t>
  71. </tr>
  72. <tr>
  73. <td colspan="3"></td>
  74. </tr>
  75. <tr class="border-black">
  76. <td></td>
  77. <td><strong>Sub Total de Ventas</strong></td>
  78. <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>
  79. </tr>
  80. <tr t-foreach="o.line_ids" t-as="line">
  81. <t t-if="not line.amount > 0">
  82. <td><span t-field="line.name"/></td>
  83. <td><span t-esc="line.partner_id.name"/></td>
  84. <td class="text-right">
  85. <span t-field="line.amount"
  86. t-field-options='{"widget": "monetary", "display_currency": "o.currency"}'/>
  87. </td>
  88. </t>
  89. </tr>
  90. <tr>
  91. <td colspan="3"></td>
  92. </tr>
  93. <tr class="border-black">
  94. <td></td>
  95. <td><strong>Sub Total</strong></td>
  96. <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>
  97. </tr>
  98. </tbody>
  99. </table>
  100. <div class="row">
  101. <div class="col-xs-4 pull-right">
  102. <table class="table table-condensed">
  103. <tr class="border-black">
  104. <td><strong>Saldo Final</strong></td>
  105. <!--<td class="text-right"><strong><span t-esc="formatLang(get_total(o.line_ids), currency_obj=res_company.currency_id)"/></strong></td>-->
  106. <td class="text-right"><strong><span t-esc="get_total(o.line_ids)" t-esc-options='{"widget": "monetary", "display_currency": "o.currency"}'/></strong></td>
  107. </tr>
  108. </table>
  109. </div>
  110. </div>
  111. </div>
  112. </t>
  113. </t>
  114. </t>
  115. </template>
  116. </data>
  117. </openerp>