report_reciboenfactura.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  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">140</field>
  16. <field name="page_width">210</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">2</field>
  19. <field name="margin_bottom">3</field>
  20. <field name="margin_left">1</field>
  21. <field name="margin_right">1</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">2</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]" t-as="i">
  32. <div class="page">
  33. <style type="text/css">
  34. body{
  35. font-size: 4.0mm;
  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: 15px;
  61. padding-top: 0.5cm;
  62. float: left;
  63. min-height: 0.7cm;
  64. }
  65. .descripcion2{
  66. width: 13cm;
  67. font-size: 15px;
  68. float: left;
  69. min-height: 0cm;
  70. }
  71. .descripcion3{
  72. width: 15cm;
  73. font-size: 15px;
  74. float: left;
  75. min-height: 0cm;
  76. }
  77. .descripcion4{
  78. width: 15cm;
  79. font-size: 15px;
  80. float: left;
  81. min-height: 0.3cm;
  82. }
  83. .email{
  84. width: 13cm;
  85. font-size: 15px;
  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. font-size: 4.0mm;
  104. float: left;
  105. min-height: 0.5cm;
  106. }
  107. .number{
  108. width: 7cm;
  109. float: left;
  110. font-size: 4.0mm;
  111. padding-left: 0.2cm;
  112. min-height: 0.5cm;
  113. }
  114. .linea2{
  115. position: relative;
  116. top: -0.12cm;
  117. min-height: 0.5cm;
  118. }
  119. .razon_data{
  120. width: 12cm;
  121. font-size: 4.0mm;
  122. float: left;
  123. min-height: 0.4cm;
  124. }
  125. .linea3{
  126. position: relative;
  127. top: -0.12cm;
  128. min-height: 0.5cm;
  129. }
  130. .ruc{
  131. width: 7cm;
  132. float: left;
  133. font-size: 4.0mm;
  134. min-height: 0.4cm;
  135. }
  136. .due{
  137. width: 7cm;
  138. float: left;
  139. font-size: 4.0mm;
  140. min-height: 0.4cm;
  141. }
  142. .linea4{
  143. position: relative;
  144. top: -0.12cm;
  145. min-height: 0.3cm;
  146. }
  147. .street{
  148. width: 15cm;
  149. float: left;
  150. font-size: 4.0mm;
  151. min-height: 0.4cm;
  152. }
  153. .mobile{
  154. width: 7cm;
  155. float: left;
  156. font-size: 4.0mm;
  157. min-height: 0.4cm;
  158. }
  159. .linea5{
  160. position: relative;
  161. top: -0.12cm;
  162. min-height: 0.3cm;
  163. }
  164. .vendor{
  165. width: 8cm;
  166. float: left;
  167. font-size: 4.0mm;
  168. min-height: 0.4cm;
  169. }
  170. .fechapago{
  171. width: 8cm;
  172. float: left;
  173. font-size: 4.0mm;
  174. min-height: 0.4cm;
  175. }
  176. .cab-articulos{
  177. height: 0.4cm;
  178. clear: both;
  179. }
  180. .articulos{
  181. height: 4.5cm;
  182. width: 14cm;
  183. }
  184. .art-col1{
  185. width:1.9cm;
  186. text-align: center;
  187. }
  188. .art-col2{
  189. padding-left: 0.3cm;
  190. width:12cm;
  191. }
  192. .art-col3{
  193. padding-left: 0.3cm;
  194. text-align: right;
  195. width:3cm;
  196. }
  197. .art-col4{
  198. width:3.4cm;
  199. text-align: right;
  200. }
  201. .art-col5{
  202. width:3.4cm;
  203. text-align: right;
  204. }
  205. .total_pagar_data{
  206. width: 17.5cm;
  207. float: left;
  208. font-size: 4.0mm;
  209. padding-top: 0.01mm;
  210. min-height: 0.3cm;
  211. }
  212. .logo1{
  213. height: 2cm;
  214. width: 100%;
  215. top: 0px;
  216. }
  217. </style>
  218. <t t-foreach="docs" t-as="o">
  219. <div class="pagina">
  220. <div class="divisoria"> </div>
  221. <div style="border:0.3px solid #000;"></div>
  222. <div class="titulo" >
  223. <h4 class="text-center"><strong>RECIBO DE DINERO Nº: <span t-field="o.id"/></strong></h4>
  224. <h3 class="text-center"></h3>
  225. </div>
  226. <div style="border:0.3px solid #000;"></div>
  227. <div class="divisoria"> </div>
  228. <div class="linea1">
  229. <div class="fecha_emision_data"><b>FECHA: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  230. <div class="number"><strong>REF. VENTA: </strong><span t-field="o.name"/></div>
  231. </div>
  232. <div class="linea2">
  233. <div class="razon_data"><b>CLIENTE: </b><span t-field="o.partner_id.name"/></div>
  234. </div>
  235. <div class="linea3">
  236. <div class="ruc"><b>R.U.C. Nº: </b><span t-field="o.partner_id.ruc"/></div>
  237. <div class="due"><b>Vencimiento: </b><span t-field="o.date_due"/></div>
  238. </div>
  239. <div class="linea4">
  240. <div class="street"><b>DIRECCIÓN: </b><span t-field="o.partner_id.street"/></div>
  241. <div class="mobile"><b>TÉLEFONO: </b><span t-field="o.partner_id.mobile"/></div>
  242. </div>
  243. <div class="linea5">
  244. <div class="vendor"><b>COBRADOR: </b><span t-field="o.employee_id"/></div>
  245. <div class="fechapago"><b>FECHA DE PAGO: </b></div>
  246. </div>
  247. <div class="divisoria"> </div>
  248. <div style="border:0.3px solid #000;"></div>
  249. <div class="divisoria"> </div>
  250. <table class="table table-condensed table-bordered">
  251. <thead>
  252. <tr>
  253. <th class="art-col1">CODIGO</th>
  254. <th class="art-col2">DESCRIPCION</th>
  255. <th class="art-col3">CANT.</th>
  256. <th class="art-col4">P. UNIT </th>
  257. <th class="art-col5">SUBTOTAL</th>
  258. </tr>
  259. </thead>
  260. <tbody class="sale_tbody">
  261. <t t-set="valor_mat" t-value="0"/>
  262. <t t-set="qty" t-value="0"/>
  263. <tr t-foreach="o.invoice_line" t-as="l">
  264. <td class="art-col1">
  265. <span t-field="l.product_id.default_code"/>
  266. </td>
  267. <td class="art-col2">
  268. <span t-field="l.name"/>
  269. </td>
  270. <td class="art-col3">
  271. <span t-esc= "'{0:,.0f}'.format(int(l.quantity)).replace(',', '.')">
  272. <span t-value="qty + l.quantity"/></span>
  273. <t t-set="qty" t-value="qty + l.quantity"/>
  274. </td>
  275. <td class="art-col4">
  276. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  277. </td>
  278. <td class="art-col5">
  279. <span t-esc= "'{0:,.0f}'.format((l.quantity * l.price_unit)).replace(',', '.')">
  280. <span t-value="valor_mat+(l.quantity * l.price_unit)"/></span>
  281. <t t-set="valor_mat" t-value="valor_mat+(l.quantity * l.price_unit)"/>
  282. </td>
  283. </tr>
  284. </tbody>
  285. </table>
  286. <div class="row">
  287. <div class="col-xs-12 pull-right">
  288. <table class="table table-condensed">
  289. <td class="art-col1"><b>Totales: </b></td>
  290. <td class="art-col2"></td>
  291. <td class="art-col3">
  292. <span t-esc="'{0:,.0f}'.format(int(qty)).replace(',', '.')"></span>
  293. </td>
  294. <td class="art-col4"></td>
  295. <td class="art-col5">
  296. <span t-esc="'{0:,.0f}'.format((valor_mat)).replace(',', '.')"></span>
  297. </td>
  298. </table>
  299. </div>
  300. </div>
  301. <div class="row">
  302. <div class="col-xs-12 pull-right">
  303. <table class="table table-condensed">
  304. <tr class="border-black">
  305. <td><div class="total_pagar_data"><b>Total a pagar: </b><span t-esc="convertir(o.amount_total,o.currency_id.en_letras)"/> Gs. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/></div></td>
  306. </tr>
  307. </table>
  308. </div>
  309. </div>
  310. </div>
  311. </t>
  312. </div>
  313. </t>
  314. </t>
  315. </template>
  316. </data>
  317. </openerp>