payslip : GWM

This commit is contained in:
bitbucket 2024-08-13 09:05:45 +05:30
parent 939492f202
commit 04cd715c94
4 changed files with 37 additions and 97 deletions

View File

@ -1067,25 +1067,25 @@ class Payslip extends BaseController
$filename = " "; $filename = " ";
$html = ""; $html = "";
$All = $this->request->getPost('All'); $All = $this->request->getPost('All');
if ($All == '') { // if ($All == '') {
$this->validator->setRules([ // $this->validator->setRules([
'Employee' => [ // 'Employee' => [
'label' => 'Employee', // 'label' => 'Employee',
'rules' => 'trim|callback_Employee_validate', // 'rules' => 'trim|callback_Employee_validate',
] // ]
]); // ]);
} // }
$this->validator->setRules([ // $this->validator->setRules([
'PayOn' => [ // 'PayOn' => [
'label' => 'PayOn', // 'label' => 'PayOn',
'rules' => 'trim|callback_PayOn_validate', // 'rules' => 'trim|callback_PayOn_validate',
] // ]
]); // ]);
if ($this->validator->run() == FALSE) { // if ($this->validator->run() == FALSE) {
$this->viewGenerator(); // $this->viewGenerator();
} else { // } else {
$Payon = $this->request->getPost('PayOn'); $Payon = $this->request->getPost('PayOn');
$m = date("M", mktime(0, 0, 0, (int)$Payon, 10)); $m = date("M", mktime(0, 0, 0, (int)$Payon, 10));
@ -1193,7 +1193,7 @@ class Payslip extends BaseController
$mpdf->SetTitle('Resico:Payslip'); $mpdf->SetTitle('Resico:Payslip');
$mpdf->Output("Payslip-" . $filename . ".pdf", 'D'); $mpdf->Output("Payslip-" . $filename . ".pdf", 'D');
} // }
} }
function updatePayslip() function updatePayslip()

View File

@ -341,7 +341,7 @@ $currentday = date('d');
<tr id="<?php echo $row;?>"> <tr id="<?php echo $row;?>">
<td width="45" height="45" class="celda_normal" ><?php echo $index;?></td> <td width="45" height="45" class="celda_normal" ><?php echo $index;?></td>
<td width="79" height="45" class="celda_normal"><?php echo $a->EmpID;?></td> <td width="79" height="45" class="celda_normal"><?php echo $a->EmpID;?></td>
<td width="80" height="45" class="celda_normal"><?php echo $a->FirstName.'-'.$a->LastName;?></td> <td width="80" height="45" class="celda_normal"><?php echo $a->FirstName;?></td>
<?php for ($col =1; $col <= $monthdays;$col++){ <?php for ($col =1; $col <= $monthdays;$col++){
$flag =0; $flag =0;

View File

@ -779,23 +779,20 @@
<?php if($DEPCode == ADMIN || $DEPCode == HR) { ?> <?php if($DEPCode == ADMIN || $DEPCode == HR) { ?>
<p class="menu-heading"><i class="fa fa-angle-right" aria-hidden="true"></i> HR</p> <p class="menu-heading"><i class="fa fa-angle-right" aria-hidden="true"></i> HR</p>
<?php } ?> <?php } ?>
<li class="treeview">
<a href="#"> <li >
<i class="fa fa-user-circle"></i> <a href="<?php echo base_url(); ?>employeeListing" >
<span>Employee</span>
<span class="pull-right-container">
<i class="fa fa-angle-down pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if ($DEPCode == ADMIN || $DEPCode == HR) { ?>
<li><a href="<?php echo base_url(); ?>employeeListing" >
<i class="fa fa-user-circle"></i> <i class="fa fa-user-circle"></i>
<span class="nav-label">Employee Details</span> <span class="nav-label">Employee Details</span>
</a></li> </a>
<?php } ?>
</ul>
</li> </li>
<li>
<a href="<?php echo base_url(); ?>attendance">
<i class="fa fa-clock-o "></i>
<span>Attendance</span>
</a>
</li>
@ -878,11 +875,11 @@
</span> </span>
</a> </a>
<ul class="treeview-menu"> <ul class="treeview-menu">
<!-- <li class="treeview"> <li class="treeview">
<a href="<?php echo base_url(); ?>Stock"> <a href="<?php echo base_url(); ?>Stock">
<i class="fa fa-dashboard"></i> <span>Stock </span> <i class="fa fa-dashboard"></i> <span>Stock </span>
</a> </a>
</li> --> </li>
<li> <li>
<a href="<?php echo base_url(); ?>FinalProduct"> <a href="<?php echo base_url(); ?>FinalProduct">
<i class="fa fa-dashboard"></i> <span>Finished Product Batch Card</span> <i class="fa fa-dashboard"></i> <span>Finished Product Batch Card</span>

View File

@ -222,66 +222,8 @@ function DeleteRow(rowid) {
} }
</script> </script>
<!--
<script>
$(function() {
$(document).ready(function() {
$('#Requisition').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"columnDefs": [{
"targets": 0,
"type": "date-eu"
}],
"aaSorting": [
[1, "desc"]
],
"info": true,
"autoWidth": true,
"pageLength": 10,
"lengthMenu": [10, 25, 50,
100
]
});
});
});
$(function() {
$("#fromDate").datepicker({
dateFormat: 'dd-mm-yy',
onSelect: function(selectedDate) {
var minDate = $(this).datepicker("getDate");
$("#toDate").datepicker("option", "minDate", minDate);
}
});
$("#toDate").datepicker({
dateFormat: 'dd-mm-yy',
onSelect: function(selectedDate) {
var maxDate = $(this).datepicker("getDate");
$("#fromDate").datepicker("option", "maxDate", maxDate);
}
});
$("#resetButton").click(function() {
$("#fromDate").datepicker("setDate", null);
$("#toDate").datepicker("setDate", null);
});
});
</script> -->
@ -303,7 +245,8 @@ $(document).ready(function() {
"info": true, "info": true,
"autoWidth": true, "autoWidth": true,
"pageLength": 10, "pageLength": 10,
"lengthMenu": [10, 25, 50, 100] "lengthMenu": [10, 25, 50, 100],
}); });
// Initialize the datepickers // Initialize the datepickers