From ab24fcc549bb72e495fb85e5dcad41bc14d85b7d Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Fri, 24 Sep 2021 17:32:43 +0200 Subject: [PATCH] Bug 5490: qty_done is not updated correctly when partial invoice is voided. Fixed by @kvvaradha. --- sales/includes/db/sales_invoice_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/includes/db/sales_invoice_db.inc b/sales/includes/db/sales_invoice_db.inc index cbafbccc..ccbcc0eb 100644 --- a/sales/includes/db/sales_invoice_db.inc +++ b/sales/includes/db/sales_invoice_db.inc @@ -259,7 +259,7 @@ function void_sales_invoice($type, $type_no) { $srcdetails = get_sales_parent_lines($type, $type_no); while ($row = db_fetch($srcdetails)) { - update_parent_line($type, $row['id'], -$row['quantity']); + update_parent_line($type, $row['id'], -$row['qty_done']); } } } -- 2.30.2