Fix for Item Update in Items

Qty Per Pack: ($decimal) must be of type string, null given
This commit is contained in:
WShells
2024-04-16 18:16:16 +03:00
committed by jekkos
parent 9d083f2fe7
commit 5e55296ea7

View File

@@ -647,7 +647,7 @@ class Items extends Secure_Controller
$cost_price = prepare_decimal($this->request->getPost('cost_price'));
$unit_price = prepare_decimal($this->request->getPost('unit_price'));
$reorder_level = prepare_decimal($this->request->getPost('reorder_level'));
$qty_per_pack = prepare_decimal($this->request->getPost('qty_per_pack'));
$qty_per_pack = prepare_decimal($this->request->getPost('qty_per_pack') ?? '');
//Save item data
$item_data = [