fix_views_14_extended/agofer_payslip.xml

292 lines
17 KiB
XML

<t t-foreach="docs" t-as="o">
<t t-call="web.basic_layout">
<style type="text/css">
html * { font-size: 11px; }
.header * { font-size: 12px !important; }
</style>
<div class="page">
<div class="header">
<div class="row clearfix">
<div class="col-3 text-center">
<!-- img t-if="o.company_id.logo" t-att-src="'data:image/png;base64,%s' % o.company_id.logo" width="153" height="80"/ -->
<img src="/web/binary/company_logo" width="153" height="80"/>
<div>
<small><span t-field="o.company_id.name"/></small><br />
<small>NIT <span t-field="o.company_id.partner_id.ref_num"/></small>
</div>
</div>
<div class="col-7 float-right">
<h1 class="h4 mb-4">
<span t-if="o.state == 'draft'">Borrador de </span>
<span t-if="o.state != 'draft'">Comprobante de </span>
<span t-field="o.payslip_type_id.name"/>
<small t-if="o.name"> <span t-field="o.name"/></small>
</h1>
<div class="card mb-6">
<div class="card-body" style="padding:6px 15px;">
<h2 t-if="o.payslip_type_id.name != 'Liquidación'" class="h5 float-left">Período: <small><span t-field="o.period_id.name"/></small></h2>
<h2 t-if="o.payslip_type_id.name == 'Liquidación'" class="h5 float-left">Fecha de liquidación: <small><span t-field="o.liquidation_date"/></small></h2>
</div>
</div>
</div>
</div>
</div>
<div class="row mb-3">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title">
<strong t-field="o.employee_id.name"/>
<small class="text-primary">
<span t-field="o.employee_id.partner_id.ref_type_id.name"/> <span t-field="o.employee_id.partner_id.ref_num"/>
</small>
</h3>
</div>
<div class="row">
<div class="col-5">
<div class="list-group">
<p class="list-group-item border-0 pb-0" t-field="o.employee_id.job_id"/>
<p t-if="o.employee_id.work_email" class="list-group-item border-0 pt-0 pb-0">
<span t-field="o.employee_id.work_email"/>
</p>
<t t-if="o.employee_id.bank_account_id">
<p class="list-group-item border-0 pt-0">
<strong t-field="o.employee_id.bank_account_id.bank_name"/>
<t t-if="o.employee_id.bank_account_id.acc_type == 'saving'">Ah.</t>
<t t-if="o.employee_id.bank_account_id.acc_type == 'current'">Cte.</t>
<span t-field="o.employee_id.bank_account_id.acc_number"/>
</p>
</t>
</div>
</div>
<div class="col-5">
<div class="list-group">
<h4 class="h5 list-group-item border-0 pb-0">
<strong>Contrato</strong> <span t-field="o.contract_id.name"/>
</h4>
<p class="list-group-item border-0 pt-0 pb-0">
<span t-field="o.contract_id.structure_type_id.name"/>
</p>
<p class="list-group-item border-0 pt-0">
<strong>Salario: </strong>
<span t-field="o.contract_id.wage" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.company_id.currency_id&quot;}"/>
</p>
</div>
</div>
<div class="col-2 float-right text-right">
<img t-if="o.employee_id.image_128" t-att-src="'data:image/png;base64,%s' % o.employee_id.image_128.decode('utf-8')" class="thumbnail m-1" height="100" style="margin-bottom:0;"/>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<t t-if="o.earnings_ids">
<div class="card mb-3" id="devengos">
<div class="card-header font-weight-bold">
Devengos
</div>
<ul class="list-group list-group-flush">
<t t-set="total_devs" t-value="0" />
<t t-foreach="o.earnings_ids" t-as="earnings">
<t t-set="total_devs" t-value="total_devs + earnings.total"/>
<li class="list-group-item m-0 pt-1 pb-1">
<div class="row">
<div class="col-8">
<span t-field="earnings.name"/>
<small>
<t t-if="earnings.overtime_id">
[<span t-field="earnings.overtime_id.qty"/> horas]
</t>
<t t-elif="earnings.qty != 1.0 or earnings.leave_id">
[<span t-field="earnings.qty"/> días]
</t>
</small>
</div>
<div class="col-4 float-right text-right" t-field="earnings.total" t-options="{'widget': 'float', 'precision': 0}"/>
</div>
</li>
</t>
<li class="list-group-item border-top border-dark m-0 pt-1 pb-1">
<div class="row">
<div class="col-8"><strong>Total</strong></div>
<div class="col-4 float-right text-right">
<strong t-esc="total_devs" t-options="{'widget': 'float', 'precision': 0}"/>
</div>
</div>
</li>
</ul>
</div>
</t>
<div class="card" id="entidades">
<div class="card-header font-weight-bold">
Seguridad Social y Parafiscales
</div>
<ul class="list-group">
<li class="list-group-item border-0 pb-1" t-if="o.contract_id.afp_pension_id.id == o.contract_id.afp_severance_id.id">
<strong>Fondo de pensiones y cesantías:</strong>
<span t-field="o.contract_id.afp_pension_id.name"/>
</li>
<li class="list-group-item border-0 pt-1 pb-1" t-if="o.contract_id.afp_pension_id.id != o.contract_id.afp_severance_id.id">
<strong>Fondo de pensiones:</strong>
<span t-field="o.contract_id.afp_pension_id.name"/>
</li>
<li class="list-group-item border-0 pt-1 pb-1" t-if="o.contract_id.afp_pension_id.id != o.contract_id.afp_severance_id.id">
<strong>Fondo de cesantías:</strong>
<span t-field="o.contract_id.afp_severance_id.name"/>
</li>
<li class="list-group-item border-0 pt-1 pb-1">
<strong>Entidad promotora de salud:</strong>
<span t-field="o.contract_id.eps_id.name"/>
</li>
<li class="list-group-item border-0 pt-1 pb-1">
<strong>Caja de compensación:</strong>
<span t-field="o.contract_id.ccf_id.name"/>
</li>
<li class="list-group-item border-0 pt-1">
<strong>Administradora de riesgos laborales:</strong>
<span t-field="o.contract_id.arl_id.name"/>
</li>
</ul>
</div>
</div>
<div class="col-6">
<t t-if="o.deductions_ids">
<div class="card mb-3" id="deducciones">
<div class="card-header font-weight-bold">
Deducciones
</div>
<ul class="list-group list-group-flush">
<t t-set="total_ded" t-value="0" />
<t t-foreach="o.deductions_ids" t-as="deduction">
<t t-set="total_ded" t-value="total_ded + deduction.total"/>
<li class="list-group-item m-0 pt-1 pb-1">
<div class="row">
<div class="col-8" t-field="deduction.name"/>
<div class="col-4 float-right text-right" t-field="deduction.total" t-options="{'widget': 'float', 'precision': 0}"/>
</div>
</li>
</t>
<li class="list-group-item border-top border-dark m-0 pt-1 pb-1">
<div class="row">
<div class="col-8"><strong>Total</strong></div>
<div class="col-4 float-right text-right">
<strong t-esc="total_ded" t-options="{'widget': 'float', 'precision': 0}"/>
</div>
</div>
</li>
</ul>
</div>
</t>
<div class="card border-dark" id="neto">
<div class="card-header font-weight-bold border-top-0 border-left-0 border-right-0">
<div class="row">
<div class="col-8">
<strong>Neto a pagar</strong>
</div>
<div class="col-4 float-right text-right">
<span t-field="o.amount_total" t-options="{'widget': 'monetary', 'display_currency': o.company_id.currency_id}"/>
</div>
</div>
</div>
<div class="card-body border-top-0 border-left-0 border-right-0">
<p>
<t t-set="amount_words" t-value="o.company_id.currency_id.amount_to_text(o.amount_total) + 's'"/>
<!-- span t-field="o.amount_total_words"/> PESOS -->
<span t-esc="amount_words" />
</p>
</div>
</div>
</div>
</div>
<div class="row" t-if="o.payslip_type_id.name == 'Liquidación'">
<div class="col-4">
<div class="card">
<div class="card-body" style="min-height:2.3cm; max-height:2.3cm; padding-top:0.8cm;">
<small t-field="o.write_uid"/><br/>
<small t-field="o.write_date"/>
</div>
<div class="card-footer" style="padding:1pt 8pt;">
<small style="font-size:8pt; font-weight:normal; line-height:8pt;">
Elaborado por<br/>
</small>
</div>
</div>
</div>
<div class="col-4">
<div class="card">
<div class="card-body" style="min-height:2.3cm; max-height:2.3cm; padding-top:0.6cm; overflow:hidden;">
</div>
<div class="card-footer" style="padding:1pt 8pt;">
<small style="font-size:8pt; font-weight:normal; line-height:8pt;">
Firma autorizada Agofer
</small>
</div>
</div>
</div>
<div class="col-4">
<div class="card">
<div class="card-body" style="min-height:2.3cm; max-height:2.3cm; padding-top:1.6cm; overflow:hidden;">
<small style="font-size:8pt; font-weight:normal; line-height:9pt;">
<span t-field="o.employee_id.name"/>,
<span t-field="o.employee_id.partner_id.ref_type_id.name"/>
<span t-field="o.employee_id.partner_id.ref_num"/>
</small>
</div>
<div class="card-footer" style="padding:1pt 8pt;">
<small style="font-size:8pt; font-weight:normal; line-height:8pt;">
Recibí conforme
</small>
</div>
</div>
</div>
</div>
<div class="row" t-if="o.payslip_type_id.name == 'Vacaciones'">
<div class="col-4">
<div class="card">
<div class="card-body" style="min-height:2.3cm; max-height:2.3cm; padding-top:0.8cm;">
<small t-field="o.write_uid"/><br/>
<small t-field="o.write_date"/>
</div>
<div class="card-footer" style="padding:1pt 8pt;">
<small style="font-size:8pt; font-weight:normal; line-height:8pt;">
Elaborado por<br/>
</small>
</div>
</div>
</div>
<div class="col-4">
<div class="card">
<div class="card-body" style="min-height:2.3cm; max-height:2.3cm; padding-top:0.6cm; overflow:hidden;">
</div>
<div class="card-footer" style="padding:1pt 8pt;">
<small style="font-size:8pt; font-weight:normal; line-height:8pt;">
Firma autorizada Agofer
</small>
</div>
</div>
</div>
<div class="col-4">
<div class="card">
<div class="card-body" style="min-height:2.3cm; max-height:2.3cm; padding-top:1.6cm; overflow:hidden;">
<small style="font-size:8pt; font-weight:normal; line-height:9pt;">
<span t-field="o.employee_id.name"/>,
<span t-field="o.employee_id.partner_id.ref_type_id.name"/>
<span t-field="o.employee_id.partner_id.ref_num"/>
</small>
</div>
<div class="card-footer" style="padding:1pt 8pt;">
<small style="font-size:8pt; font-weight:normal; line-height:8pt;">
Recibí conforme
</small>
</div>
</div>
</div>
</div>
</div>
</t>
</t>