CHANGE_EMP_CURD_CONFLICT_MERAGE
This commit is contained in:
commit
7b798f54e9
@ -386,7 +386,7 @@ class Emergencypurchaseorder extends BaseController
|
||||
function addNewRevenuePurchaseOrder()
|
||||
{
|
||||
|
||||
print_r($this->request->getPost());die;
|
||||
// print_r($this->request->getPost());die;
|
||||
$txtspl = $this->request->getPost('txtSpecial');
|
||||
|
||||
|
||||
|
||||
@ -61,12 +61,84 @@ class Payslip extends BaseController
|
||||
public function callsp()
|
||||
{
|
||||
|
||||
$payon = $this->request->getPost('payon');
|
||||
$employee = $this->request->getPost('employee');
|
||||
$result = $this->payroll_model->model_sp($payon, $employee);
|
||||
// $result = $this->db->last_query();
|
||||
return $result;
|
||||
//$this->db->call_function('model_sp');
|
||||
// $result = $this->payroll_model->model_sp($this->request->getPost('payon'), $this->request->getPost('employee'));
|
||||
// return $result;
|
||||
// die;
|
||||
|
||||
$PayOn = $this->request->getPost('payon');
|
||||
$EmpId = $this->request->getPost('employee');
|
||||
|
||||
$res = $this->payroll_model->getMonthlyPayDetails($EmpId, $PayOn);
|
||||
$result = $res[0];
|
||||
$loan = [];
|
||||
$loanHistory = [];
|
||||
$loan_id = 0;
|
||||
if(is_null($result->Loan_ID)){
|
||||
|
||||
}else{
|
||||
if($result->Loan_Recovered > 0)
|
||||
{
|
||||
$loan_id = $result->Loan_ID;
|
||||
|
||||
$loan = [
|
||||
'Paid_Due' => $result->Paid_Due + 1,
|
||||
'Remaining_Due' => $result->Remaining_Due - 1,
|
||||
'Paid_Amount' => $result->Paid_Amount + $result->Loan_Recovered,
|
||||
];
|
||||
|
||||
$loanHistory = [
|
||||
'Loan_ID' => $loan_id,
|
||||
'Due_Amount' => $result->Loan_Recovered,
|
||||
'Balance_Amount' => $result->Loan_Amount - ($result->Paid_Amount + $result->Loan_Recovered),
|
||||
'Due_Date' => $PayOn,
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
// print_r($data);die;
|
||||
|
||||
$data = [
|
||||
'PayOn' => $result->Month_Year,
|
||||
'EmpID' => $result->EmpID,
|
||||
'TotalCalDays' => $result->TotalCalDays,
|
||||
'NoofDaysWorked' => $result->Days_worked,
|
||||
'LOP' => $result->LOP_Days,
|
||||
'Paid_Leave' => $result->Paid_leave,
|
||||
'ActualSalary' => $result->ActualSalary,
|
||||
'PerDaySalary' => $result->PerDaySalary,
|
||||
'WorkedSalary' => $result->WorkedSalary,
|
||||
'Basic' => $result->Basic,
|
||||
'HRA' => $result->HRA,
|
||||
'OT_Hrs_Worked' => $result->OT_Hrs_Worked,
|
||||
'OTSalary' => $result->OTSalary,
|
||||
'ESI' => $result->ESI,
|
||||
'PF' => $result->PF,
|
||||
'OtherDeductions' => $result->Other_Deductions,
|
||||
'Festival_Bonus' => $result->Festival_Bonus,
|
||||
'TotalSalary' => $result->Estimate,
|
||||
'Advance' => $result->Loan_Recovered,
|
||||
'BalanceAdvance' => 0,
|
||||
'LessAdvance' => 0,
|
||||
'BankAccountNumber' => $result->BankAccountNo,
|
||||
'PFNumber' => $result->PFNO,
|
||||
'ESINumber' => $result->ESINO,
|
||||
'UANNO' => $result->PFNO,
|
||||
];
|
||||
|
||||
|
||||
$insert = $this->payroll_model->insertPayroll($data);
|
||||
if($insert){
|
||||
if(count($loan)){
|
||||
$this->payroll_model->updateLoan($loan_id,$result->EmpID,$loan);
|
||||
}
|
||||
if(count($loanHistory)){
|
||||
$this->payroll_model->insertLoanHistory($loanHistory);
|
||||
}
|
||||
}
|
||||
return $insert;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -615,9 +687,9 @@ class Payslip extends BaseController
|
||||
// die;
|
||||
|
||||
$employeeSalary[] = round($salaryInCurrentday);
|
||||
$esi[] = number_format($esiAmount,2);
|
||||
$pf[] = number_format($pfAmount,2);
|
||||
$ot[] = number_format($totSalayOT,2);
|
||||
$esi[] = number_format($esiAmount,2, '.', '');
|
||||
$pf[] = number_format($pfAmount,2, '.', '');
|
||||
$ot[] = number_format($totSalayOT,2, '.', '');
|
||||
}
|
||||
$data['empSalary'] = $employeeSalary;
|
||||
$data['esi'] = $esi;
|
||||
@ -638,7 +710,7 @@ class Payslip extends BaseController
|
||||
$data['month'] = $this->monthlypay_model->monthlyListing($current);
|
||||
$data['dropdownvalue'] = $current;
|
||||
$data['fresh'] = $this->monthlypay_model->getEmpPayDetailsforMonthInputs($current);
|
||||
//dd($data['fresh']);
|
||||
// dd($data['fresh']);
|
||||
|
||||
|
||||
$employeeSalary = [];
|
||||
@ -750,9 +822,9 @@ class Payslip extends BaseController
|
||||
// die;
|
||||
|
||||
$employeeSalary[] = round($salaryInCurrentday);
|
||||
$esi[] = number_format($esiAmount,2);
|
||||
$pf[] = number_format($pfAmount,2);
|
||||
$ot[] = number_format($totSalayOT,2);
|
||||
$esi[] = number_format($esiAmount,2, '.', '');
|
||||
$pf[] = number_format($pfAmount,2, '.', '');
|
||||
$ot[] = number_format($totSalayOT,2, '.', '');
|
||||
}
|
||||
$data['empSalary'] = $employeeSalary;
|
||||
$data['esi'] = $esi;
|
||||
@ -863,11 +935,7 @@ class Payslip extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
// $Incentives_first = explode(".", $Incentives);
|
||||
// if (!is_numeric($Incentives) || (strlen((string)$Incentives)) > 8 || (strlen((string)$Incentives_first[0])) > 5) {
|
||||
// //echo $EmpID . "-Loan Recoverd Invalid Data!";
|
||||
// $ErrorFlag++;
|
||||
// }
|
||||
|
||||
|
||||
$Festivalbonus_first = explode(".", $Festival_Bonus);
|
||||
if (!is_numeric($Festival_Bonus) || (strlen((string)$Festival_Bonus)) > 8 || (strlen((string)$Festivalbonus_first[0])) > 5) {
|
||||
@ -905,26 +973,53 @@ class Payslip extends BaseController
|
||||
|
||||
$EmpID = $j['Emp ID'];
|
||||
$DaysWorked = $j['Days Worked'];
|
||||
$TotalCalDays = isset($j['Total Days']) ? $j['Total Days'] : 0.00 ;
|
||||
$ActualSalary = isset($j['Basic Salary']) ? $j['Basic Salary'] : 0.00 ;
|
||||
$WorkedSalary = isset($j['Worked Salary']) ? $j['Worked Salary'] : 0.00 ;
|
||||
$PerDaySalary = isset($j['Pre Day Salary']) ? $j['Pre Day Salary'] : 0.00 ;
|
||||
$Basic = isset($j['Basic Salary(0.7)']) ? $j['Basic Salary(0.7)'] : 0.00 ;
|
||||
$HRA = isset($j['HRA Salary(0.3)']) ? $j['HRA Salary(0.3)'] : 0.00 ;
|
||||
$OTSalary = isset($j['Over Time']) ? $j['Over Time'] : 0.00 ;
|
||||
$ESI = isset($j['ESI']) ? $j['ESI'] : 0.00 ;
|
||||
$PF = isset($j['PF']) ? $j['PF'] : 0.00 ;
|
||||
$LOP_Days = isset($j['LOP Days']) ? $j['LOP Days'] : 0.00;
|
||||
$Paid_leave = isset($j['Paid Leave']) ? $j['Paid Leave'] : 0.00;
|
||||
$OT_Hrs_Worked = isset($j['OT Hrs']) ? $j['OT Hrs'] : 0.00;
|
||||
$Loan_Recovered = isset($j['Auto Loan Due ₹']) ? $j['Auto Loan Due ₹'] : 0.00;
|
||||
// if (is_string($Loan_Recovered)) {
|
||||
// $Loan_Recovered = strtoupper($Loan_Recovered);
|
||||
// }
|
||||
// $Incentives = isset($j['Incentives in ₹']) ? $j['Incentives in ₹'] : 0.00 ;
|
||||
|
||||
$Festival_Bonus = isset($j['Festival Bonus in ₹']) ? $j['Festival Bonus in ₹'] : 0.00;
|
||||
$tds_Deductions = isset($j['TDS Deductions in ₹']) ? $j['TDS Deductions in ₹'] : 0.00;
|
||||
$Estimate = isset($j['Estimate in ₹']) ? $j['Estimate in ₹'] : 0.00;
|
||||
$Created_By = $this->session->get('userId');
|
||||
|
||||
$monthlypaydata = array('Month_Year' => $month, 'EmpID' => $EmpID, 'Days_worked' => $DaysWorked, 'LOP_Days' => $LOP_Days, 'Paid_leave' => $Paid_leave, 'OT_Hrs_Worked' => $OT_Hrs_Worked, 'Festival_Bonus' => $Festival_Bonus, 'Other_Deductions' => $tds_Deductions, 'Estimate' => $Estimate, 'Created_By' => $Created_By ,'Loan_Recovered'=>$Loan_Recovered);
|
||||
$monthlypaydata = array(
|
||||
'Month_Year' => $month,
|
||||
'EmpID' => $EmpID,
|
||||
'Days_worked' => $DaysWorked,
|
||||
'LOP_Days' => $LOP_Days,
|
||||
'Paid_leave' => $Paid_leave,
|
||||
'OT_Hrs_Worked' => $OT_Hrs_Worked,
|
||||
'Festival_Bonus' => $Festival_Bonus,
|
||||
'Other_Deductions' => $tds_Deductions,
|
||||
'Estimate' => $Estimate,
|
||||
'Created_By' => $Created_By,
|
||||
'Loan_Recovered' => $Loan_Recovered,
|
||||
'TotalCalDays' => $TotalCalDays,
|
||||
'ActualSalary' => $ActualSalary,
|
||||
'WorkedSalary' => $WorkedSalary,
|
||||
'PerDaySalary' => $PerDaySalary,
|
||||
'Basic' => $Basic,
|
||||
'HRA' => $HRA,
|
||||
'OTSalary' => $OTSalary,
|
||||
'ESI' => $ESI,
|
||||
'PF' => $PF,
|
||||
);
|
||||
// print_r($monthlypaydata); die;
|
||||
$result = $this->monthlypay_model->saveMonthlyData_model($monthlypaydata);
|
||||
$total = $total + $result;
|
||||
}
|
||||
}
|
||||
$total = $total - 1;
|
||||
|
||||
//echo "<script> alert($ErrorEmpId + '- are have Invalid Data!'); </script>";
|
||||
if (!empty($ErrorEmpId)) {
|
||||
echo $ErrorEmpId . "- are have Invalid Data!";
|
||||
@ -1018,63 +1113,55 @@ class Payslip extends BaseController
|
||||
public function PrintPdf()
|
||||
{
|
||||
|
||||
|
||||
// $EmpID = 'RIPL056';
|
||||
// $Payon = '08-2024';
|
||||
// $m = date("M", mktime(0, 0, 0, (int)$Payon, 10));
|
||||
// $y = substr((string)$Payon, 3);
|
||||
// //echo "EmpID" . $EmpID;
|
||||
// $Data['PayDetails'] = $this->payroll_model->GetPayslipdata($Payon, $EmpID);
|
||||
|
||||
// $fname = $Data['PayDetails'][0]->FName;
|
||||
// $filename = 'PayslipFor-' . $EmpID . ' ' . $fname . ' ' . $m . ' ' . $y;
|
||||
|
||||
// $totalsalary = $Data['PayDetails'][0]->TotalSalary;
|
||||
// $totalsalaryinwords = $this->convertNumber(round($totalsalary));
|
||||
// $Data['amtinwords'] = $totalsalaryinwords;
|
||||
// // dd ($Data);
|
||||
// echo view("payslipgenerateprint", $Data);
|
||||
// die;
|
||||
|
||||
$filename = " ";
|
||||
$html = "";
|
||||
$All = $this->request->getPost('All');
|
||||
// if ($All == '') {
|
||||
// $this->validator->setRules([
|
||||
// 'Employee' => [
|
||||
// 'label' => 'Employee',
|
||||
// 'rules' => 'trim|callback_Employee_validate',
|
||||
// ]
|
||||
// ]);
|
||||
// }
|
||||
|
||||
// $this->validator->setRules([
|
||||
// 'PayOn' => [
|
||||
// 'label' => 'PayOn',
|
||||
// 'rules' => 'trim|callback_PayOn_validate',
|
||||
// ]
|
||||
// ]);
|
||||
|
||||
// if ($this->validator->run() == FALSE) {
|
||||
// $this->viewGenerator();
|
||||
// } else {
|
||||
$Payon = $this->request->getPost('PayOn');
|
||||
|
||||
$m = date("M", mktime(0, 0, 0, (int)$Payon, 10));
|
||||
//$y =date("Y",mktime(0, 0, 0, $Payon, 10));
|
||||
//$m=date("M-Y",mktime(0,0,0,$month,1,$year));
|
||||
|
||||
$y = substr((string)$Payon, 3);
|
||||
//echo "Payon" . $Payon;
|
||||
|
||||
|
||||
if ($All != '') {
|
||||
$filename = 'PayslipFor-' . $m . '-' . $y;
|
||||
$result = $this->payroll_model->getEmpAll($Payon);
|
||||
// print_r($result);
|
||||
// die();
|
||||
|
||||
|
||||
if ($result > 0) {
|
||||
for ($i = 0; $i < count($result); $i++) {
|
||||
|
||||
$EmpID = $result[$i]['EmpId'];
|
||||
//print_r(
|
||||
//$EmpID );
|
||||
// die();
|
||||
|
||||
$Data['PayDetails'] = $this->payroll_model->GetPayslipdata($Payon, $EmpID);
|
||||
//
|
||||
|
||||
|
||||
$totalsalary = $Data['PayDetails'][0]->LessAdvance;
|
||||
$totalsalaryinwords = $this->convertNumber(round($totalsalary));
|
||||
$Data['amtinwords'] = $totalsalaryinwords;
|
||||
// print_r ($Data);
|
||||
// exit();
|
||||
//$Data['Count'] = $i;
|
||||
|
||||
|
||||
$html .= view("payslipgenerateprint", $Data);
|
||||
|
||||
// print_r ($Data);
|
||||
// exit();
|
||||
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@ -1088,45 +1175,12 @@ class Payslip extends BaseController
|
||||
$totalsalary = $Data['PayDetails'][0]->LessAdvance;
|
||||
$totalsalaryinwords = $this->convertNumber(round($totalsalary));
|
||||
$Data['amtinwords'] = $totalsalaryinwords;
|
||||
//print_r ($Data);
|
||||
//exit();
|
||||
// print_r ($Data);
|
||||
// exit();
|
||||
$html = view("payslipgenerateprint", $Data);
|
||||
}
|
||||
|
||||
|
||||
// $php = $this->output->get_output();
|
||||
|
||||
// // Load library
|
||||
// $this->load->library('dompdf_gen');
|
||||
|
||||
// if($All != '')
|
||||
// {
|
||||
// $filename = 'Payslip-'.$Payon.'.pdf' ;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $filename = 'Payslip-'.$EmpID . '-' .$Payon.'.pdf' ;
|
||||
// }
|
||||
|
||||
// require_once(APPPATH .'third_party/dompdf/dompdf_config.inc.php');
|
||||
// $dompdf = new DOMPDF();
|
||||
// $dompdf->set_paper('A4', 'portrait');
|
||||
// $dompdf->load_html($php);
|
||||
|
||||
// $dompdf->render();
|
||||
|
||||
// // add the header
|
||||
// $canvas = $dompdf->get_canvas();
|
||||
// $font = Font_Metrics::get_font("helvetica", "bold");
|
||||
|
||||
// // the same call as in my previous example
|
||||
// $canvas->page_text(72, 18, "Page: {PAGE_NUM} of {PAGE_COUNT}",
|
||||
// $font, 6, array(0,0,0));
|
||||
|
||||
// $dompdf->stream($filename);
|
||||
// }
|
||||
|
||||
// $mpdf = new mPDF('utf-8', 'A4-P', 10, 10, 10, 10, 10, 24, 4, 6);
|
||||
$mpdf = new Mpdf([
|
||||
'mode' => 'utf-8',
|
||||
'format' => 'A4-P',
|
||||
@ -1147,7 +1201,7 @@ class Payslip extends BaseController
|
||||
$mpdf->SetTitle('Resico:Payslip');
|
||||
|
||||
$mpdf->Output("Payslip-" . $filename . ".pdf", 'D');
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
function updatePayslip()
|
||||
|
||||
@ -84,7 +84,7 @@ class Monthlypay_model extends Model
|
||||
$month = '0' . $month;
|
||||
}
|
||||
|
||||
//echo $month;
|
||||
|
||||
|
||||
$current = '01-' . $current;
|
||||
//echo $current;
|
||||
@ -100,7 +100,7 @@ class Monthlypay_model extends Model
|
||||
//echo $lastdate;
|
||||
|
||||
//left join t_payroll on t_employee_details.EmpID = t_payroll.EmpID and month(t_payroll.PayOn) = month(?) and year(t_payroll.PayOn) = year(?)
|
||||
$sql = "select t_emp_pay_data.EmpID,t_emp_pay_data.*,t_employee_details.FirstName,t_employee_details.DateofJoining,t_employee_details.Designation,t_employee_details.esi_applicable,t_employee_details.pf_applicable,t_employee_details.is_management_team,t_attendance.Days_Worked as Days_worked,t_attendance.Absent as LOP_Days,t_attendance.Paid_Leave as Paid_leave,t_attendance.Total_OTHrs as OT_Hrs_Worked,t_attendance.NoofDays,t_attendance.sunday_count,t_loan_master.Loan_ID,t_loan_master.Monthly_Due,t_loan_master.Due_Start_Date as DueDate,t_loan_master.Loan_Amount,t_loan_master.Paid_Amount,t_payroll.Key,t_monthly_pay_inputs.Incentives as MonthlyIncentives,t_monthly_pay_inputs.Loan_Recovered,t_monthly_pay_inputs.Estimate,t_monthly_pay_inputs.Festival_Bonus,t_monthly_pay_inputs.Other_Deductions,t_loan_history .Balance_Amount
|
||||
$sql = "select t_emp_pay_data.EmpID,t_emp_pay_data.*,t_employee_details.FirstName,t_employee_details.DateofJoining,t_employee_details.Designation,t_employee_details.esi_applicable,t_employee_details.pf_applicable,t_employee_details.is_management_team,t_attendance.Days_Worked as Days_worked,t_attendance.Absent as LOP_Days,t_attendance.Paid_Leave as Paid_leave,t_attendance.Total_OTHrs as OT_Hrs_Worked,t_attendance.NoofDays,t_attendance.sunday_count,t_loan_master.Loan_ID,t_loan_master.Monthly_Due,t_loan_master.Due_Start_Date as DueDate,t_loan_master.Loan_Amount,t_loan_master.Paid_Amount,t_payroll.Key,t_monthly_pay_inputs.Loan_Recovered,t_monthly_pay_inputs.Estimate,t_monthly_pay_inputs.Festival_Bonus,t_monthly_pay_inputs.Other_Deductions,t_loan_history .Balance_Amount
|
||||
from t_emp_pay_data
|
||||
left join t_employee_details on t_employee_details.EmpID = t_emp_pay_data.EmpID
|
||||
left join t_payroll on t_employee_details.EmpID = t_payroll.EmpID and t_payroll.PayOn = ?
|
||||
@ -113,6 +113,9 @@ class Monthlypay_model extends Model
|
||||
order by t_employee_details.EmpID";
|
||||
|
||||
$query = $this->db->query($sql, array($month, $month, $lastdate, $current, $current));
|
||||
// Get the last executed query
|
||||
// $last_query = $this->db->getLastQuery();
|
||||
// echo $last_query;
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
@ -371,7 +374,7 @@ join t_departmentdetails as Dep on Dep.DEPCode=Emp.Departmentcode where Emp.IsA
|
||||
$pre_year = $curr_split[0];
|
||||
$curr_year = $curr_split[1];
|
||||
|
||||
$sql = "select t_monthly_pay_inputs.EmpID,t_employee_details.FirstName,t_employee_details.LastName,sum(Incentives) as Incentives,sum(Festival_Bonus) as Bonus
|
||||
$sql = "select t_monthly_pay_inputs.EmpID,t_employee_details.FirstName,t_employee_details.LastName,sum(Festival_Bonus) as Bonus
|
||||
from t_monthly_pay_inputs
|
||||
join t_employee_details on t_monthly_pay_inputs.EmpID = t_employee_details.EmpID
|
||||
where
|
||||
@ -393,7 +396,7 @@ join t_departmentdetails as Dep on Dep.DEPCode=Emp.Departmentcode where Emp.IsA
|
||||
$pre_year = $curr_split[0];
|
||||
$curr_year = $curr_split[1];
|
||||
|
||||
$sql = "select t_monthly_pay_inputs.EmpID,t_monthly_pay_inputs.Month_Year,t_employee_details.FirstName,t_employee_details.LastName,sum(Incentives) as Incentives,sum(Festival_Bonus) as Bonus
|
||||
$sql = "select t_monthly_pay_inputs.EmpID,t_monthly_pay_inputs.Month_Year,t_employee_details.FirstName,t_employee_details.LastName,sum(Festival_Bonus) as Bonus
|
||||
from t_monthly_pay_inputs
|
||||
join t_employee_details on t_monthly_pay_inputs.EmpID = t_employee_details.EmpID
|
||||
and t_monthly_pay_inputs.EmpID = ?
|
||||
|
||||
@ -376,8 +376,10 @@ class Payroll_model extends Model
|
||||
function getEmpID()
|
||||
{
|
||||
|
||||
$builder = $this->db->table('t_employee_details')
|
||||
->select('EmpID,FirstName,LastName');
|
||||
$builder = $this->db->table('t_employee_details E')
|
||||
->select('E.EmpID, E.FirstName, E.LastName')
|
||||
->join('t_loan_master LM', 'LM.EmpID = E.EmpID', 'left')
|
||||
->where('LM.Loan_ID IS NULL');
|
||||
|
||||
$query = $builder->get();
|
||||
return $query->getResult();
|
||||
@ -487,4 +489,42 @@ class Payroll_model extends Model
|
||||
//return $query_count;
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
|
||||
function getMonthlyPayDetails($EmpId, $PayOn)
|
||||
{
|
||||
$builder = $this->db->table('t_monthly_pay_inputs MonthlyPay ')
|
||||
->select('MonthlyPay.*, E.BankAccountNo , E.PFNO , E.ESI as ESINO , L.*')
|
||||
->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')
|
||||
->where('MonthlyPay.EmpID', $EmpId)
|
||||
->where('MonthlyPay.Month_Year', $PayOn);
|
||||
|
||||
$query = $builder->get();
|
||||
return $query->getResult();
|
||||
}
|
||||
|
||||
function insertPayroll($data)
|
||||
{
|
||||
$builder = $this->db->table('t_payroll');
|
||||
$builder->insert($data);
|
||||
$count = $this->db->affectedRows();
|
||||
return $count;
|
||||
}
|
||||
function insertLoanHistory($data)
|
||||
{
|
||||
$builder = $this->db->table('t_loan_history');
|
||||
$builder->insert($data);
|
||||
$count = $this->db->affectedRows();
|
||||
return $count;
|
||||
}
|
||||
function updateLoan($LoanID,$EmpID,$data)
|
||||
{
|
||||
$builder = $this->db->table('t_loan_master')
|
||||
->where('Loan_ID', $LoanID)
|
||||
->where('EmpID', $EmpID)
|
||||
->update($data);
|
||||
$count = $this->db->affectedRows();
|
||||
return $count;
|
||||
}
|
||||
}
|
||||
@ -36,7 +36,7 @@
|
||||
<div class="row" style="margin-bottom: 10px;">
|
||||
<div class="col-6">
|
||||
<div class="page-title-box page-title-box-alt">
|
||||
<h4 class="page-title">Add Employee Pay</h4>
|
||||
<h4 class="page-title">Create Loan</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6 text-right">
|
||||
|
||||
@ -1901,39 +1901,39 @@ if (!empty($INRSYMBOL)) {
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$('#ServiceMaterialCode').change(function() {
|
||||
var selectedMaterialCode = '';
|
||||
selectedMaterialCode = $("#ServiceMaterialCode").val();
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (selectedMaterialCode == value.MaterialCode) {
|
||||
$("#ServiceDescription").val(value.MaterialName);
|
||||
$("#ServiceUOM").val(value.UOM);
|
||||
if ($('#ScheduleType').val().trim() != 'Recurring') {
|
||||
$('#FrequencyChange').val('One Time');
|
||||
var selectedMaterialCode = '';
|
||||
selectedMaterialCode = $("#ServiceMaterialCode").val();
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
if (selectedMaterialCode == value.MaterialCode) {
|
||||
$("#ServiceDescription").val(value.MaterialName);
|
||||
$("#ServiceUOM").val(value.UOM);
|
||||
if ($('#ScheduleType').val().trim() != 'Recurring') {
|
||||
$('#FrequencyChange').val('One Time');
|
||||
|
||||
|
||||
|
||||
$('#ServiceNo').val(1);
|
||||
} else {
|
||||
$('#FrequencyChange').val($('#ScheduleType').val());
|
||||
$('#ServiceNo').val(1);
|
||||
} else {
|
||||
$('#FrequencyChange').val($('#ScheduleType').val());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
var d = $('#drpSupplier').val();
|
||||
$.ajax({
|
||||
url: "<?php echo base_url() ?>VerifyWithSupplierForPendingPO",
|
||||
type: 'POST',
|
||||
data: {
|
||||
supplierid: d,
|
||||
materialcode: selectedMaterialCode
|
||||
},
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
var d = $('#drpSupplier').val();
|
||||
$.ajax({
|
||||
url: "<?php echo base_url() ?>VerifyWithSupplierForPendingPO",
|
||||
type: 'POST',
|
||||
data: {
|
||||
supplierid: d,
|
||||
materialcode: selectedMaterialCode
|
||||
},
|
||||
success: function(response) {
|
||||
if (response) alert(response);
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
let materialData;
|
||||
|
||||
|
||||
@ -2309,7 +2309,6 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<?php
|
||||
$attributes = array('class' => 'form-label-left CreatealterPO ', 'name' => 'CreatealterPO', 'id' => 'CreatealterPO');
|
||||
|
||||
echo form_open(base_url() . '/purchaseorder/addalterPO/', $attributes); ?>
|
||||
|
||||
<div class="row">
|
||||
@ -2559,7 +2558,8 @@ if (!empty($INRSYMBOL)) {
|
||||
<label>Purchase Order Date</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'PODate', 'value' => set_value('PODate', $CurrentDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
$formattedDate = $dt->format('Y-m-d');
|
||||
$data = array('type' => 'date', 'name' => 'PODate', 'value' => set_value('PODate', $formattedDate), 'id' => 'PODate', 'class' => 'form-control', 'required' => 'true', 'onkeypress' => 'return false;');
|
||||
echo form_input($data);
|
||||
?>
|
||||
</div>
|
||||
@ -2759,7 +2759,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<form>
|
||||
<div class="modal-body p-4">
|
||||
<div class="form-group row">
|
||||
<label><input type="radio" name="optsubmit" value="1" id="optsubmit"> YES</label>
|
||||
<label><input type="radio" name="optsubmit" value="1" id="optsubmit"> YES</label>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label><input type="radio" name="optsubmit" checked="checked" id="optsubmit" value="0"> NO</label>
|
||||
@ -2787,7 +2787,7 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="modal-body" style="padding:0px;">
|
||||
<!-- <div class="col-md-4 pad"><strong>Select Item Code</strong>
|
||||
<select id="emergencyitemcode" name="emergencyitemcode" class = "form-control select2">
|
||||
<!-- <option value="1"> select material code</option>
|
||||
<!-- <option value="1"> select material code</option>
|
||||
</select>
|
||||
|
||||
</div>-->
|
||||
@ -2838,14 +2838,14 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
<!-- <div class="col-md-5">
|
||||
<input type = "file" size = "20" input accept=".docx,.pdf,.doc.JPG,.PNG,.jpg" id="imag" name="images" onChange="filecheck();"/>
|
||||
<input type = "file" size = "20" input accept=".docx,.pdf,.doc.JPG,.PNG,.jpg" id="imag" name="images" onChange="filecheck();"/>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<label for="images">Select file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
|
||||
</div> -->
|
||||
<label for="images">Select file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
|
||||
</div> -->
|
||||
<div class="col-md-10">
|
||||
|
||||
<!-- <legend>Multiple File</legend> -->
|
||||
@ -2872,16 +2872,16 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
<!--<thead>
|
||||
<tr>
|
||||
<th>MaterialCode1</th>
|
||||
<th>DeliveryChallanDate</th>
|
||||
<th>DeliveryChallanNo</th>
|
||||
<th>VehicleNo</th>
|
||||
<th>CourierNo</th>
|
||||
<th>Quantity12</th>
|
||||
<th>File</th>
|
||||
</tr>
|
||||
</thead>-->
|
||||
<tr>
|
||||
<th>MaterialCode1</th>
|
||||
<th>DeliveryChallanDate</th>
|
||||
<th>DeliveryChallanNo</th>
|
||||
<th>VehicleNo</th>
|
||||
<th>CourierNo</th>
|
||||
<th>Quantity12</th>
|
||||
<th>File</th>
|
||||
</tr>
|
||||
</thead>-->
|
||||
|
||||
<tbody id="specialappend">
|
||||
|
||||
@ -2907,7 +2907,6 @@ if (!empty($INRSYMBOL)) {
|
||||
<!-- </form> -->
|
||||
</div>
|
||||
|
||||
|
||||
<div id="servicemodel" class="modal fade" data-backdrop-limit="1" role="dialog" aria-labelledby="myModalLabel">
|
||||
<div class="modal-dialog">
|
||||
|
||||
@ -2924,9 +2923,9 @@ if (!empty($INRSYMBOL)) {
|
||||
<!-- <div class="col-md-4">
|
||||
<input type = "file" size = "20" input accept=".docx,.pdx,.doc.JPG,.PNG,.jpg" id="images1" name="images1" onChange="sfilecheck();"/>
|
||||
<label for="images">Select Company file<br/><small>(only .pdf,.excel,.doc,.png,.jpg)</small></label>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
|
||||
|
||||
<!-- <div class="col-md-10"> -->
|
||||
@ -2952,8 +2951,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12 text-right">
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success ok" ID="ExciseOption12" onclick="sfilealert();"> <span class="bold">Submit</span></a>
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" onclick="SetExciseCalculationCancel();" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success ok" ID="ExciseOption12" onclick="sfilealert();"> <span class="bold">Submit</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -3102,9 +3101,9 @@ if (!empty($INRSYMBOL)) {
|
||||
<h4>Edit Service Purchase Order Item </h4>
|
||||
</center>
|
||||
</div>
|
||||
<div align="left">
|
||||
<div class="modal-body p-4">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label>Req No<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
@ -3146,7 +3145,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label>Item Code<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
@ -3242,7 +3241,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
@ -3278,8 +3277,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding:0px;">
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-6" align="right">
|
||||
|
||||
CGST In %
|
||||
@ -3307,7 +3305,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-6" align="right">
|
||||
|
||||
SGST In %
|
||||
@ -3335,7 +3333,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-6" align="right">
|
||||
|
||||
IGST In %
|
||||
@ -3364,8 +3362,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-5 col-md-offset-4" align="right">
|
||||
<div class="row">
|
||||
<div class="col-md-9" align="right">
|
||||
<label>Other Allowances <?php echo "($INRSYM)" ?></label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
@ -3377,8 +3375,8 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-5 col-md-offset-4" align="right">
|
||||
<div class="row">
|
||||
<div class="col-md-9" align="right">
|
||||
<label> <?php echo "Total Order Amount In ($INRSYM)"; ?></label>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
@ -3390,17 +3388,21 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="padding: 0px 30px 10px 30px;">
|
||||
<div class="row" style="padding: 0px 30px 10px 30px;">
|
||||
<div class="col-md-12">
|
||||
<label>Service Description<span class="badge mandatory">*</span></label> <?php
|
||||
$data = array('name' => 'EdittxtSpcialInstructionSingle', 'value' => set_value('EdittxtSpcialInstructionSingle'), 'id' => 'EdittxtSpcialInstructionSingle', 'class' => 'form-control', 'rows' => '3', 'cols' => '40');
|
||||
echo form_textarea($data); ?>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="hiddenServiceuserid" name="hiddenServiceuserid" />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="modal-footer">
|
||||
<div class="col-md-12">
|
||||
<div class="col-md-12 text-right">
|
||||
<a class="btn btn-cancel" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success font EditService" ID="Edit"> <span class="bold">Update Service</span></a>
|
||||
</div>
|
||||
@ -3416,14 +3418,14 @@ if (!empty($INRSYMBOL)) {
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<form>
|
||||
<div class="modal-content" style="width:1150px;">
|
||||
<div class="modal-content" style="width:1000px;">
|
||||
<div class="modal-header">
|
||||
<center>
|
||||
<h4>Edit Revenue Purchase Order Line Item </h4>
|
||||
</center>
|
||||
</div>
|
||||
<div align="left">
|
||||
<div class="col-md-12">
|
||||
<div class="modal-body p-4">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<label>Req No<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
@ -3464,7 +3466,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-2">
|
||||
<label>Item Code<span class="badge mandatory">*</span></label>
|
||||
<div>
|
||||
@ -3486,7 +3488,7 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-md-1">
|
||||
<label>UOM</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -3495,7 +3497,6 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" style="padding: 0px;">
|
||||
<div class="col-md-2" style="padding-right:0px;">
|
||||
<label>Quantity<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
@ -3514,7 +3515,7 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-1">
|
||||
<label>Per</label> <?php
|
||||
$data = array('name' => 'editrevenueEmergPer', 'value' => set_value('editrevenueEmergPer'), 'id' => 'editrevenueEmergPer', 'class' => 'form-control');
|
||||
echo form_input($data); ?>
|
||||
@ -3528,9 +3529,8 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Discount Type </label>
|
||||
@ -3572,7 +3572,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" style="text-align:left;">
|
||||
<div class="row" style="text-align:left;">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Packaging Type </label>
|
||||
@ -3614,7 +3614,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-4"></div>
|
||||
<div class="col-md-4">
|
||||
<label>Freight Type </label>
|
||||
@ -3670,7 +3670,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
@ -3692,8 +3692,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12" id="SGSTEditModel">
|
||||
<div class="row" id="SGSTEditModel">
|
||||
<div class="col-md-8">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
@ -3715,7 +3714,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12" id="IGSTEditModel">
|
||||
<div class="row" id="IGSTEditModel">
|
||||
<div class="col-md-8">
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
@ -3737,7 +3736,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@ -3750,8 +3749,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
@ -3764,24 +3762,24 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<label><?php echo "Revenue Description"; ?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
$data = array('name' => 'Edit_Service_Description', 'value' => set_value('Edit_Service_Description'), 'id' => 'Edit_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||
echo form_textarea($data);;
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-offset-9 col-md-3">
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="hiddenRevenueuserid" name="hiddenRevenueuserid" />
|
||||
|
||||
<!-- footer for revenue po -->
|
||||
<div class="modal-footer">
|
||||
|
||||
<div class="col-md-12 text-right">
|
||||
<a class="btn btn-secondary waves-effect" data-dismiss="modal" value="Cancel">Cancel</a>
|
||||
<a class="btn btn-success EditRevenue" ID="EditRevenue"> <span class="bold">Edit Revenue</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -3829,7 +3827,7 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<div class="col-md-1">
|
||||
<label>UOM</label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -3838,8 +3836,7 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6" style="padding:0px;display: flex;">
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-2">
|
||||
<label>Quantity<span class="badge mandatory">*</span></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -3848,7 +3845,7 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-2">
|
||||
<label><?php echo "Rate ($INRSYM)"; ?><span class="badge mandatory"></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -3857,12 +3854,12 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-1">
|
||||
<label>Per</label> <?php
|
||||
$data = array('name' => 'addrevenueEmergPer', 'value' => set_value('addrevenueEmergPer'), 'id' => 'addrevenueEmergPer', 'class' => 'form-control');
|
||||
echo form_input($data); ?>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="col-md-2">
|
||||
<label><?php echo "Basic Amt ($INRSYM)"; ?></label>
|
||||
<div class="form-group">
|
||||
<?php
|
||||
@ -3871,7 +3868,6 @@ if (!empty($INRSYMBOL)) {
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@ -4108,10 +4104,8 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<label><?php echo "Revenue Description"; ?></label>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<?php
|
||||
$data = array('name' => 'Add_Service_Description', 'value' => set_value('Add_Service_Description'), 'id' => 'Add_Service_Description', 'class' => 'form-control', 'rows' => '2', 'cols' => '100');
|
||||
echo form_textarea($data);;
|
||||
@ -4412,7 +4406,6 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
|
||||
<!-- model for import PO -->
|
||||
|
||||
<div class="modal fade" id="IMPORT" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
@ -5378,7 +5371,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
<div class="box-body">
|
||||
<table id="serviceTax" class="table table-bordered table-hover" style="background-color:#fff;">
|
||||
<thead >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>SNo</th>
|
||||
<th>Requisition No</th>
|
||||
@ -5593,7 +5586,7 @@ if (!empty($INRSYMBOL)) {
|
||||
</div>
|
||||
|
||||
<!-- </section> -->
|
||||
<script type="text/html" id="RevenueList">
|
||||
<!-- <script type="text/html" id="RevenueList">
|
||||
<tr id="<%=index%>">
|
||||
<td align="left"><%=index%></td>
|
||||
<td align="left"><%=ReqNo%></td>
|
||||
@ -5612,7 +5605,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</script>
|
||||
</script> -->
|
||||
<script>
|
||||
var index = '1';
|
||||
var userid = '';
|
||||
@ -5700,15 +5693,15 @@ if (!empty($INRSYMBOL)) {
|
||||
populateValueMainFormForRevenue();
|
||||
|
||||
|
||||
if(index -1 == 0){
|
||||
if (index - 1 == 0) {
|
||||
$('#ServiceAppend').empty();
|
||||
}
|
||||
index = parseInt(index) + 1;
|
||||
|
||||
var template = jQuery("#RevenueList").html();
|
||||
|
||||
|
||||
var html = `
|
||||
<tr>
|
||||
<tr id="${temp}">
|
||||
<td>${temp}</td>
|
||||
<td>${Reqnumber}</td>
|
||||
<td>${materialCode}</td>
|
||||
@ -5719,18 +5712,24 @@ if (!empty($INRSYMBOL)) {
|
||||
<td>${basicval}</td>
|
||||
<td>${TotalTaxValue}</td>
|
||||
<td>${TotalOrderValue}</td>
|
||||
<td>
|
||||
<a data-target='#EDITREVENUE' data-id="${temp}" data-index="${index}" data-userid="${temp}" data-toggle="modal" href="#EDITREVENUE">
|
||||
<i class="ri-pencil-fill"></i>
|
||||
|
||||
</a>
|
||||
<a href='#' onclick="DeleteRevenueRow('${temp}')" class="link" data-id="${temp}" data-index="${index}" data-userid="${temp}" id="Del">
|
||||
<span class="ri-delete-bin-7-fill"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
`;
|
||||
|
||||
|
||||
|
||||
$('#RevenueAppend').append(html);
|
||||
// $('#serviceTax').row.add($(html)).draw();
|
||||
|
||||
|
||||
var theForm = $(".CreatealterPO");
|
||||
console.log("hidden inputs ");
|
||||
|
||||
|
||||
addHidden(theForm, "Reqnumber" + temp, Reqnumber);
|
||||
addHidden(theForm, "departmentName" + temp, departmentName);
|
||||
addHidden(theForm, "AvilBudget" + temp, (AvilBudget ? AvilBudget : 0));
|
||||
@ -5766,6 +5765,9 @@ if (!empty($INRSYMBOL)) {
|
||||
addHidden(theForm, "RevenueIgst" + temp, Igst);
|
||||
addHidden(theForm, "RevenueAfterIgst" + temp, AfterIgst);
|
||||
$('#txtRowCount1').val(temp);
|
||||
|
||||
$('#hiddenRevenueuserid').val(temp);
|
||||
|
||||
clearRevenueModalFields();
|
||||
$('#REVENUE').modal('hide');
|
||||
|
||||
@ -6344,6 +6346,7 @@ if (!empty($INRSYMBOL)) {
|
||||
if (validateServiceTax()) {
|
||||
// alert('inside Addservice');
|
||||
var temp = index;
|
||||
console.log('temp = ' + temp);
|
||||
var Reqnumber = $('#purpose').val();
|
||||
var departmentName = $('#DepartmentName').val();
|
||||
var AvilBudget = $('#AvalBuget').val();
|
||||
@ -6389,7 +6392,7 @@ if (!empty($INRSYMBOL)) {
|
||||
|
||||
populateValueMainFormForServiceTax();
|
||||
|
||||
if(index - 1 == 0){
|
||||
if (index - 1 == 0) {
|
||||
$('#ServiceAppend').empty();
|
||||
$('#RevenueAppend').empty();
|
||||
}
|
||||
@ -6398,7 +6401,7 @@ if (!empty($INRSYMBOL)) {
|
||||
var template = jQuery("#ServiceList").html();
|
||||
|
||||
var html = `
|
||||
<tr>
|
||||
<tr id="${temp}">
|
||||
<td>${temp}</td>
|
||||
<td>${Reqnumber}</td>
|
||||
<td>${materialCode}</td>
|
||||
@ -6409,11 +6412,19 @@ if (!empty($INRSYMBOL)) {
|
||||
<td>${basicval}</td>
|
||||
<td>${TotalTaxValue}</td>
|
||||
<td>${TotalOrderValue}</td>
|
||||
<td>
|
||||
<a data-target='#EDITSERVICE' data-id="${temp}" data-index="${index}" data-userid="${temp}" data-toggle="modal" href="#EDITSERVICE">
|
||||
<i class="ri-pencil-fill"></i>
|
||||
|
||||
</a>
|
||||
<a href='#' onclick="DeleteRow('${temp}')" class="link" data-id="${temp}" data-index="${index}" data-userid="${temp}" id="Del">
|
||||
<span class="ri-delete-bin-7-fill"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
`;
|
||||
console.log("index");
|
||||
console.log(index);
|
||||
|
||||
console.log("index = " + index);
|
||||
|
||||
$('#ServiceAppend').append(html);
|
||||
|
||||
|
||||
@ -6447,6 +6458,7 @@ if (!empty($INRSYMBOL)) {
|
||||
addHidden(theForm, "FrequencySchedule" + temp, FrequencySchedule);
|
||||
|
||||
$('#txtRowCount').val(temp);
|
||||
$('#hiddenServiceuserid').val(temp);
|
||||
$('#SERVICE').modal('hide');
|
||||
|
||||
}
|
||||
@ -6562,121 +6574,65 @@ if (!empty($INRSYMBOL)) {
|
||||
/**
|
||||
* This function is used to edit the service seleted po
|
||||
*/
|
||||
var EditGetMaterialData;
|
||||
$(document).ready(function() {
|
||||
|
||||
$("#EDITSERVICE").on("shown.bs.modal", function(e) {
|
||||
tinyMCE.triggerSave();
|
||||
var EditGetMaterialData;
|
||||
|
||||
EditGetMaterialData = '';
|
||||
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
var tr = document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
var id = $('#Reqnumber' + userid).val();
|
||||
$('#EditReqNo').val($('#Reqnumber' + userid).val());
|
||||
$('#EditdeptName').val($('#departmentName' + userid).val());
|
||||
$('#EditCostCenter').val($('#costCode' + userid).val());
|
||||
|
||||
$('#EditAvlBudAmt').val($('#AvilBudget' + userid).val() ? $('#AvilBudget' + userid).val() : 0);
|
||||
|
||||
$('#EditItemName').val($('#materialName' + userid).val());
|
||||
$('#EditUOM').val($('#uom' + userid).val());
|
||||
$('#EditEmergPer').val($('#Serviceper' + userid).val());
|
||||
$('#EditQuantity').val($('#quantity' + userid).val());
|
||||
$('#EditRate').val($('#itemRate' + userid).val());
|
||||
$('#txtEditBasicValue').val(cellval[7].innerHTML);
|
||||
$('#EditAfterCgst').val($('#AfterCgst' + userid).val());
|
||||
$('#EditAfterSgst').val($('#AfterSgst' + userid).val());
|
||||
$('#EditAfterIgst').val($('#AfterIgst' + userid).val());
|
||||
$('#EditCgst').val($('#Cgst' + userid).val());
|
||||
$('#EditSgst').val($('#Sgst' + userid).val());
|
||||
$('#EditIgst').val($('#Igst' + userid).val());
|
||||
//$('#EditFrequencyNo').val($('#FrequencyValue'+userid).val());
|
||||
//$('#EditFrequency').val($('#Frequency'+userid).val());
|
||||
$('#EditTotalOrderValue').val(cellval[9].innerHTML);
|
||||
$('#EditOtherAllowances').val($('#OtherAmt' + userid).val());
|
||||
|
||||
tinyMCE.get('EdittxtSpcialInstructionSingle').setContent($('#ItemServiceDescription' + userid).val());
|
||||
if ($('#FrequencySchedule' + userid).val() != 'Recurring') {
|
||||
$('#EditFrequencyChange').val('One time');
|
||||
$("#EDITSERVICE").on("shown.bs.modal", function(e) {
|
||||
tinyMCE.triggerSave();
|
||||
var userid = $(e.relatedTarget).data('userid');
|
||||
console.log("userid:", userid);
|
||||
console.log($('#Reqnumber' + userid).val());
|
||||
var tr = document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
|
||||
|
||||
} else {
|
||||
$('#EditFrequencyChange').val($('#FrequencySchedule' + userid).val());
|
||||
// Ensure the following elements have the correct IDs
|
||||
|
||||
}
|
||||
$('#EditReqNo').val($('#Reqnumber' + userid).val());
|
||||
$('#EditdeptName').val($('#departmentName' + userid).val());
|
||||
$('#EditCostCenter').val($('#costCode' + userid).val());
|
||||
$('#EditAvlBudAmt').val($('#AvilBudget' + userid).val() || 0);
|
||||
|
||||
$('#EditItemName').val($('#materialName' + userid).val());
|
||||
$('#EditUOM').val($('#uom' + userid).val());
|
||||
$('#EditEmergPer').val($('#Serviceper' + userid).val());
|
||||
$('#EditQuantity').val($('#quantity' + userid).val());
|
||||
$('#EditRate').val($('#itemRate' + userid).val());
|
||||
$('#txtEditBasicValue').val(cellval[7].innerHTML);
|
||||
$('#EditAfterCgst').val($('#AfterCgst' + userid).val());
|
||||
$('#EditAfterSgst').val($('#AfterSgst' + userid).val());
|
||||
$('#EditAfterIgst').val($('#AfterIgst' + userid).val());
|
||||
$('#EditCgst').val($('#Cgst' + userid).val());
|
||||
$('#EditSgst').val($('#Sgst' + userid).val());
|
||||
$('#EditIgst').val($('#Igst' + userid).val());
|
||||
$('#EditTotalOrderValue').val(cellval[9].innerHTML);
|
||||
$('#EditOtherAllowances').val($('#OtherAmt' + userid).val());
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$("#EditMaterialCode").empty();
|
||||
|
||||
$("#EditMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
|
||||
|
||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||
|
||||
$("#EditMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||
|
||||
tinyMCE.get('EdittxtSpcialInstructionSingle').setContent($('#ItemServiceDescription' + userid).val());
|
||||
if ($('#FrequencySchedule' + userid).val() != 'Recurring') {
|
||||
$('#EditFrequencyChange').val('One time');
|
||||
} else {
|
||||
$('#EditFrequencyChange').val($('#FrequencySchedule' + userid).val());
|
||||
}
|
||||
|
||||
$("#EditMaterialCode").empty();
|
||||
$("#EditMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
||||
|
||||
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
||||
var parsedMaterialData = JSON.parse(materialData);
|
||||
|
||||
$.each(parsedMaterialData, function(index, value) {
|
||||
// Assuming userid is defined somewhere in your code
|
||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||
$("#EditMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
console.log("materialData is not defined or empty.");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*get Material list while editing
|
||||
|
||||
var EditPoType=$('#Reqnumber'+userid).val();
|
||||
|
||||
$.ajax({
|
||||
data:{input:EditPoType},
|
||||
type:"POST",
|
||||
url:"<?php echo base_url() ?>emergencypurchaseorder/getMaterialCode",
|
||||
success:function(data) {
|
||||
$('#content').loader('hide');
|
||||
if(data)
|
||||
{
|
||||
EditGetMaterialData=data;
|
||||
|
||||
$("#EditMaterialCode").empty();
|
||||
|
||||
$("#EditMaterialCode").append( $('<option></option>').val($('#materialCode'+userid).val()).html($('#materialCode'+userid).val() + "-" + $('#materialName'+userid).val()) );
|
||||
$.each(JSON.parse(data), function (index, value) {
|
||||
|
||||
|
||||
if($('#materialCode'+userid).val() != value.MaterialCode)
|
||||
{
|
||||
|
||||
$("#EditMaterialCode").append( $('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
});*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
* edit emenergency service po validations
|
||||
*/
|
||||
@ -6756,6 +6712,8 @@ $('#content').loader('hide');
|
||||
|
||||
|
||||
var basicval = $("#txtEditBasicValue").val();
|
||||
var userid = $("#hiddenServiceuserid").val();
|
||||
|
||||
|
||||
var TotalTaxValue = calculateEditTaxValue();
|
||||
|
||||
@ -6795,6 +6753,8 @@ $('#content').loader('hide');
|
||||
|
||||
populateValueMainFormForEditServiceTax();
|
||||
|
||||
}else{
|
||||
console.log("in else part...");
|
||||
}
|
||||
|
||||
});
|
||||
@ -6973,7 +6933,7 @@ $('#content').loader('hide');
|
||||
} else {
|
||||
// Submit the form using AJAX
|
||||
$.ajax({
|
||||
url:"<?php echo base_url() ?>emergencypurchaseorder/addNewServicePurchaseOrder",
|
||||
url: "<?php echo base_url() ?>emergencypurchaseorder/addNewServicePurchaseOrder",
|
||||
type: "POST",
|
||||
data: formData,
|
||||
processData: false, // Prevent jQuery from automatically transforming the data into a query string
|
||||
@ -7060,12 +7020,12 @@ $('#content').loader('hide');
|
||||
// Handle the server response
|
||||
// alert(data);
|
||||
console.log(data);
|
||||
|
||||
|
||||
$('#txtRowCount1').val('');
|
||||
$('#txtDeletedRow1').val('');
|
||||
$('#SpcialInstruction').val('');
|
||||
$('#txtDeliveryAddress').val('');
|
||||
// window.location = "purchaseorderListing";
|
||||
window.location = "purchaseorderListing";
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
// Handle errors
|
||||
@ -7217,11 +7177,9 @@ $('#content').loader('hide');
|
||||
}
|
||||
});
|
||||
});
|
||||
$("#EDITREVENUE").on("shown.bs.modal", function(e) {
|
||||
|
||||
|
||||
|
||||
userid = $(e.relatedTarget).data('userid');
|
||||
$(document).ready(function() {
|
||||
$("#EDITREVENUE").on("shown.bs.modal", function(e) {
|
||||
var userid = $(e.relatedTarget).data('userid');
|
||||
|
||||
var CheckLocalInter = $('#CheckLocalInter' + userid).val();
|
||||
if (CheckLocalInter == "0") {
|
||||
@ -7289,30 +7247,24 @@ $('#content').loader('hide');
|
||||
$("#EditRevenueMaterialCode").empty();
|
||||
|
||||
$("#EditRevenueMaterialCode").append($('<option></option>').val($('#materialCode' + userid).val()).html($('#materialCode' + userid).val() + "-" + $('#materialName' + userid).val()));
|
||||
$.each(JSON.parse(materialData), function(index, value) {
|
||||
|
||||
|
||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||
|
||||
$("#EditRevenueMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||
if (typeof materialData !== 'undefined' && materialData !== null && materialData !== '') {
|
||||
var parsedMaterialData = JSON.parse(materialData);
|
||||
|
||||
$.each(parsedMaterialData, function(index, value) {
|
||||
if ($('#materialCode' + userid).val() != value.MaterialCode) {
|
||||
$("#EditRevenueMaterialCode").append($('<option></option>').val(value.MaterialCode).html(value.MaterialCode + "-" + value.MaterialName));
|
||||
}
|
||||
});
|
||||
} else {
|
||||
console.log("materialData is not defined or empty.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$("#EditDiscountType").val($('#DisType' + userid).val());
|
||||
$("#drpEditFreight").val($('#FreightType' + userid).val());
|
||||
$("#EditPackagingType").val($('#PackType' + userid).val())
|
||||
|
||||
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
$('#EditRevenueMaterialCode').change(function() {
|
||||
|
||||
@ -7387,7 +7339,7 @@ $('#content').loader('hide');
|
||||
var TotalOrderValue = $("#txtEditRevenueTotalOrderValue").val();
|
||||
var servicedescription = $("#Edit_Service_Description").val();
|
||||
var TotalTaxValue = calculateRevenueEditTaxValue();
|
||||
|
||||
var userid = $("#hiddenRevenueuserid").val();
|
||||
|
||||
var tr = document.getElementById(userid);
|
||||
var cellval = tr.cells;
|
||||
|
||||
@ -3,58 +3,13 @@
|
||||
<!-- ============================================================== -->
|
||||
<!-- Footer Start -->
|
||||
<footer class="footer">
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-5">
|
||||
<b><a href="<?php echo base_url(); ?>">RESICO </a></b> Version 2.0 | <?php echo generateCopyrightNotice(); ?>.
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<div class="text-md-right footer-links d-none d-sm-block">
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Vendor js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/vendor.min.js"></script>
|
||||
|
||||
<!-- third party js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.flash.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-select/js/dataTables.select.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/pdfmake/build/pdfmake.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/pdfmake/build/vfs_fonts.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/table-to-json/1.0.0/jquery.tabletojson.js"></script>
|
||||
|
||||
<!-- third party js ends -->
|
||||
|
||||
<!-- Datatables init -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/datatables.init.js"></script>
|
||||
|
||||
<!-- App js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/app.min.js"></script>
|
||||
|
||||
<!--Morris Chart-->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/morris.js06/morris.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/raphael/raphael.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/morris.init.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/c3/c3.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/c3.init.js"></script>
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/select2/js/select2.min.js"></script>
|
||||
|
||||
<!-- <script src="<?php echo base_url(); ?>public/new_assets/js/validation.js" type="text/javascript"></script> -->
|
||||
|
||||
</div>
|
||||
<div class="text-md-right footer-links d-none d-sm-block"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -63,12 +18,47 @@
|
||||
</div>
|
||||
<!-- END wrapper -->
|
||||
|
||||
<!-- Vendor js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/vendor.min.js"></script>
|
||||
|
||||
<!-- third party js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.flash.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-select/js/dataTables.select.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/pdfmake/build/pdfmake.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/pdfmake/build/vfs_fonts.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/table-to-json/1.0.0/jquery.tabletojson.js"></script>
|
||||
|
||||
<!-- Datatables init -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/datatables.init.js"></script>
|
||||
|
||||
<!-- App js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/app.min.js"></script>
|
||||
|
||||
<!-- Morris Chart -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/morris.js06/morris.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/raphael/raphael.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/morris.init.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/c3/c3.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/c3.init.js"></script>
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/select2/js/select2.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
|
||||
<!-- Plugins js-->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/twitter-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
|
||||
|
||||
<!-- Init js-->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/form-wizard.init.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
||||
var table = $('.ria_data_table').DataTable({
|
||||
dom: 'Blfrtip', // Buttons, length menu, filter, table, information, pagination
|
||||
buttons: [
|
||||
@ -93,58 +83,5 @@
|
||||
$('#hname').addClass('form-control');
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- Vendor js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/vendor.min.js"></script>
|
||||
|
||||
<!-- third party js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net/js/jquery.dataTables.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.flash.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/datatables.net-select/js/dataTables.select.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/pdfmake/build/pdfmake.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/pdfmake/build/vfs_fonts.js"></script>
|
||||
|
||||
<!-- third party js ends -->
|
||||
|
||||
<!-- Datatables init -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/datatables.init.js"></script>
|
||||
|
||||
<!-- App js -->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/app.min.js"></script>
|
||||
|
||||
<!--Morris Chart-->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/morris.js06/morris.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/raphael/raphael.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/morris.init.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/c3/c3.min.js"></script>
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/c3.init.js"></script>
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/select2/js/select2.min.js"></script>
|
||||
|
||||
<!-- <script src="<?php echo base_url(); ?>public/new_assets/js/validation.js" type="text/javascript"></script> -->
|
||||
|
||||
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
|
||||
|
||||
|
||||
<!-- -->
|
||||
<!-- Plugins js-->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/libs/twitter-bootstrap-wizard/jquery.bootstrap.wizard.min.js"></script>
|
||||
|
||||
<!-- Init js-->
|
||||
<script src="<?php echo base_url(); ?>public/new_assets/js/pages/form-wizard.init.js"></script>
|
||||
|
||||
<script>
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@ -481,8 +481,8 @@
|
||||
<div class="dropdown-menu" aria-labelledby="topnav-payslip">
|
||||
<a href="<?php echo base_url(); ?>monthlypay" class="dropdown-item">Monthly Pay Information </a>
|
||||
<a href="<?php echo base_url(); ?>ViewPay" class="dropdown-item">PaySlip Generator</a>
|
||||
<a href="<?php echo base_url(); ?>PaysilpListing" class="dropdown-item">Edit Payslip</a>
|
||||
<a href="<?php echo base_url(); ?>emppayListings" class="dropdown-item">Employee Salary Details</a>
|
||||
<!-- <a href="<?php echo base_url(); ?>PaysilpListing" class="dropdown-item">Edit Payslip</a> -->
|
||||
<a href="<?php echo base_url(); ?>emppayListings" class="dropdown-item">Employee Loan Details</a>
|
||||
<a href="<?php echo base_url(); ?>publicholidays" class="dropdown-item">Public Holidays</a>
|
||||
<a href="<?php echo base_url(); ?>leavereports" class="dropdown-item">Leave Reports</a>
|
||||
|
||||
|
||||
@ -84,18 +84,19 @@
|
||||
<div class="box-header">
|
||||
<!--<center><h3 class="box-title">-->
|
||||
<div class="box-tools">
|
||||
<!-- <form action="<?php echo base_url() ?>assetListing" method="POST" id="searchList">-->
|
||||
<p><b>The <span style="background-color:#ff4d4d;">Red</span> highlighted Employee have loan
|
||||
to pay. Put <span style="background-color:#66ff33;">'NA'</span> for Skip Current
|
||||
Month Loan Due.</b></p>
|
||||
<form action="<?php echo base_url() ?>monthlyListings" method="POST" id="searchList">
|
||||
</form>
|
||||
|
||||
<!-- <p><b>
|
||||
The <span style="background-color:#ff4d4d;">Red</span> highlighted Employee have loan
|
||||
to pay. Put <span style="background-color:#66ff33;">'NA'</span> for Skip Current
|
||||
Month Loan Due.
|
||||
</b></p> -->
|
||||
|
||||
</div>
|
||||
<!--</h3></center>-->
|
||||
|
||||
</div><!-- /.box-header -->
|
||||
<?php
|
||||
//print_r($sample);
|
||||
|
||||
$year = date("Y");
|
||||
$current = date("m-Y");
|
||||
|
||||
@ -295,27 +296,27 @@
|
||||
<td style="max-width:80px"><?php echo $record->TotalSalary; ?></td>
|
||||
<td style="max-width:80px">
|
||||
<?php $perDaySalary = $record->TotalSalary / $record->NoofDays;
|
||||
echo number_format($perDaySalary, 2); ?>
|
||||
echo number_format($perDaySalary, 2, '.', ''); ?>
|
||||
</td>
|
||||
<td style="max-width:80px">
|
||||
<?php $workedSalary = $perDaySalary * ($record->Days_worked + $record->sunday_count);
|
||||
echo number_format($workedSalary, 2); ?>
|
||||
echo number_format($workedSalary, 2, '.', ''); ?>
|
||||
</td>
|
||||
<td style="max-width:80px">
|
||||
<?php $perHrSalary = $perDaySalary / 8;
|
||||
echo number_format($perHrSalary, 2); ?>
|
||||
</td>
|
||||
<td style="max-width:80px"><?php echo number_format($workedSalary, 2); ?></td>
|
||||
<td style="max-width:80px"><?php echo number_format($workedSalary, 2, '.', ''); ?></td>
|
||||
<td style="max-width:80px">
|
||||
<?php $basicWorked = $workedSalary * 70 / 100;
|
||||
echo number_format($basicWorked, 2); ?>
|
||||
echo number_format($basicWorked, 2, '.', ''); ?>
|
||||
</td>
|
||||
<td style="max-width:80px">
|
||||
<?php $hraWorked = $workedSalary * 30 / 100;
|
||||
echo number_format($hraWorked, 2); ?>
|
||||
echo number_format($hraWorked, 2, '.', ''); ?>
|
||||
</td>
|
||||
<td style="max-width:80px">
|
||||
<?php echo number_format($basicWorked + $hraWorked, 2); ?></td>
|
||||
<?php echo number_format($basicWorked + $hraWorked, 2, '.', ''); ?></td>
|
||||
<td id="esiAmt<?php echo $index ?>" style="max-width:80px"> <?php echo $esi[$i]; ?> </td>
|
||||
<td id="pfAmt<?php echo $index ?>" style="max-width:80px"> <?php echo $pf[$i]; ?> </td>
|
||||
<td style="max-width:80px"> <?php echo $over_time[$i]; ?> </td>
|
||||
@ -368,6 +369,7 @@
|
||||
</td>
|
||||
|
||||
<?php $totalotherDet[] = isset($Other_Deductions) ? $Other_Deductions : []; ?>
|
||||
|
||||
<td id="Festival<?php echo $index ?>" onkeypress="return isNumber(event);"
|
||||
onkeyup="changeInput(event);"
|
||||
<?php if (empty($record->Key)) {
|
||||
@ -539,46 +541,8 @@
|
||||
i = i + 1;
|
||||
totalmonthloan[i] = $(this).find('td').eq(7).text();
|
||||
});
|
||||
//console.log(totalmonthloan);
|
||||
/* $('#monthlylisting').DataTable({
|
||||
"paging": true,
|
||||
"lengthChange": true,
|
||||
"searching": true,
|
||||
"ordering": true,
|
||||
"aaSorting": [[ 0, "asc" ]],
|
||||
"info": true,
|
||||
"autoWidth": true
|
||||
|
||||
}); */
|
||||
|
||||
|
||||
//var key = <?php echo $show_hide_column_value; ?>;
|
||||
|
||||
|
||||
//alert($('#monthyear').val());
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// show_hide_column(11,key);
|
||||
// var t = $('#monthlylistings').DataTable({
|
||||
// "columnDefs": [{
|
||||
// "searchable": false,
|
||||
// "orderable": false,
|
||||
// "targets": 0
|
||||
// }],
|
||||
// "searching": true,
|
||||
// "lengthChange": true,
|
||||
// "info": true,
|
||||
// "paging": false,
|
||||
// "autoWidth": true,
|
||||
|
||||
// // "scrollX": true,
|
||||
// "order": [
|
||||
// [1, 'asc']
|
||||
// ],
|
||||
// });
|
||||
|
||||
t.on('order.dt search.dt', function() {
|
||||
t.column(0, {
|
||||
@ -620,10 +584,19 @@
|
||||
|
||||
|
||||
function getAllData() {
|
||||
console.log("enter");
|
||||
var alldata = $("#monthlylistings").tableToJSON();
|
||||
//alert(JSON.stringify(alldata));
|
||||
alldata = JSON.stringify(alldata)
|
||||
|
||||
var alldata = $("#monthlylistings").tableToJSON();
|
||||
alldata = JSON.stringify(alldata)
|
||||
// Parse the JSON string back into an array of objects
|
||||
alldata = JSON.parse(alldata);
|
||||
|
||||
// Filter out objects where "Emp ID" is empty
|
||||
alldata = alldata.filter(function(item) {
|
||||
return item["Emp ID"].trim() !== "";
|
||||
});
|
||||
|
||||
// Convert the filtered array back to a JSON string if needed
|
||||
alldata = JSON.stringify(alldata);
|
||||
var month = $('#monthyear').val();
|
||||
// $('.content').loader('show');
|
||||
$.ajax({
|
||||
|
||||
@ -1,196 +1,6 @@
|
||||
|
||||
<?php
|
||||
|
||||
$PayOn = '';
|
||||
$EmpID = '';
|
||||
$FirstName = '';
|
||||
$LastName = '';
|
||||
$DateofBirth = '';
|
||||
$DateofJoining = '';
|
||||
$Designation = '';
|
||||
$Departmentcode = '';
|
||||
$PANNo = '';
|
||||
$AadharNo='';
|
||||
$BankAccountNo = '';
|
||||
$IFSCCode ='';
|
||||
$BankBranchName = '';
|
||||
$PFnumber = '';
|
||||
$ESInumber = '';
|
||||
$TotalNoofDays = '';
|
||||
$NoOfWorkingdays ='';
|
||||
$paidleave = 0.00;
|
||||
$LOP='';
|
||||
$ActualSalary = '';
|
||||
$PerDaySalary = '';
|
||||
$WorkedSalary = '';
|
||||
$BasicAndDA = '';
|
||||
$HRA = '';
|
||||
$OTWages = '';
|
||||
$OTPerHours ='';
|
||||
$OTSalary = '';
|
||||
$GrosssSalary = '';
|
||||
$ESI = '';
|
||||
$PF = '';
|
||||
$ESIAndPF = '';
|
||||
$SalaryAsPerPF = '';
|
||||
$FoodAllowance ='';
|
||||
$Incentive = '';
|
||||
$Festival_bonus = '';
|
||||
$TotalSalary = '';
|
||||
$Advance = '';
|
||||
$BalanceAdvance = '';
|
||||
$LessAdvance = '';
|
||||
$DeptName = '';
|
||||
$LossofPay = '0.00';
|
||||
$RecCount = '';
|
||||
$OtherDeductions='0.00';
|
||||
$LoanAdvance='0.00';
|
||||
$Otherallowances='0.00';
|
||||
$TotalAmountInWords='';
|
||||
$TotalComapanyContribution = 0.00;
|
||||
<!-- <div style= "page-break-before:always;"></div > -->
|
||||
|
||||
if(!empty($Count))
|
||||
{
|
||||
$RecCount = $Count;
|
||||
}
|
||||
|
||||
|
||||
//echo $RecCount;
|
||||
if(!empty($PayDetails))
|
||||
{
|
||||
foreach ($PayDetails as $Pay)
|
||||
{
|
||||
$Paydt = $Pay->PayOn;
|
||||
$dt = '01-'.$Paydt;
|
||||
$PayOn = date('M-Y',strtotime($dt));
|
||||
|
||||
$EmpID = $Pay->EmpID;
|
||||
$FirstName = $Pay->FName;
|
||||
$LastName = $Pay->Lname;
|
||||
|
||||
$DoB = $Pay->Dob;
|
||||
$DoJ = $Pay->DOJ;
|
||||
|
||||
$from = new DateTime($DoB);
|
||||
$dt = new DateTime($DoJ);
|
||||
$DateofBirth = $from ->format('d-m-Y');
|
||||
$DateofJoining = $dt ->format('d-m-Y');
|
||||
|
||||
$Designation = $Pay->Designation;
|
||||
$PANNo =$Pay->Pan;
|
||||
$AadharNo=$Pay->AadharNo;
|
||||
$BankAccountNo = $Pay->BankAccountNumber;
|
||||
$IFSCCode =$Pay->IFSCCode;
|
||||
$BankBranchName = $Pay->BankName;
|
||||
$PFnumber = $Pay->PFNumber;
|
||||
$ESInumber = $Pay->ESINumber;
|
||||
$TotalNoofDays = $Pay->TotalCalDays;
|
||||
$NoOfWorkingdays =$Pay->NoofDaysWorked;
|
||||
$paidleave = $Pay->Paid_Leave;
|
||||
$NoOfWorkingdays = $NoOfWorkingdays + $paidleave;
|
||||
$ActualSalary = $Pay->ActualSalary;
|
||||
$LOP=$Pay->LOP;
|
||||
$PerDaySalary = $Pay->PerDaySalary;
|
||||
$WorkedSalary = $Pay->WorkedSalary;
|
||||
$BasicAndDA = $Pay->BasicPlusDA;
|
||||
$HRA = $Pay->HRA;
|
||||
$OTWage = $Pay->OTWages;
|
||||
$OtherDeductions=$Pay->OtherDeductions;
|
||||
$LoanAdvance=$Pay->Advance;
|
||||
$TotalComapanyContribution=$Pay->TotalCompCon;
|
||||
|
||||
if($OTWage == '')
|
||||
{
|
||||
$OTWages = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$OTWages = $OTWage;
|
||||
}
|
||||
$OTPerHours =$Pay->OTperHours;
|
||||
$OTSal = $Pay->OTSalary;
|
||||
if($OTSal == '')
|
||||
{
|
||||
$OTSalary = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$OTSalary = $OTSal;
|
||||
}
|
||||
$GrosssSalary = $Pay->ESIGrossSalary;
|
||||
$ESI = $Pay->EmployeeESI;
|
||||
$PF = $Pay->PF;
|
||||
$ESIAndPF = $PF+$ESI+$OtherDeductions+$LoanAdvance;
|
||||
$SalaryAsPerPF = $Pay->SalaryAsPerPF;
|
||||
$Food =$Pay->FoodAllowance;
|
||||
$Otherallowances=$Pay->Other_allowances;
|
||||
if($Food == '')
|
||||
{
|
||||
$FoodAllowance = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$FoodAllowance = $Food;
|
||||
}
|
||||
$IncenAmt = $Pay->Incentive;
|
||||
if($IncenAmt == '')
|
||||
{
|
||||
$Incentive = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$Incentive = $IncenAmt;
|
||||
}
|
||||
$festbonus = $Pay->Festival_Bonus;
|
||||
if($festbonus == '')
|
||||
{
|
||||
$Festival_bonus = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$Festival_bonus = $festbonus;
|
||||
}
|
||||
$TotalSalary = $WorkedSalary+$HRA+$Food+$IncenAmt+$OTSal+$Otherallowances+$Festival_bonus;
|
||||
$Adv = $Pay->Advance;
|
||||
if($Adv == '')
|
||||
{
|
||||
$Advance = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$Advance = $Adv;
|
||||
}
|
||||
$BalanceAdv = $Pay->BalanceAdvance;
|
||||
if($BalanceAdv == '')
|
||||
{
|
||||
$BalanceAdvance = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$BalanceAdvance = $BalanceAdv;
|
||||
}
|
||||
$LessAdv = $Pay->LessAdvance;
|
||||
if($LessAdv == '')
|
||||
{
|
||||
$LessAdvance = '0.00';
|
||||
}
|
||||
else
|
||||
{
|
||||
$LessAdvance = $LessAdv;
|
||||
}
|
||||
$DeptName = $Pay->DeptName;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if($RecCount > 0)
|
||||
{
|
||||
?>
|
||||
|
||||
<div style= "page-break-before:always;"></div >
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
@ -200,7 +10,7 @@ if($RecCount > 0)
|
||||
|
||||
</td>
|
||||
<td colspan="10">
|
||||
<center><b>RESICO</b><br/> Survey No: 168/1C3,Pennalur Pet Road,Goonipalyam village, <br/>Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026. <br/> PaySlip for the Month of <?php echo $PayOn ?></center>
|
||||
<center><b>RESICO</b><br/> Survey No: 168/1C3,Pennalur Pet Road,Goonipalyam village, <br/>Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026. <br/> PaySlip for the Month of <?php echo $PayDetails[0]->PayOn ?></center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -209,58 +19,58 @@ if($RecCount > 0)
|
||||
<tbody>
|
||||
<tr >
|
||||
<td width="160px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Name </td>
|
||||
<td width="200px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$FirstName.' '.$LastName; ?></td>
|
||||
<td width="200px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->FName; ?></td>
|
||||
<td width="160px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Employee ID </td>
|
||||
<td width="152px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$EmpID ?></td>
|
||||
<td width="152px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->EmpID ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Designation </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;" > <?php echo ': '.$Designation ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;" > <?php echo ': '.$PayDetails[0]->Designation ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Department </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$DeptName ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->DeptName ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Date Of Joining </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$DateofJoining ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.date('d-m-Y', strtotime($PayDetails[0]->DOJ)) ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Available Calender Days </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$TotalNoofDays ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$PayDetails[0]->TotalCalDays ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Date Of Birth </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$DateofBirth ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.date('d-m-Y', strtotime($PayDetails[0]->Dob)) ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Loss Of Pay Days </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '. number_format((double)$LOP,2,'.',''); ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '. number_format((double)$PayDetails[0]->LOP,2,'.',''); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">PF Account Number </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;" ><?php echo ': '.$PFnumber ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;" ><?php echo ': '.$PayDetails[0]->PFNumber ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Paid Days </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.number_format($NoOfWorkingdays,2,'.',''); ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.number_format($PayDetails[0]->NoofDaysWorked,2,'.',''); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Bank Name </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$BankBranchName ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->BankName ?></td>
|
||||
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Loan Balance </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;" ><?php echo ': Rs '.$BalanceAdvance ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;" ><?php echo ': Rs '.$PayDetails[0]->BalanceAdvance ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Bank Account Number </td>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$BankAccountNo ?></td>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$PayDetails[0]->BankAccountNumber ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">OT In Hours </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$OTPerHours ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->OT_Hrs_Worked ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Bank IFSC </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$IFSCCode ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->IFSCCode ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">ESI Account Number </td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$ESInumber ?></td>
|
||||
<td style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"> <?php echo ': '.$PayDetails[0]->ESINumber ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">PAN Number </td>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PANNo;?> </td>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$PayDetails[0]->Pan;?> </td>
|
||||
<td width="50px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;">Aadhar Number </td>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.$AadharNo;?></td>
|
||||
<td width="100px;" style="border-left: 0px ;border-bottom: 0px; border-right: 0px ;border-top: 0px ;"><?php echo ': '.str_replace(' ', '', $PayDetails[0]->AadharNo);?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@ -270,59 +80,55 @@ if($RecCount > 0)
|
||||
<table style="border-collapse: collapse;border-top:#fff;" cellpadding="0" cellspacing="0" border="1" width="100%" >
|
||||
<tr><th>Earnings</th><th>Amount <span style="font-family: DejaVu Sans; sans-serif;">₹</span></th><th>Deductions</th><th>Amount <span style="font-family: DejaVu Sans; sans-serif;">₹</span></th></tr>
|
||||
<tr>
|
||||
<td width="25%;"> Basic Plus DA</td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $WorkedSalary ?> </td>
|
||||
<td width="25%;"> Basic </td>
|
||||
<td width="20%;" style="text-align: right;" ><?php echo $PayDetails[0]->Basic; ?> </td>
|
||||
<td width="25%;"> Provident Fund</td>
|
||||
<td width="30%;" style="text-align: right;" ><?php echo $PF ?> </td>
|
||||
<td width="30%;" style="text-align: right;" ><?php echo $PayDetails[0]->PF; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> House Rent Allowance</td>
|
||||
<td style="text-align: right;"><?php echo $HRA ?> </td>
|
||||
<td style="text-align: right;"><?php echo $PayDetails[0]->HRA; ?> </td>
|
||||
<td> Employee State Insurance</td>
|
||||
<td style="text-align: right;"> <?php echo $ESI ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Food Allowance</td>
|
||||
<td style="text-align: right;"> <?php echo $FoodAllowance ?> </td>
|
||||
<td> Loan Recovery</td>
|
||||
<td style="text-align: right;"> <?php echo $LoanAdvance ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Other Allowance</td>
|
||||
<td style="text-align: right;"> <?php echo $Otherallowances ?> </td>
|
||||
<td> Other Deduction</td>
|
||||
<td style="text-align: right;"> <?php echo $OtherDeductions ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Incentive</td>
|
||||
<td style="text-align: right;"> <?php echo $Incentive ?> </td>
|
||||
<td></td>
|
||||
<td style="text-align: right;"></td>
|
||||
|
||||
<td style="text-align: right;"> <?php echo $PayDetails[0]->ESI; ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> OT Salary</td>
|
||||
<td style="text-align: right;"> <?php echo $OTSalary ?> </td>
|
||||
<td></td>
|
||||
<td style="text-align: right;"></td>
|
||||
<td style="text-align: right;"> <?php echo $PayDetails[0]->OTSalary ?> </td>
|
||||
<td> Loan Recovery</td>
|
||||
<td style="text-align: right;"> <?php echo $PayDetails[0]->Advance ?> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> Festival Bonus</td>
|
||||
<td style="text-align: right;"><?php echo $Festival_bonus ?> </td>
|
||||
<td></td>
|
||||
<td style="text-align: right;"></td>
|
||||
<td style="text-align: right;"><?php echo $PayDetails[0]->Festival_Bonus ?> </td>
|
||||
<td> TDS Deduction</td>
|
||||
<td style="text-align: right;"> <?php echo $PayDetails[0]->OtherDeductions ?> </td>
|
||||
</tr>
|
||||
<tr><th nowrap> Total Earning (Rounded) (TE)</th>
|
||||
<td style="text-align: right;"> <?php echo number_format(round($TotalSalary),2,'.','')?> </td>
|
||||
<th nowrap> Total Deduction (Rounded)(TD)</th>
|
||||
<td style="text-align: right;"> <?php echo number_format(round($ESIAndPF),2,'.','') ?> </td>
|
||||
|
||||
|
||||
|
||||
<tr><th nowrap> Total Earning (Rounded)</th>
|
||||
<td style="text-align: right;">
|
||||
<?php
|
||||
$totEarning = $PayDetails[0]->Basic + $PayDetails[0]->HRA + $PayDetails[0]->OTSalary + $PayDetails[0]->Festival_Bonus;
|
||||
echo number_format(round($totEarning),2)
|
||||
?>
|
||||
</td>
|
||||
|
||||
<th nowrap> Total Deduction (Rounded)</th>
|
||||
<td style="text-align: right;">
|
||||
<?php
|
||||
$totDeduction = $PayDetails[0]->PF + $PayDetails[0]->ESI + $PayDetails[0]->Advance + $PayDetails[0]->OtherDeductions;
|
||||
echo number_format(round($totDeduction),2)
|
||||
?>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<tr><th style="text-align: right;" colspan="3">Net Pay (TE - TD)(Rounded) </th>
|
||||
<td style="text-align: right;" colspan="1"><?php echo number_format(round($LessAdvance),2,'.','') ?> </td>
|
||||
</tr>
|
||||
<tr><th style="text-align: right;" colspan="3">Company Contribution(Rounded) </th>
|
||||
<td style="text-align: right;" colspan="1"><?php echo number_format(round($TotalComapanyContribution),2,'.','') ?> </td>
|
||||
<tr><th style="text-align: right;" colspan="3">Net Pay(Rounded) </th>
|
||||
<td style="text-align: right;" colspan="1"><?php echo number_format(round($PayDetails[0]->TotalSalary),2,'.','') ?> </td>
|
||||
</tr>
|
||||
<!-- <tr><th style="text-align: right;" colspan="3">Company Contribution(Rounded) </th>
|
||||
<td style="text-align: right;" colspan="1"><?php ?> </td>
|
||||
</tr> -->
|
||||
<tr><th style="text-align: right;" colspan="1">Total Amount In Words </th>
|
||||
<td style="text-align: right;" colspan="3"><?php if(!empty($amtinwords)){ print_r($amtinwords);} ?></td>
|
||||
</tr>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user