Created
September 19, 2017 08:48
-
-
Save butirpadi/ba4e107dee91738898de2594c1db6963 to your computer and use it in GitHub Desktop.
hm_report_payroll_driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<odoo> | |
<data> | |
<report | |
id="payroll_driver_report" | |
model="hm_payroll_driver" | |
string="Slip Gaji" | |
report_type="qweb-pdf" | |
name="hasilmancing.pay_slip_report_template" | |
paperformat="paperformat_slip_gaji" | |
/> | |
<template id="pay_slip_report_template"> | |
<div class="page" style="font-family:Roman;" > | |
<style> | |
table.no-border tr, table.no-border tr td{ | |
border : none; | |
} | |
</style> | |
<t t-foreach="docs" t-as="o"> | |
<div class="row"> | |
<div class="col-xs-3" > | |
<img class="img img-responsive" src="/hasilmancing/static/description/logo_odoo_bg_putih.png" style="height:40px;" /> | |
</div> | |
<div class="col-xs-9 text-right" > | |
<h4 style="margin-top:0;margin-bottom:0;" ><strong>SLIP GAJI</strong></h4> | |
<i><t t-esc="o.name" /></i> | |
</div> | |
<div class="col-xs-12" > | |
<hr style="border-top: 1px solid #8c8b8b;" /> | |
</div> | |
<div class="col-xs-6 text-left" > | |
<p style="margin-bottom:0;"><b>Tanggal: </b><span t-field="o.tanggal" t-options ='{"format": "dd/MM/yyyy"}'></span></p> | |
<p style="margin-bottom:0;"><b>Periode: </b><span t-field="o.periode_awal" t-options ='{"format": "dd/MM/yyyy"}'></span> - <span t-field="o.periode_akhir" t-options ='{"format": "dd/MM/yyyy"}'></span></p> | |
</div> | |
<div class="col-xs-6 text-right" > | |
<p style="margin-bottom:0;" ><strong>Driver: </strong><t t-esc="o.karyawan_id.name" /></p> | |
<p><strong>Armada: </strong><span t-field="o.karyawan_id.armada_id.name" /></p> | |
<!-- Barcode --> | |
</div> | |
<div class="clearfix" style="margin-bottom:25px;"></div> | |
<div class="col-xs-8" > | |
<table class="table table-condensed" > | |
<thead> | |
<tr> | |
<th class="" >Material</th> | |
<th class="" >Tujuan</th> | |
<th class="text-right" >Vol</th> | |
<th class="text-right" >Nett</th> | |
<th class="text-right" >Rit</th> | |
<th class="text-right" >Harga</th> | |
<th class="text-right" >Jumlah</th> | |
</tr> | |
</thead> | |
<tbody> | |
<t t-foreach="o.material_rel_ids" t-as="mat"> | |
<tr> | |
<td> | |
<span t-field="mat.material_id" /> | |
</td> | |
<td> | |
<span t-field="mat.pekerjaan_id" /> | |
</td> | |
<td class="text-right" > | |
<span t-esc="'%.2f'%(mat.vol)" /> | |
</td> | |
<td class="text-right" > | |
<span t-esc="'%.2f'%(mat.netto)" /> | |
</td> | |
<td class="text-right" > | |
<span t-esc="'%.2f'%(mat.rit)" /> | |
</td> | |
<td class="text-right" > | |
<span t-esc="'{0:,.2f}'.format(mat.harga)" /> | |
</td> | |
<td class="text-right" > | |
<span t-esc="'{0:,.2f}'.format(mat.jumlah)" /> | |
</td> | |
</tr> | |
</t> | |
<tr class="border-black" > | |
<td colspan="6"> | |
Sisa Bayaran Kemarin | |
</td> | |
<td class="text-right"> | |
<span t-esc="'{0:,.2f}'.format(o.sisa_bayaran_kemarin)" /> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="6"> | |
DP | |
</td> | |
<td class="text-right"> | |
<span t-esc="'{0:,.2f}'.format(o.downpayment)" /> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div class="col-xs-4" > | |
<table class="table table-condensed" > | |
<thead> | |
<tr> | |
<th>Potongan</th> | |
<th class="text-right">Jumlah</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td class="" style="" > | |
Potongan Bahan | |
</td> | |
<td class="text-right"> | |
<span t-esc="'{0:,.2f}'.format(o.potongan_bahan)" /> | |
</td> | |
</tr> | |
<tr> | |
<td class="" style="" > | |
Potongan Bon | |
</td> | |
<td class="text-right"> | |
<span t-esc="'{0:,.2f}'.format(o.potongan_bon)" /> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div class="col-xs-8" > | |
<table class="table table-condensed no-border" style="margin-bottom:0;" > | |
<tbody> | |
<tr> | |
<td> | |
<i><label>Total Pendapatan</label></i> | |
</td> | |
<td class="text-right" > | |
<i><span t-esc="'{0:,.2f}'.format(o.total + o.sisa_bayaran_kemarin + o.downpayment)" /></i> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div class="col-xs-4 " > | |
<table class="table table-condensed no-border" style="margin-bottom:0;"> | |
<tbody> | |
<tr> | |
<td> | |
<i><label>Total Potongan</label></i> | |
</td> | |
<td class="text-right" > | |
<i><span t-esc="'{0:,.2f}'.format(o.potongan_bahan + o.potongan_bon )" /></i> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div class="col-xs-12" > | |
<hr style="border-top: 1px solid black;margin-bottom:0;margin-top:0;" /> | |
</div> | |
<div class="col-xs-8" > | |
<i>Catatan: | |
<span t-esc="_get_catatan_slip_gaji()" /> | |
</i> | |
</div> | |
<div class="col-xs-4 " > | |
<table class="table table-condensed no-border"> | |
<tbody> | |
<tr class="" > | |
<td class="text-left" > | |
<label>NETT</label> | |
</td> | |
<td class="text-right" > | |
<span t-esc="'{0:,.2f}'.format(o.nett)" /> | |
</td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<div class="clearfix" style="margin-bottom:25px;"></div> | |
<div class="col-xs-10" > | |
</div> | |
<div class="col-xs-2 text-center" > | |
<span>Admin</span> | |
<div class="clearfix" style="margin-bottom:50px;"></div> | |
<label t-field="user.name" /> | |
</div> | |
</div> | |
</t> | |
</div> | |
</template> | |
</data> | |
</odoo> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment