diff --git a/app/Controllers/Invoice.php b/app/Controllers/Invoice.php index 4f3a7237..fd556807 100644 --- a/app/Controllers/Invoice.php +++ b/app/Controllers/Invoice.php @@ -314,7 +314,7 @@ class Invoice extends BaseController helper('session'); $where = ['isactive' => 1, 'status' => 'Approved', 'invoice_id' => (int)$id]; $details = $model->where($where)->findAll(); - if (!empty($details)) { // change + if (empty($details)) { // Array Empty Means allow to Approve. $data = ['status' => 'Approved', 'updated_by' => get_logged_user_id()]; if ($model->update($id, $data)) { $this->approve_notifications((int)$id); diff --git a/app/Views/template/footer.php b/app/Views/template/footer.php index 428f21fc..3bd2b100 100644 --- a/app/Views/template/footer.php +++ b/app/Views/template/footer.php @@ -4,8 +4,49 @@ + + +