hr dan payroll

This commit is contained in:
Wian Drs
2026-09-15 10:38:43 +07:00
parent 5e1fd11410
commit 8fedd39d8f
47 changed files with 1409 additions and 370 deletions
+4 -2
View File
@@ -19,9 +19,11 @@ class JournalModel extends CI_Model
}
}
public function referenceExists($reference)
public function referenceExists($reference, $excludeId = 0)
{
return $this->db->where('no_ref', $reference)->count_all_results('journals') > 0;
$this->db->where('no_ref', $reference);
if ((int) $excludeId > 0) $this->db->where('id !=', (int) $excludeId);
return $this->db->count_all_results('journals') > 0;
}
public function sourceExists($type, $id)