factura_comun_novotempo.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <report id="factura_comun_novotempo"
  5. model="account.invoice"
  6. string="Factura Comun"
  7. report_type="qweb-html"
  8. name="factura_comun_novotempo.report_factura_novotempo"
  9. file="factura_comun_novotempo.report_factura_novotempo"
  10. />
  11. <template id="report_header_custom" inherit_id="report.external_layout_header">
  12. <xpath expr="//div[@class='header']" position="replace">
  13. <div class ="header">
  14. </div>
  15. </xpath>
  16. </template>
  17. <template id="external_layout
  18. _footer" inherit_id="report.external_layout_footer">
  19. <xpath expr="//div[@class='footer']" position="replace">
  20. <div class ="footer">
  21. </div>
  22. </xpath>
  23. </template>
  24. <template id="report_factura_novotempo">
  25. <t t-call="report.html_container">
  26. <t t-call="report.external_layout">
  27. <!-- <t t-foreach="[1,2]" t-as="i"> -->
  28. <div class="page">
  29. <style type="text/css">
  30. body{
  31. font-size: 3.6mm;
  32. font-family: Arial;
  33. }
  34. div{
  35. padding: 0px;
  36. }
  37. .pagina{
  38. width:19.3cm;
  39. padding-left: 2cm;
  40. padding-right: 1cm;
  41. height: 15cm;
  42. }
  43. .descripcion1{
  44. width: 11.2cm;
  45. font-size: 13px;
  46. padding-top: 0.5cm;
  47. float: left;
  48. min-height: 0.7cm;
  49. }
  50. .descripcion2{
  51. width: 13cm;
  52. font-size: 11px;
  53. float: left;
  54. min-height: 0cm;
  55. }
  56. .descripcion3{
  57. width: 15cm;
  58. font-size: 11px;
  59. float: left;
  60. min-height: 0cm;
  61. }
  62. .descripcion4{
  63. width: 15cm;
  64. font-size: 11px;
  65. float: left;
  66. min-height: 0.3cm;
  67. }
  68. .email{
  69. width: 13cm;
  70. font-size: 11px;
  71. float: left;
  72. min-height: 0.3cm;
  73. }
  74. .ciudad{
  75. width: 13cm;
  76. float: left;
  77. font-size: 11px;
  78. min-height: 0.3cm;
  79. }
  80. .tel{
  81. width: 13cm;
  82. float: left;
  83. font-size: 11px;
  84. min-height: 0.3cm;
  85. }
  86. .rucdata1{
  87. width: 13cm;
  88. float: left;
  89. font-size: 11px;
  90. min-height: 0.3cm;
  91. }
  92. .table-condensed>tbody>tr>td {
  93. padding: 1px !important;
  94. }
  95. .divisoria{
  96. height: 0.5cm;
  97. clear: both;
  98. }
  99. .fecha_emision_data{
  100. width: 11.5cm;
  101. float: left;
  102. min-height: 0.5cm;
  103. }
  104. .contado_x{
  105. width: 1.8cm;
  106. float: left;
  107. padding-left: 9cm;
  108. min-height: 0.5cm;
  109. }
  110. .credito_x{
  111. width: 1.8cm;
  112. float: left;
  113. padding-left: 1.6cm;
  114. min-height: 0.5cm;
  115. }
  116. .linea2{
  117. position: relative;
  118. top: -0.12cm;
  119. min-height: 0.5cm;
  120. }
  121. .razon_data{
  122. width: 12cm;
  123. float: left;
  124. min-height: 0.4cm;
  125. }
  126. .ruc_data{
  127. width: 5cm;
  128. float: left;
  129. min-height: 0.5cm;
  130. }
  131. .linea3{
  132. position: relative;
  133. top: -0.12cm;
  134. min-height: 0.3cm;
  135. }
  136. .direccion_data{
  137. width: 14cm;
  138. float: left;
  139. min-height: 0.4cm;
  140. }
  141. .linea4{
  142. position: relative;
  143. top: -0.12cm;
  144. min-height: 0.3cm;
  145. }
  146. .telefono_data{
  147. width: 10cm;
  148. float: left;
  149. min-height: 0.4cm;
  150. }
  151. .nota_remision_data{
  152. width: 4cm;
  153. float: left;
  154. min-height: 0.4cm;
  155. }
  156. .cab-articulos{
  157. height: 0.4cm;
  158. font-size: 3.1mm;
  159. clear: both;
  160. }
  161. .articulos{
  162. height: 4.5cm;
  163. width: 14cm;
  164. }
  165. .art-col1{
  166. width:1.9cm;
  167. font-size: 3.0mm;
  168. text-align: center;
  169. }
  170. .art-col2{
  171. padding-left: 0.3cm;
  172. font-size: 3.0mm;
  173. width:11cm;
  174. }
  175. .art-col3{
  176. padding-left: 0.3cm;
  177. font-size: 3.0mm;
  178. text-align: right;
  179. width:5cm;
  180. }
  181. .art-col4{
  182. width:3.4cm;ç
  183. font-size: 3.0mm;
  184. text-align: right;
  185. }
  186. .logo1{
  187. height: 2cm;
  188. width: 100%;
  189. top: 0px;
  190. }
  191. </style>
  192. <t t-foreach="docs" t-as="o">
  193. <div class="pagina">
  194. <div class="divisoria"> </div>
  195. <div style="border:0.3px solid #000;"></div>
  196. <div class="divisoria"> </div>
  197. <div class="row">
  198. <!-- <div class="col-xs-6">
  199. <center>
  200. <img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" style="max-height: 250px;max-width: 50px;"/>
  201. </center>
  202. </div> -->
  203. <div class="col-xs-6">
  204. <tr>
  205. <div class="descripcion">
  206. </div>
  207. </tr>
  208. <tr>
  209. <div class="descripcion1"><b><i>NOVOTEMPO</i></b></div>
  210. </tr>
  211. <tr>
  212. <div class="descripcion2"><b></b></div>
  213. </tr>
  214. <tr>
  215. <div class="descripcion3"><b></b></div>
  216. </tr>
  217. <tr>
  218. <div class="descripcion4"><b>Avda Cap. del Puerto c/ Acaray</b></div>
  219. </tr>
  220. <tr>
  221. <div class="email"><b>Ciudad del Este - Paraguay</b></div>
  222. </tr>
  223. <tr>
  224. <div class="ciudad"><b>novotempo@gmail.com.py</b></div>
  225. </tr>
  226. <tr>
  227. <div class="tel"><b>(0994)827 661</b></div>
  228. </tr>
  229. <tr>
  230. <div class="rucdata1"><b>R.U.C. N° </b></div>
  231. </tr>
  232. </div>
  233. </div>
  234. <div class="divisoria"> </div>
  235. <div style="border:0.3px solid #000;"></div>
  236. <div class="divisoria"> </div>
  237. <div class="linea3">
  238. <div class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_invoice" t-field-options='{"format": "dd MMMM yyyy"}'/></div>
  239. </div>
  240. <div class="linea2">
  241. <div class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></div>
  242. <div class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></div>
  243. </div>
  244. <div class="linea3">
  245. <div class="direccion_data">
  246. <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/> <span t-field="o.partner_id.street2"/></t>
  247. <t t-f="not o.partner_id.street"> </t>
  248. </div>
  249. </div>
  250. <div class="linea4">
  251. <div class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></div>
  252. </div>
  253. <table class="table table-condensed table-bordered">
  254. <thead>
  255. <tr>
  256. <th class="art-col1">Cantidad</th>
  257. <th class="art-col2">Descripción</th>
  258. <th class="art-col3">Prec. Unitario</th>
  259. <th class="art-col4">Sub Total</th>
  260. </tr>
  261. </thead>
  262. <tbody class="sale_tbody">
  263. <tr t-foreach="o.invoice_line" t-as="l">
  264. <td class="art-col1">
  265. <span t-esc="'%.0f'%l.quantity"/>
  266. </td>
  267. <td class="art-col2">
  268. <span t-field="l.name"/>
  269. </td>
  270. <td class="art-col3">
  271. <t t-if="o.currency_id.id == 166">
  272. <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
  273. </t>
  274. <t t-if="o.currency_id.id != 166">
  275. <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
  276. </t>
  277. </td>
  278. <td class="art-col4">
  279. <t t-if="o.currency_id.id == 166">
  280. <span t-esc="'{0:,.0f}'.format(l.price_unit*l.quantity)"/>
  281. </t>
  282. <t t-if="o.currency_id.id != 166">
  283. <span t-esc="'{0:,.2f}'.format(l.price_unit*l.quantity)"/>
  284. </t>
  285. </td>
  286. </tr>
  287. </tbody>
  288. </table>
  289. <div class="row">
  290. <div class="col-xs-4 pull-right">
  291. <table class="table table-condensed">
  292. <tr class="border-black">
  293. <td><strong>Total s/ IVA</strong></td>
  294. <td class="text-right">
  295. <t t-if="o.currency_id.id == 166">
  296. <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
  297. </t>
  298. <t t-if="o.currency_id.id != 166">
  299. <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
  300. </t>
  301. </td>
  302. </tr>
  303. <tr>
  304. <td>IVA</td>
  305. <td class="text-right">
  306. <t t-if="o.currency_id.id == 166">
  307. <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
  308. </t>
  309. <t t-if="o.currency_id.id != 166">
  310. <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
  311. </t>
  312. </td>
  313. </tr>
  314. <tr class="border-black">
  315. <td><strong>Total</strong></td>
  316. <td class="text-right">
  317. <t t-if="o.currency_id.id == 166">
  318. <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
  319. </t>
  320. <t t-if="o.currency_id.id != 166">
  321. <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
  322. </t>
  323. </td>
  324. </tr>
  325. </table>
  326. </div>
  327. </div>
  328. </div>
  329. <!-- <div class="logo1"> </div> -->
  330. </t>
  331. </div>
  332. <!-- </t> -->
  333. </t>
  334. </t>
  335. </template>
  336. </data>
  337. </openerp>