From f3bd5346ea752466e226bab7ef8bd9c19f545acd Mon Sep 17 00:00:00 2001 From: objecttothis Date: Fri, 17 Feb 2023 17:42:32 +0400 Subject: [PATCH] Added missing initialization of stock_location model --- app/Controllers/Reports.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Controllers/Reports.php b/app/Controllers/Reports.php index 56767e39f..c17cfe37a 100644 --- a/app/Controllers/Reports.php +++ b/app/Controllers/Reports.php @@ -62,6 +62,7 @@ class Reports extends Secure_Controller $method_name = $request->getUri()->getSegment(2); $exploder = explode('_', $method_name); $this->config = config('OSPOS')->settings; + $this->stock_location = model('Stock_location'); if(sizeof($exploder) > 1) {