From: Janusz Dobrowolski Date: Sun, 30 Aug 2009 16:13:45 +0000 (+0000) Subject: Fixed sql error during sales order line update with line cancelation. X-Git-Tag: 2.3-final~1142 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d5f3fc03a71657b927e510d21bc5f5bf83ac129b;p=fa-stable.git Fixed sql error during sales order line update with line cancelation. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 7a08f037..0e20b436 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +30-Aug-2009 Janusz Dobrowolski +# Fixed sql error during sales order line update with line cancelation. +$ /sales/includes/db/sales_order_db.inc + ------------------------------- Release 2.1.5 ---------------------------------- 26-Aug-2009 Joe Hung ! Release 2.1.5 diff --git a/sales/includes/db/sales_order_db.inc b/sales/includes/db/sales_order_db.inc index 28aebb36..3cdceada 100644 --- a/sales/includes/db/sales_order_db.inc +++ b/sales/includes/db/sales_order_db.inc @@ -378,11 +378,9 @@ function sales_order_has_deliveries($order_no) function close_sales_order($order_no) { - // set the quantity of each item to the already sent quantity. this will mark item as closed. + // 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"; + SET quantity = qty_sent WHERE order_no = $order_no"; db_query($sql, "The sales order detail record could not be updated"); }