123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <report id="presupuesto_compra_dna"
- model="purchase.order"
- string="Presupuesto de compra"
- report_type="qweb-html"
- name="presupuesto_compra_dna.report_presupuestocompra_dna"
- file="presupuesto_compra_dna.report_presupuestocompra_dna"
- />
- <template id="report_presupuestocompra_dna">
- <t t-call="report.html_container">
- <div class="page">
- <style type="text/css">
- body{
- font-size: 3mm;
- font-family: Arial;
- }
- div{
- padding: 0px;
- }
- .pagina{
- width:19.3cm;
- }
- .descripcion{
- width: 11.2cm;
- font-size: 13px;
- padding-top: 0.5cm;
- float: left;
- min-height: 0cm;
- }
- .descripcion1{
- width: 11.2cm;
- font-size: 17px;
- padding-top: 0.2cm;
- float: left;
- min-height: 0cm;
- }
- .descripcion2{
- width: 13cm;
- font-size: 10px;
- float: left;
- min-height: 0cm;
- }
- .descripcion3{
- width: 15cm;
- font-size: 10px;
- float: left;
- min-height: 0cm;
- }
- .descripcion4{
- width: 15cm;
- font-size: 10px;
- float: left;
- min-height: 0cm;
- }
- .email{
- width: 13cm;
- font-size: 10px;
- float: left;
- min-height: 0cm;
- }
- .ciudad{
- width: 13cm;
- float: left;
- font-size: 10px;
- min-height: 0cm;
- }
- .tel{
- width: 13cm;
- float: left;
- font-size: 10px;
- min-height: 0cm;
- }
- .rucdata{
- width: 13cm;
- float: left;
- font-size: 10px;
- min-height: 0cm;
- }
- .table-condensed>tbody>tr>td {
- padding: 1px !important;
- }
- .divisoria{
- height: 0.5cm;
- clear: both;
- }
- .titulo{
- width: 19.2cm;
- text-align: center;
- width: 100%;
- min-height: 0.9cm;
- }
- .fecha_emision_data{
- width: 12.5cm;
- float: left;
- min-height: 0.5cm;
- }
- .vendor{
- width: 6.7cm;
- float: left;
- min-height: 0.5cm;
- }
- .razon_data{
- width: 12.5cm;
- float: left;
- min-height: 0.4cm;
- }
- .ruc_data{
- width: 6.7cm;
- float: left;
- min-height: 0.4cm;
- }
- .direccion_data{
- width: 19.2cm;
- float: left;
- min-height: 0.4cm;
- }
- .telefono_data{
- width: 19.2cm;
- float: left;
- min-height: 0.4cm;
- }
- .note{
- width: 19.2cm;
- float: left;
- min-height: 0.4cm;
- }
- .cab-articulos{
- height: 0.4cm;
- clear: both;
- }
- .articulos{
- height: 4.5cm;
- }
- .art-col1{
- width:2.3cm;
- text-align: center;
- }
- .art-col3{
- padding-left: 3cm;
- width:1cm;
- text-align: center;
- }
- .art-col4{
- padding-left: 0.3cm;
- width:9cm;
- }
- .art-col5{
- width:3.2cm;
- text-align: right;
- }
- .art-col6{
- width:3.6cm;
- text-align: right;
- }
- .spad{
- width: 8.5cm;
- float: left;
- padding-top: 0.09cm;
- padding-bottom: 0.12cm;
- min-height: 0.4cm;
- }
- .subtotal_mat{
- width: 4.3cm;
- float: left;
- text-align: right;
- padding-top: 0.09cm;
- padding-left: 1cm;
- padding-bottom: 0.12cm;
- min-height: 0.4cm;
- }
- .subtotal_mo{
- width: 3.6cm;
- float: left;
- text-align: right;
- padding-top: 0.09cm;
- padding-bottom: 0.12cm;
- min-height: 0.4cm;
- }
- .logo1{
- height: 2cm;
- width: 100%;
- top: 0px;
- }
- .foto_personal {
- position: absolute;
- top: 1.5cm;
- left:0.25cm;
- }
- </style>
- <t t-foreach="docs" t-as="o">
- <div class="pagina">
- <div class="divisoria"> </div>
- <div style="border:0.3px solid #000;"></div>
- <div class="divisoria"> </div>
- <div class="divisoria"> </div>
- <div class="row">
- <div class="col-xs-4">
- <center>
- <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: 80px;"/>
- </center>
- </div>
- <div class="col-xs-8">
- <tr>
- <div class="descripcion">
- </div>
- </tr>
- <tr>
- <div class="descripcion1"><b><i>DNA S.R.L</i></b></div>
- </tr>
- <tr>
- <div class="descripcion3"><b>Equipamientos Dentales</b></div>
- </tr>
- <tr>
- <div class="descripcion4"><b>Panchito Lopez 943 c/ Amambay</b></div>
- </tr>
- <tr>
- <div class="email"><b>Lambaré - Paraguay</b></div>
- </tr>
- <tr>
- <div class="ciudad"><b>crmacentral@gmail.com</b></div>
- </tr>
- <tr>
- <div class="tel"><b>(0981) 650 152</b></div>
- </tr>
- <tr>
- <div class="rucdata"><b>R.U.C. N° 80085605/8</b></div>
- </tr>
- </div>
- </div>
- <hr width="100%" style="border: 2px dashed #C0C0C0" color="#FFFFFF" size="6"></hr>
- <div class="divisoria"> </div>
- <table>
- <tr style="border-bottom:1px solid black">
- <td colspan="100%"></td>
- </tr>
- </table>
- <div class="titulo" >
- <h3><strong>NOTA DE PRESUPUESTO DE COMPRA N°: <span t-field="o.name"/></strong></h3>
- </div>
- <table class="table table-condensed table-bordered">
- <tr>
- <td class="fecha_emision_data"><b>Fecha: </b><span t-field="o.date_order" t-field-options='{"format": "dd MMMM yyyy"}'/></td>
- </tr>
- <tr>
- <td class="razon_data"><b>Cliente: </b><span t-field="o.partner_id.name"/></td>
- <td class="ruc_data"><b>R.U.C N°: </b><span t-field="o.partner_id.ruc"/></td>
- </tr>
- <tr>
- <td class="direccion_data">
- <t t-f="o.partner_id.street"><b>Direccion: </b><span t-field="o.partner_id.street"/></t>
- <t t-f="not o.partner_id.street"> </t>
- </td>
- </tr>
- <tr>
- <td class="telefono_data"><b>Telefono: </b><span t-field="o.partner_id.phone"/></td>
- </tr>
- </table>
- <table class="table table-condensed table-bordered">
- <thead>
- <tr>
- <th class="text-center">Código</th>
- <th class="text-center">Descripción</th>
- <th class="text-center">Cantidad</th>
- <th class="text-center">Prec. Unitario</th>
- <th class="text-center">Subtotal</th>
- </tr>
- </thead>
- <tbody class="sale_tbody">
- <t t-set="valor_mat" t-value="0"/>
- <t t-set="valor_mo" t-value="0"/>
- <tr t-foreach="o.order_line" t-as="l">
- <td class="art-col1">
- <span t-field="l.product_id.default_code"/>
- </td>
- <td>
- <span t-field="l.name"/>
- </td>
- <td class="text-center">
- <span t-esc="'%.0f'%l.product_qty"/>
- </td>
- <td class="text-right">
- <t t-if="o.currency_id.id == 166">
- <span t-esc="'{0:,.0f}'.format(l.price_unit)"/>
- </t>
- <t t-if="o.currency_id.id != 166">
- <span t-esc="'{0:,.2f}'.format(l.price_unit)"/>
- </t>
- </td>
- <td class="text-right">
- <span t-if="o.currency_id.id == 166">
- <span t-esc= "'{0:,.0f}'.format(int(l.product_qty * l.price_unit)).replace(',', '.')">
- <span t-value="valor_mat+(l.product_qty * l.price_unit)"/></span>
- <t t-set="valor_mat" t-value="valor_mat+(l.product_qty * l.price_unit)"/>
- </span>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="row">
- <div class="col-xs-12 pull-right">
- <table class="table table-condensed">
- <td class="art-col1"><b>Sub Totales: </b></td>
- <td class="art-col3"></td>
- <td class="art-col4"></td>
- <td class="art-col5">
- <span t-esc="'{0:,.0f}'.format(int(valor_mat)).replace(',', '.')"></span>
- </td>
- </table>
- </div>
- </div>
- <div class="row">
- <div class="col-xs-4 pull-right">
- <table class="table table-condensed">
- <tr class="border-black">
- <td><strong>Total s/ IVA</strong></td>
- <td class="text-right">
- <t t-if="o.currency_id.id == 166">
- <span t-esc="'{0:,.0f}'.format(o.amount_untaxed)"/>
- </t>
- <t t-if="o.currency_id.id != 166">
- <span t-esc="'{0:,.2f}'.format(o.amount_untaxed)"/>
- </t>
- </td>
- </tr>
- <tr>
- <td>IVA</td>
- <td class="text-right">
- <t t-if="o.currency_id.id == 166">
- <span t-esc="'{0:,.0f}'.format(o.amount_tax)"/>
- </t>
- <t t-if="o.currency_id.id != 166">
- <span t-esc="'{0:,.2f}'.format(o.amount_tax)"/>
- </t>
- </td>
- </tr>
- <tr class="border-black">
- <td><strong>Total</strong></td>
- <td class="text-right">
- <t t-if="o.currency_id.id == 166">
- <span t-esc="'{0:,.0f}'.format(o.amount_total)"/>
- </t>
- <t t-if="o.currency_id.id != 166">
- <span t-esc="'{0:,.2f}'.format(o.amount_total)"/>
- </t>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
- <div class="logo1"> </div>
- </t>
- </div>
- </t>
- </template>
- </data>
- </openerp>
|