report_reciboenfactura.xml 10 KB

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