Monthly pay info : GWM
This commit is contained in:
parent
374912af60
commit
8b62713e9b
@ -210,17 +210,17 @@ class Monthlypay_model extends Model
|
|||||||
$count = $res[0]['count'];
|
$count = $res[0]['count'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($count == 0) {
|
if ($count == 0) {
|
||||||
$builder = $this->db->table('t_monthly_pay_inputs');
|
$builder = $this->db->table('t_monthly_pay_inputs');
|
||||||
$builder->insert($data);
|
$builder->insert($data);
|
||||||
$i = $this->db->affectedRows();
|
$i = $this->db->affectedRows();
|
||||||
return $i;
|
return $i;
|
||||||
} elseif ($count == 1) {
|
} elseif ($count == 1) {
|
||||||
|
|
||||||
$this->db->table('t_monthly_pay_inputs')
|
$this->db->table('t_monthly_pay_inputs')
|
||||||
// ->where('H_date', $data['H_Date']) // ask velmurugan H_Date public hoilday table la irukku
|
// ->where('H_date', $data['H_Date']) // ask velmurugan H_Date public hoilday table la irukku
|
||||||
->where('EmpID', $data['EmpID']) // temp solution
|
->where('EmpID', $data['EmpID']) // temp solution
|
||||||
|
->where('Month_Year', $data['Month_Year'])
|
||||||
->update($data);
|
->update($data);
|
||||||
|
|
||||||
$i = $this->db->affectedRows();
|
$i = $this->db->affectedRows();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user