From b2f5a948599d3936652a410618403f369893cc2a Mon Sep 17 00:00:00 2001 From: WShells <26513147+WebShells@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:27:28 +0300 Subject: [PATCH] Fix for Quantity Update in Register ($decimal) must be of type string, null given --- app/Controllers/Sales.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index fc78dacdf..2d57e0a23 100644 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -609,7 +609,7 @@ class Sales extends Secure_Controller $raw_price = prepare_decimal($this->request->getPost('price')); $raw_quantity = prepare_decimal($this->request->getPost('quantity')); $raw_discount = prepare_decimal($this->request->getPost('discount')); - $raw_discounted_total = prepare_decimal($this->request->getPost('discounted_total')); + $raw_discounted_total = prepare_decimal($this->request->getPost('discounted_total') ?? ''); $description = $this->request->getPost('description', FILTER_SANITIZE_FULL_SPECIAL_CHARS); $serialnumber = $this->request->getPost('serialnumber', FILTER_SANITIZE_FULL_SPECIAL_CHARS);