You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

110 lines
4.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Template for creating payslip details-->
<template id="portal_layout_payslips"
inherit_id="portal.portal_breadcrumbs"
priority="60">
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside">
<li t-if="page_name=='payslip_details'" class="col-lg-2"
t-attf-class="breadcrumb-item #{'active'}">
<a t-attf-href="/my/payslip">
<span>Payslips</span>
</a>
</li>
<li t-if="page_name=='payslip_details'" class="col-lg-2"
t-attf-class="breadcrumb-item #{'active'}">
<em t-out="payslip.number"/>
</li>
</xpath>
</template>
<template id="payslip_portal_content" name="Payslip Portal Content">
<t t-call="portal.portal_layout">
<t t-set="breadcrumbs_searchbar" t-value="True"/>
<t t-call="portal.portal_searchbar">
<t t-set="title">Payslips</t>
</t>
<t t-call="portal.portal_table">
<thead>
<tr>
<th class="text-start align-middle">Salary
Computation
</th>
</tr>
</thead>
<thead>
<tr class="active">
<th class="text-center">Name</th>
<th class="text-center">Code</th>
<th class="text-center">Category</th>
<th class="text-center">Quantity</th>
<th class="text-center">Rate(%)</th>
<th class="text-center">Rule</th>
<th class="text-center">Amount</th>
<th class="text-center">Total</th>
</tr>
</thead>
<t t-foreach="payslip_details" t-as="attendance">
<tr>
<td class="text-center">
<span t-field="attendance.name"/>
</td>
<td class="text-center">
<span t-field="attendance.code"/>
</td>
<td class="text-center">
<span t-field="attendance.category_id"/>
</td>
<td class="text-center">
<span t-field="attendance.quantity"/>
</td>
<td class="text-center">
<span t-field="attendance.rate"/>
</td>
<td class="text-center">
<span t-field="attendance.salary_rule_id"/>
</td>
<td class="text-center">
<span t-field="attendance.amount"/>
</td>
<td class="text-center">
<span t-field="attendance.total"/>
</td>
</tr>
</t>
</t>
<t t-call="portal.portal_table">
<thead>
<tr>
<th class="text-start align-middle">Details By Salary
Rule Category
</th>
</tr>
</thead>
<thead>
<tr class="active">
<th class="text-center">Name</th>
<th class="text-center">Code</th>
<th class="text-center">Category</th>
<th class="text-center">Total</th>
</tr>
</thead>
<t t-foreach="payslip_details" t-as="attendance">
<tr>
<td class="text-center">
<span t-field="attendance.name"/>
</td>
<td class="text-center">
<span t-field="attendance.code"/>
</td>
<td class="text-center">
<span t-field="attendance.category_id"/>
</td>
<td class="text-center">
<span t-field="attendance.total"/>
</td>
</tr>
</t>
</t>
</t>
</template>
</odoo>