From: Janusz Dobrowolski Date: Fri, 13 Feb 2015 10:04:24 +0000 (+0100) Subject: Removed sparse update_stock_move_pid function. X-Git-Tag: v2.4.2~19^2~251 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=ae7f824b56286a83b547afc89ab3bbc26c5cc23c Removed sparse update_stock_move_pid function. --- diff --git a/includes/db/inventory_db.inc b/includes/db/inventory_db.inc index 1c4d8d07..225499d4 100644 --- a/includes/db/inventory_db.inc +++ b/includes/db/inventory_db.inc @@ -381,16 +381,6 @@ function update_stock_move($type, $trans_no, $stock_id, $cost) db_query($sql, "The stock movement standard_cost cannot be updated"); } -function update_stock_move_pid($type, $type_no, $stock_id, $pid, $cost) -{ - $sql = "UPDATE ".TB_PREF."stock_moves SET standard_cost=".db_escape($cost) - ." WHERE type=".db_escape($type) - ." AND trans_no=".db_escape($type_no) - ." AND stock_id=".db_escape($stock_id) - ." AND person_id = ".db_escape($pid); - db_query($sql, "The stock movement standard_cost cannot be updated"); -} - //-------------------------------------------------------------------------------------------------- function get_stock_moves($type, $type_no, $visible=false) diff --git a/purchasing/includes/db/invoice_db.inc b/purchasing/includes/db/invoice_db.inc index 8193f0dd..dd172395 100644 --- a/purchasing/includes/db/invoice_db.inc +++ b/purchasing/includes/db/invoice_db.inc @@ -610,16 +610,9 @@ function void_supp_invoice($type, $type_no) add_audit_trail(ST_JOURNAL, $id, $old_date); add_comments(ST_JOURNAL, $id, $old_date, $memo); - $Refs->save(ST_JOURNAL, $id, $ref); - } - } - /*$deliveries = get_deliveries_between($details_row["stock_id"], $old_date, $date_); - if ($deliveries[0] != 0) // have deliveries been done during the period? - { - update_stock_move_pid(ST_CUSTDELIVERY, $details_row["stock_id"], $old_date, $date_, 0, $mat_cost); + $Refs->save(ST_JOURNAL, $id, $ref); + } } - update_stock_move_pid(ST_SUPPRECEIVE, $details_row["stock_id"], $old_date, $old_date, $grn['supplier_id'], $mat_cost); - */ } } }