report_reciboenfactura.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="informe_reciboenfactura_nandetv"
  5. model="account.invoice"
  6. string="Recibo en factura"
  7. report_type="qweb-html"
  8. name="factura_venta_nandetv.reciboenfactura_nandetv"
  9. file="factura_venta_nandetv.reciboenfactura_nandetv"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">A4</field>
  13. <field name="default" eval="True" />
  14. <field name="format">custom</field>
  15. <field name="page_height">297</field>
  16. <field name="page_width">210</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">4</field>
  19. <field name="margin_bottom">3</field>
  20. <field name="margin_left">3</field>
  21. <field name="margin_right">3</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">3</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="factura_venta_nandetv.informe_reciboenfactura_nandetv" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_venta_nandetv.paperformat_lowmargin" />
  28. </record>
  29. <template id="reciboenfactura_nandetv">
  30. <t t-call="report.html_container">
  31. <t t-foreach="[1,2]" t-as="i">
  32. <div class="page">
  33. <style type="text/css">
  34. body{
  35. font-size: 3.6mm;
  36. font-family: Arial;
  37. }
  38. body1{
  39. font-size: 4.3mm;
  40. font-family: Arial;
  41. }
  42. div{
  43. padding: 0px;
  44. }
  45. .pagina{
  46. width:19.3cm;
  47. padding-left: 2cm;
  48. padding-right: 1cm;
  49. height: 15cm;
  50. }
  51. .titulo{
  52. width: 19.2cm;
  53. text-align: center;
  54. margin-left: 0.8cm;
  55. width: 100%;
  56. min-height: 0.9cm;
  57. }
  58. .descripcion1{
  59. width: 11.2cm;
  60. font-size: 13px;
  61. padding-top: 0.5cm;
  62. float: left;
  63. min-height: 0.7cm;
  64. }
  65. .descripcion2{
  66. width: 13cm;
  67. font-size: 11px;
  68. float: left;
  69. min-height: 0cm;
  70. }
  71. .descripcion3{
  72. width: 15cm;
  73. font-size: 11px;
  74. float: left;
  75. min-height: 0cm;
  76. }
  77. .descripcion4{
  78. width: 15cm;
  79. font-size: 11px;
  80. float: left;
  81. min-height: 0.3cm;
  82. }
  83. .email{
  84. width: 13cm;
  85. font-size: 11px;
  86. float: left;
  87. min-height: 0.3cm;
  88. }
  89. .table-condensed>tbody>tr>td {
  90. padding: 1px !important;
  91. }
  92. .divisoria{
  93. height: 0.1cm;
  94. clear: both;
  95. }
  96. .linea1{
  97. position: relative;
  98. top: -0.12cm;
  99. min-height: 0.5cm;
  100. }
  101. .fecha_emision_data{
  102. width: 8.5cm;
  103. float: left;
  104. min-height: 0.5cm;
  105. }
  106. .number{
  107. width: 7cm;
  108. float: left;
  109. padding-left: 0.2cm;
  110. min-height: 0.5cm;
  111. }
  112. .linea2{
  113. position: relative;
  114. top: -0.12cm;
  115. min-height: 0.5cm;
  116. }
  117. .razon_data{
  118. width: 12cm;
  119. float: left;
  120. min-height: 0.4cm;
  121. }
  122. .ruc{
  123. width: 7cm;
  124. float: left;
  125. min-height: 0.4cm;
  126. }
  127. .linea3{
  128. position: relative;
  129. top: -0.12cm;
  130. min-height: 0.3cm;
  131. }
  132. .street{
  133. width: 15cm;
  134. float: left;
  135. min-height: 0.4cm;
  136. }
  137. .mobile{
  138. width: 7cm;
  139. float: left;
  140. min-height: 0.4cm;
  141. }
  142. .linea4{
  143. position: relative;
  144. top: -0.12cm;
  145. min-height: 0.3cm;
  146. }
  147. .vendor{
  148. width: 8cm;
  149. float: left;
  150. min-height: 0.4cm;
  151. }
  152. .cab-articulos{
  153. height: 0.4cm;
  154. clear: both;
  155. }
  156. .articulos{
  157. height: 4.5cm;
  158. width: 14cm;
  159. }
  160. .art-col1{
  161. width:1.9cm;
  162. text-align: center;
  163. }
  164. .art-col2{
  165. padding-left: 0.3cm;
  166. width:12cm;
  167. }
  168. .art-col3{
  169. padding-left: 0.3cm;
  170. text-align: right;
  171. width:3cm;
  172. }
  173. .art-col4{
  174. width:3.4cm;
  175. text-align: right;
  176. }
  177. .art-col5{
  178. width:3.4cm;
  179. text-align: right;
  180. }
  181. .total_pagar_data{
  182. width: 17.5cm;
  183. float: left;
  184. padding-top: 0.01mm;
  185. min-height: 0.3cm;
  186. }
  187. .logo1{
  188. height: 2cm;
  189. width: 100%;
  190. top: 0px;
  191. }
  192. </style>
  193. <t t-foreach="docs" t-as="o">
  194. <div class="pagina">
  195. <div class="divisoria"> </div>
  196. <div style="border:0.3px solid #000;"></div>
  197. <div class="titulo" >
  198. <h3 class="text-center"><strong>RECIBO DE DINERO</strong></h3>
  199. <h4 class="text-center"></h4>
  200. </div>
  201. <div style="border:0.3px solid #000;"></div>
  202. <div class="divisoria"> </div>
  203. <div class="linea1">
  204. <div class="fecha_emision_data"><b>FECHA: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  205. <div class="number"><strong>REF. VENTA: </strong><span t-field="o.name"/></div>
  206. </div>
  207. <div class="linea2">
  208. <div class="razon_data"><b>CLIENTE: </b><span t-field="o.partner_id.name"/></div>
  209. <div class="ruc"><b>R.U.C. Nº: </b><span t-field="o.partner_id.ruc"/></div>
  210. </div>
  211. <div class="linea3">
  212. <div class="street"><b>DIRECCIÓN: </b><span t-field="o.partner_id.street"/></div>
  213. <div class="mobile"><b>TÉLEFONO: </b><span t-field="o.partner_id.mobile"/></div>
  214. </div>
  215. <div class="linea4">
  216. <div class="vendor"><b>COBRADOR: </b><span t-field="o.employee_id"/></div>
  217. </div>
  218. <div class="divisoria"> </div>
  219. <div style="border:0.3px solid #000;"></div>
  220. <div class="divisoria"> </div>
  221. <table class="table table-condensed table-bordered">
  222. <thead>
  223. <tr>
  224. <th class="art-col1">CODIGO</th>
  225. <th class="art-col2">DESCRIPCION</th>
  226. <th class="art-col3">CANT.</th>
  227. <th class="art-col4">P. UNIT </th>
  228. <th class="art-col5">SUBTOTAL</th>
  229. </tr>
  230. </thead>
  231. <tbody class="sale_tbody">
  232. <t t-set="valor_mat" t-value="0"/>
  233. <t t-set="qty" t-value="0"/>
  234. <tr t-foreach="o.invoice_line" t-as="l">
  235. <td class="art-col1">
  236. <span t-field="l.product_id.default_code"/>
  237. </td>
  238. <td class="art-col2">
  239. <span t-field="l.name"/>
  240. </td>
  241. <td class="art-col3">
  242. <span t-esc= "'{0:,.0f}'.format(int(l.quantity)).replace(',', '.')">
  243. <span t-value="qty + l.quantity"/></span>
  244. <t t-set="qty" t-value="qty + l.quantity"/>
  245. </td>
  246. <td class="art-col4">
  247. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  248. </td>
  249. <td class="art-col5">
  250. <span t-esc= "'{0:,.0f}'.format((l.quantity * l.price_unit)).replace(',', '.')">
  251. <span t-value="valor_mat+(l.quantity * l.price_unit)"/></span>
  252. <t t-set="valor_mat" t-value="valor_mat+(l.quantity * l.price_unit)"/>
  253. </td>
  254. </tr>
  255. </tbody>
  256. </table>
  257. <div class="row">
  258. <div class="col-xs-12 pull-right">
  259. <table class="table table-condensed">
  260. <td class="art-col1"><b>Totales: </b></td>
  261. <td class="art-col2"></td>
  262. <td class="art-col3">
  263. <span t-esc="'{0:,.0f}'.format(int(qty)).replace(',', '.')"></span>
  264. </td>
  265. <td class="art-col4"></td>
  266. <td class="art-col5">
  267. <span t-esc="'{0:,.0f}'.format((valor_mat)).replace(',', '.')"></span>
  268. </td>
  269. </table>
  270. </div>
  271. </div>
  272. <div class="row">
  273. <div class="col-xs-12 pull-right">
  274. <table class="table table-condensed">
  275. <tr class="border-black">
  276. <td><div class="total_pagar_data"><b>Total a pagar: </b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/> ------- <span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div></td>
  277. </tr>
  278. </table>
  279. </div>
  280. </div>
  281. </div>
  282. </t>
  283. </div>
  284. </t>
  285. </t>
  286. </template>
  287. </data>
  288. </openerp>