From: Maxime Bourget Date: Sat, 15 Jun 2013 09:37:52 +0000 (+0100) Subject: Fix delete. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ea9248d3c76c3c8d5d8dbc6a79fff19a9237af35;p=order_line_extra.git Fix delete. --- diff --git a/includes/picking.inc b/includes/picking.inc index 7e8beb3..1462b59 100644 --- a/includes/picking.inc +++ b/includes/picking.inc @@ -129,6 +129,9 @@ function update_pick($detail_id, $to_pick) { $sql = "DELETE FROM ".TB_PREF."topick WHERE detail_id = $detail_id "; + db_query($sql); + + if($to_pick ==0) return; $sql = "SELECT stk_code AS stock_id , order_no AS order_id