From: Joe Hunt Date: Fri, 24 Sep 2021 15:32:43 +0000 (+0200) Subject: Bug 5490: qty_done is not updated correctly when partial invoice is voided. Fixed... X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=ab24fcc549bb72e495fb85e5dcad41bc14d85b7d Bug 5490: qty_done is not updated correctly when partial invoice is voided. Fixed by @kvvaradha. --- 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']); } } }