From 2ce73993c6b0208948fc6a804cdf74578116cdc1 Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Wed, 16 Dec 2020 11:14:29 +0000 Subject: [PATCH] Empty payments when Sales register item is edited (#3042) --- application/controllers/Sales.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/controllers/Sales.php b/application/controllers/Sales.php index 62a549cbb..6a2c25113 100644 --- a/application/controllers/Sales.php +++ b/application/controllers/Sales.php @@ -470,6 +470,8 @@ class Sales extends Secure_Controller if($this->form_validation->run() != FALSE) { $this->sale_lib->edit_item($item_id, $description, $serialnumber, $quantity, $discount, $discount_type, $price, $discounted_total); + + $this->sale_lib->empty_payments(); } else {