hr dan payroll
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user