report_reciboenfactura.xml 10 KB

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