Merge branch 'new_theme' of bitbucket.org:venbainformationtechnology/ria into new_theme

This commit is contained in:
aadhavan valli 2024-09-18 16:19:09 +05:30
commit e6817e4df6
7 changed files with 93 additions and 26 deletions

View File

@ -69,7 +69,9 @@ class Payslip extends BaseController
$EmpId = $this->request->getPost('employee'); $EmpId = $this->request->getPost('employee');
$res = $this->payroll_model->getMonthlyPayDetails($EmpId, $PayOn); $res = $this->payroll_model->getMonthlyPayDetails($EmpId, $PayOn);
$result = $res[0]; $result = $res[0];
$loan = []; $loan = [];
$loanHistory = []; $loanHistory = [];
$loan_id = 0; $loan_id = 0;
@ -127,7 +129,6 @@ class Payslip extends BaseController
'UANNO' => $result->PFNO, 'UANNO' => $result->PFNO,
]; ];
$insert = $this->payroll_model->insertPayroll($data); $insert = $this->payroll_model->insertPayroll($data);
if($insert){ if($insert){
if(count($loan)){ if(count($loan)){
@ -939,18 +940,21 @@ class Payslip extends BaseController
$Festivalbonus_first = explode(".", $Festival_Bonus); $Festivalbonus_first = explode(".", $Festival_Bonus);
if (!is_numeric($Festival_Bonus) || (strlen((string)$Festival_Bonus)) > 8 || (strlen((string)$Festivalbonus_first[0])) > 5) { if (!is_numeric($Festival_Bonus) || (strlen((string)$Festival_Bonus)) > 8 || (strlen((string)$Festivalbonus_first[0])) > 5) {
// echo $EmpID . "-Festival bonus Invalid Data!";
$ErrorFlag++; $ErrorFlag++;
} }
$Other_Deductions_first = explode(".", $Other_Deductions); $Other_Deductions_first = explode(".", $Other_Deductions);
if (!is_numeric($Other_Deductions) || (strlen((string)$Other_Deductions)) > 8 || (strlen((string)$Other_Deductions_first[0])) > 5) { if (!is_numeric($Other_Deductions) || (strlen((string)$Other_Deductions)) > 8 || (strlen((string)$Other_Deductions_first[0])) > 5) {
//echo $EmpID . "-Loan Recoverd Invalid Data!"; // echo $EmpID . "-Other Deductions Invalid Data!";
$ErrorFlag++; $ErrorFlag++;
} }
$Estimate_first = explode(".", $Estimate); $Estimate_first = explode(".", $Estimate);
if (!is_numeric($Estimate) || (strlen((string)$Estimate)) > 8 || (strlen((string)$Estimate_first[0])) > 5) {
//echo $EmpID . "-Loan Recoverd Invalid Data!"; if (!is_numeric($Estimate) || (strlen((string)$Estimate)) > 8 || (strlen((string)$Estimate_first[0])) > 6) {
// echo $Estimate_first[0];
// echo $EmpID . "-Estimate Invalid Data!";
$ErrorFlag++; $ErrorFlag++;
} }

View File

@ -494,7 +494,7 @@ class Payroll_model extends Model
function getMonthlyPayDetails($EmpId, $PayOn) function getMonthlyPayDetails($EmpId, $PayOn)
{ {
$builder = $this->db->table('t_monthly_pay_inputs MonthlyPay ') $builder = $this->db->table('t_monthly_pay_inputs MonthlyPay ')
->select('MonthlyPay.*, E.BankAccountNo , E.PFNO , E.ESI as ESINO , L.*') ->select('MonthlyPay.*, E.BankAccountNo , E.PFNO , E.ESI as ESINO , L.Loan_ID, L.Loan_Amount, L.Loan_Issued_Date, L.Monthly_Due, L.Due_Start_Date, L.No_of_Dues, L.Paid_Due, L.Remaining_Due, L.Paid_Amount')
->join('t_employee_details as E', 'MonthlyPay.EmpID = E.EmpID', 'left') ->join('t_employee_details as E', 'MonthlyPay.EmpID = E.EmpID', 'left')
->join('t_loan_master as L', 'MonthlyPay.EmpID = L.EmpID and L.is_Active = 1', 'left') ->join('t_loan_master as L', 'MonthlyPay.EmpID = L.EmpID and L.is_Active = 1', 'left')
->where('MonthlyPay.EmpID', $EmpId) ->where('MonthlyPay.EmpID', $EmpId)

View File

@ -519,7 +519,8 @@ $currentday = date('d');
var currentdate = '01-' + currentmonth + '-' + currentyear; var currentdate = '01-' + currentmonth + '-' + currentyear;
var totaldata = 0; var totaldata = 0;
// $('.content').loader('show');
$('#loader').show();
$.ajax({ $.ajax({
data: { data: {
param1: alldata, param1: alldata,
@ -532,7 +533,8 @@ $currentday = date('d');
success: function(data) { success: function(data) {
if (data) { if (data) {
// $('.content').loader('hide');
$('#loader').hide();
alert(data); alert(data);
//totaldata = totaldata + parseFloat(data); //totaldata = totaldata + parseFloat(data);
//console.log(data); //console.log(data);

View File

@ -140,6 +140,9 @@
// todayHighlight: true, // todayHighlight: true,
// clearBtn: true // clearBtn: true
// }); // });
</script> </script>
</body> </body>

View File

@ -354,6 +354,61 @@
/* This CSS is for Table Cell Expend*/ /* This CSS is for Table Cell Expend*/
</style> </style>
<!-- loader css code start -->
<div id="loader" style="display:none;"><div class="lds-hourglass"></div></div>
<style>
#loader {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #00000014;
z-index: 9999;
}
.lds-hourglass {
display: inline-block;
position: relative;
width: 80px;
height: 80px;
}
.lds-hourglass:after {
content: " ";
display: block;
border-radius: 50%;
width: 0;
height: 0;
margin: 6px;
box-sizing: border-box;
border: 26px solid #333;
border-color: #d86935 transparent #616bac transparent;
animation: lds-hourglass 1.2s infinite;
}
@keyframes lds-hourglass {
0% {
transform: rotate(0);
animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
50% {
transform: rotate(900deg);
animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}
100% {
transform: rotate(1800deg);
}
}
</style>
<!-- loader css code end -->
</head> </head>
<body class="loading" data-layout-mode="horizontal" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": true}'> <body class="loading" data-layout-mode="horizontal" data-layout='{"mode": "light", "width": "fluid", "menuPosition": "fixed", "topbar": {"color": "dark"}, "showRightSidebarOnPageLoad": true}'>
@ -367,11 +422,11 @@
<ul class="list-unstyled topnav-menu float-right mb-0"> <ul class="list-unstyled topnav-menu float-right mb-0">
<!-- <li class="dropdown d-none d-lg-inline-block"> <li class="dropdown d-none d-lg-inline-block">
<a class="nav-link dropdown-toggle arrow-none waves-effect waves-light" data-toggle="fullscreen" href="#"> <a class="nav-link dropdown-toggle arrow-none waves-effect waves-light" data-toggle="fullscreen" href="#">
<i class="fe-maximize noti-icon"></i> <i class="fe-maximize noti-icon"></i>
</a> </a>
</li> --> </li>
<li class="dropdown notification-list topbar-dropdown"> <li class="dropdown notification-list topbar-dropdown">
<a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false"> <a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">

View File

@ -598,7 +598,8 @@
// Convert the filtered array back to a JSON string if needed // Convert the filtered array back to a JSON string if needed
alldata = JSON.stringify(alldata); alldata = JSON.stringify(alldata);
var month = $('#monthyear').val(); var month = $('#monthyear').val();
// $('.content').loader('show');
$('#loader').show();
$.ajax({ $.ajax({
data: { data: {
param1: alldata, param1: alldata,
@ -611,7 +612,8 @@
console.log(data); console.log(data);
if (data) { if (data) {
// $('.content').loader('hide');
$('#loader').hide();
alert(data); alert(data);
//console.log(data); //console.log(data);

View File

@ -16,7 +16,7 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
$('#PayOn').change(function() { $('#PayOn').change(function() {
var id = $('#PayOn').val(); var id = $('#PayOn').val();
if (id != '-1') { if (id != '-1') {
// $('#content').loader('show'); $('#loader').show();
$.ajax({ $.ajax({
data: { data: {
id1: id id1: id
@ -26,7 +26,7 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
success: function(result) { success: function(result) {
if (result) { if (result) {
$("#Employee").empty(); $("#Employee").empty();
// $('#content').loader('hide'); $('#loader').hide();
$("#Employee").append(result); $("#Employee").append(result);
} }
} }
@ -49,7 +49,7 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
$('#Employee').find('option').each(function() { $('#Employee').find('option').each(function() {
c++; c++;
var employee = $(this).val(); var employee = $(this).val();
// $('#content').loader('show'); $('#loader').show();
$.ajax({ $.ajax({
data: { data: {
payon: payon, payon: payon,
@ -68,7 +68,8 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
type: "POST", type: "POST",
url: "<?php echo base_url(); ?>payslip/callsp", url: "<?php echo base_url(); ?>payslip/callsp",
success: function(result) { success: function(result) {
// $('#content').loader('hide'); console.log(result);
$('#loader').hide();
} }
}); });
} }
@ -81,11 +82,11 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
alert(c + '-Employees Salary Added Successfully!'); alert(c + '-Employees Salary Added Successfully!');
$('form#PayslipGenerator').submit(); $('form#PayslipGenerator').submit();
alert("Please wait while Payslip Downloading...!"); alert("Please wait while Payslip Downloading...!");
// $('#content').loader('hide'); $('#loader').hide();
}, time); }, time);
} // else for select all not selected } // else for select all not selected
else { else {
// $('#content').loader('show'); $('#loader').show();
$.ajax({ $.ajax({
data: { data: {
payon: payon, payon: payon,
@ -100,7 +101,7 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
if (result == 1) { if (result == 1) {
$('form#PayslipGenerator').submit(); $('form#PayslipGenerator').submit();
// $('#content').loader('hide'); $('#loader').hide();
alert("Payslip Downloaded Successfully..!"); alert("Payslip Downloaded Successfully..!");
} else { } else {
@ -113,7 +114,7 @@ $monthsoptions = array("01" => "Jan", "02" => "Feb", "03" => "Mar", "04" => "Apr
url: "<?php echo base_url(); ?>payslip/callsp", url: "<?php echo base_url(); ?>payslip/callsp",
success: function(result) { success: function(result) {
$('form#PayslipGenerator').submit(); $('form#PayslipGenerator').submit();
// $('#content').loader('hide'); $('#loader').hide();
alert("Salary Calculated Successfully..!"); alert("Salary Calculated Successfully..!");
} }
}); });