factura_venta_imperio.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_venta_imperio"
  5. model="account.invoice"
  6. string="Factura Comun"
  7. report_type="qweb-html"
  8. name="factura_comun_imperio.report_facturaventa_imperio"
  9. file="factura_comun_imperio.report_facturaventa_imperio"
  10. />
  11. <record id="paperformat_lowmargin" model="report.paperformat">
  12. <field name="name">European A4 low margin</field>
  13. <field name="default" eval="True" />
  14. <field name="format">A4</field>
  15. <field name="page_height">0</field>
  16. <field name="page_width">0</field>
  17. <field name="orientation">Portrait</field>
  18. <field name="margin_top">0</field>
  19. <field name="margin_bottom">1</field>
  20. <field name="margin_left">3</field>
  21. <field name="margin_right">2</field>
  22. <field name="header_line" eval="False" />
  23. <field name="header_spacing">0</field>
  24. <field name="dpi">90</field>
  25. </record>
  26. <record id="factura_comun_imperio.factura_venta_imperio" model="ir.actions.report.xml">
  27. <field name="paperformat_id" ref="factura_comun_imperio.paperformat_lowmargin" />
  28. </record>
  29. <template id="report_facturaventa_imperio">
  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. .descripcion1{
  52. width: 11.2cm;
  53. font-size: 13px;
  54. padding-top: 0.5cm;
  55. float: left;
  56. min-height: 0.7cm;
  57. }
  58. .descripcion2{
  59. width: 13cm;
  60. font-size: 11px;
  61. float: left;
  62. min-height: 0cm;
  63. }
  64. .descripcion3{
  65. width: 15cm;
  66. font-size: 11px;
  67. float: left;
  68. min-height: 0cm;
  69. }
  70. .descripcion4{
  71. width: 15cm;
  72. font-size: 11px;
  73. float: left;
  74. min-height: 0.3cm;
  75. }
  76. .email{
  77. width: 13cm;
  78. font-size: 11px;
  79. float: left;
  80. min-height: 0.3cm;
  81. }
  82. .table-condensed>tbody>tr>td {
  83. padding: 1px !important;
  84. }
  85. .divisoria{
  86. height: 0.5cm;
  87. clear: both;
  88. }
  89. .linea1{
  90. position: relative;
  91. top: -0.12cm;
  92. min-height: 0.5cm;
  93. }
  94. .fecha_emision_data{
  95. width: 8.5cm;
  96. float: left;
  97. min-height: 0.5cm;
  98. }
  99. .number{
  100. width: 7cm;
  101. float: left;
  102. padding-left: 0.2cm;
  103. min-height: 0.5cm;
  104. }
  105. .linea2{
  106. position: relative;
  107. top: -0.12cm;
  108. min-height: 0.5cm;
  109. }
  110. .razon_data{
  111. width: 12cm;
  112. float: left;
  113. min-height: 0.4cm;
  114. }
  115. .linea3{
  116. position: relative;
  117. top: -0.12cm;
  118. min-height: 0.3cm;
  119. }
  120. .vendor{
  121. width: 5cm;
  122. float: left;
  123. min-height: 0.4cm;
  124. }
  125. .contado_x{
  126. width: 8.0cm;
  127. float: left;
  128. min-height: 0.4cm;
  129. }
  130. .cab-articulos{
  131. height: 0.4cm;
  132. clear: both;
  133. }
  134. .articulos{
  135. height: 4.5cm;
  136. width: 14cm;
  137. }
  138. .art-col1{
  139. width:1.9cm;
  140. text-align: center;
  141. }
  142. .art-col2{
  143. padding-left: 0.3cm;
  144. width:12cm;
  145. }
  146. .art-col3{
  147. padding-left: 0.3cm;
  148. text-align: right;
  149. width:3cm;
  150. }
  151. .art-col4{
  152. width:3.4cm;
  153. text-align: right;
  154. }
  155. .art-col5{
  156. width:3.4cm;
  157. text-align: right;
  158. }
  159. .logo1{
  160. height: 2cm;
  161. width: 100%;
  162. top: 0px;
  163. }
  164. </style>
  165. <t t-foreach="docs" t-as="o">
  166. <div class="pagina">
  167. <div class="divisoria"> </div>
  168. <div style="border:0.3px solid #000;"></div>
  169. <div class="divisoria"> </div>
  170. <div class="row">
  171. <div class="col-xs-6">
  172. <tr>
  173. <div class="descripcion">
  174. </div>
  175. </tr>
  176. <tr>
  177. <div class="descripcion1"><b>MAZAPY</b></div>
  178. </tr>
  179. <tr>
  180. <div class="descripcion2"><b></b></div>
  181. </tr>
  182. <tr>
  183. <div class="descripcion3"><b></b></div>
  184. </tr>
  185. <tr>
  186. <div class="descripcion4"><b></b></div>
  187. </tr>
  188. <tr>
  189. <div class="email"><b>PEDIDO DE PRESUPUESTO</b></div>
  190. </tr>
  191. <!-- <tr>
  192. <div class="tel"><b>Cel.: (0981)845 372/(0983)272496</b></div>
  193. </tr>
  194. <tr>
  195. <div class="rucdata1"><b>R.U.C. N° 80085177-3</b></div>
  196. </tr> -->
  197. </div>
  198. </div>
  199. <div class="divisoria"> </div>
  200. <div style="border:0.3px solid #000;"></div>
  201. <div class="divisoria"> </div>
  202. <div class="linea1">
  203. <div class="fecha_emision_data"><b>FECHA: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  204. <div class="number"><strong>REF. VENTA: </strong><span t-field="o.name"/></div>
  205. </div>
  206. <div class="linea2">
  207. <div class="razon_data"><b>CLIENTE: </b><span t-field="o.partner_id.name"/></div>
  208. </div>
  209. <div class="linea3">
  210. <div class="vendor"><b>VENDEDOR: </b><span t-field="o.user_id"/></div>
  211. <div class="contado_x"><b>FORMA DE PAGO: </b><t t-if="o.contado == True">Contado</t><t t-if="o.contado == False">Crédito</t></div>
  212. </div>
  213. <div class="divisoria"> </div>
  214. <div style="border:0.3px solid #000;"></div>
  215. <div class="divisoria"> </div>
  216. <table class="table table-condensed table-bordered">
  217. <thead>
  218. <tr>
  219. <th class="art-col1">CODIGO</th>
  220. <th class="art-col2">DESCRIPCION</th>
  221. <th class="art-col3">CANT.</th>
  222. <th class="art-col4">P. UNIT </th>
  223. <th class="art-col5">SUBTOTAL</th>
  224. </tr>
  225. </thead>
  226. <tbody class="sale_tbody">
  227. <t t-set="valor_mat" t-value="0"/>
  228. <t t-set="qty" t-value="0"/>
  229. <tr t-foreach="o.invoice_line" t-as="l">
  230. <td class="art-col1">
  231. <span t-field="l.product_id.default_code"/>
  232. </td>
  233. <td class="art-col2">
  234. <span t-field="l.name"/>
  235. </td>
  236. <td class="art-col3">
  237. <span t-esc= "'{0:,.0f}'.format(int(l.quantity)).replace(',', '.')">
  238. <span t-value="qty + l.quantity"/></span>
  239. <t t-set="qty" t-value="qty + l.quantity"/>
  240. </td>
  241. <td class="art-col4">
  242. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  243. </td>
  244. <td class="art-col5">
  245. <span t-esc= "'{0:,.0f}'.format((l.quantity * l.price_unit)).replace(',', '.')">
  246. <span t-value="valor_mat+(l.quantity * l.price_unit)"/></span>
  247. <t t-set="valor_mat" t-value="valor_mat+(l.quantity * l.price_unit)"/>
  248. </td>
  249. </tr>
  250. </tbody>
  251. </table>
  252. <div class="row">
  253. <div class="col-xs-12 pull-right">
  254. <table class="table table-condensed">
  255. <td class="art-col1"><b>Totales: </b></td>
  256. <td class="art-col2"></td>
  257. <td class="art-col3">
  258. <span t-esc="'{0:,.0f}'.format(int(qty)).replace(',', '.')"></span>
  259. </td>
  260. <td class="art-col4"></td>
  261. <td class="art-col5">
  262. <span t-esc="'{0:,.0f}'.format((valor_mat)).replace(',', '.')"></span>
  263. </td>
  264. </table>
  265. </div>
  266. </div>
  267. <div class="row">
  268. <div class="col-xs-4 pull-right">
  269. <table class="table table-condensed">
  270. <!-- <tr class="border-black">
  271. <td><strong>Total s/ IVA</strong></td>
  272. <td class="text-right">
  273. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td>IVA</td>
  278. <td class="text-right">
  279. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  280. </td>
  281. </tr> -->
  282. <tr class="border-black">
  283. <td><strong>Total</strong></td>
  284. <td class="text-right">
  285. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  286. </td>
  287. </tr>
  288. </table>
  289. </div>
  290. </div>
  291. </div>
  292. </t>
  293. </div>
  294. </t>
  295. </template>
  296. </data>
  297. </openerp>