Monthly pay info : GWM

This commit is contained in:
Gowtham M 2025-01-29 17:33:46 +05:30
parent 374912af60
commit 8b62713e9b

View File

@ -210,17 +210,17 @@ class Monthlypay_model extends Model
$count = $res[0]['count'];
}
if ($count == 0) {
$builder = $this->db->table('t_monthly_pay_inputs');
$builder->insert($data);
$i = $this->db->affectedRows();
return $i;
} elseif ($count == 1) {
$this->db->table('t_monthly_pay_inputs')
// ->where('H_date', $data['H_Date']) // ask velmurugan H_Date public hoilday table la irukku
->where('EmpID', $data['EmpID']) // temp solution
->where('Month_Year', $data['Month_Year'])
->update($data);
$i = $this->db->affectedRows();