! -> 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
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");
}