From: Janusz Dobrowolski Date: Tue, 29 Sep 2009 09:12:01 +0000 (+0000) Subject: Fixed sql error during sales order line update with line cancelation X-Git-Tag: v2.4.2~19^2~1192 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=492c17c6a5788def0090c1a915895cab8d75f3c4;p=fa-stable.git Fixed sql error during sales order line update with line cancelation (ported). --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f28debab..61c23aee 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +29-Sep-2009 Janusz Dobrowolski +# Fixed sql error during sales order line update with line cancelation. +$ /sales/includes/db/sales_order_db.inc + 29-Sep-2009 Joe Hunt ! Improved layout on documents etc and new empty language file. $ /doc/*.txt diff --git a/sales/includes/db/sales_order_db.inc b/sales/includes/db/sales_order_db.inc index 39c67bed..2d2e4696 100644 --- a/sales/includes/db/sales_order_db.inc +++ b/sales/includes/db/sales_order_db.inc @@ -390,9 +390,7 @@ function close_sales_order($order_no) { // set the quantity of each item to the already sent quantity. this will mark item as closed. $sql = "UPDATE ".TB_PREF."sales_order_details - SET quantity = qty_sent, - type = 0, - WHERE order_no = $order_no AND trans_type=".ST_SALESORDER.""; + SET quantity = qty_sent WHERE order_no = $order_no AND trans_type=".ST_SALESORDER.""; db_query($sql, "The sales order detail record could not be updated"); }