From f5bc497602c24f7e648694b032e42d22697bfa9f Mon Sep 17 00:00:00 2001 From: WShells <26513147+WebShells@users.noreply.github.com> Date: Fri, 19 Apr 2024 16:01:34 +0300 Subject: [PATCH] Fix for Sale Suspend/Unsuspend --- app/Models/Customer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Customer.php b/app/Models/Customer.php index 676b287c9..ff9903cbf 100644 --- a/app/Models/Customer.php +++ b/app/Models/Customer.php @@ -90,7 +90,7 @@ class Customer extends Person /** * Gets information about a particular customer */ - public function get_info(int $person_id): object + public function get_info(?int $person_id): object { $builder = $this->db->table('customers'); $builder->join('people', 'people.person_id = customers.person_id');