From: Joe Hunt Date: Fri, 26 Feb 2010 10:51:31 +0000 (+0000) Subject: [0000208] Voiding a work order production does not revert raw material quantities X-Git-Tag: 2.3-final~952 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=6d6052a730687e0c53e2ed649cb0cc6989d19a67;p=fa-stable.git [0000208] Voiding a work order production does not revert raw material quantities Rerun of empty.po --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index e184b81f..f1ca1c0b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +26-Feb-2010 Joe Hunt +# [0000208] Voiding a work order production does not revert raw material quantities +$ /manufacturing/includes/db/work_order_produce_items_db.inc + 25-Feb-2010 Janusz Dobrowolski # Fixed bug in quantity input $ /manufacturing/work_order_add_finished.php diff --git a/lang/new_language_template/LC_MESSAGES/empty.po b/lang/new_language_template/LC_MESSAGES/empty.po index ae93a925..d0b822fb 100644 --- a/lang/new_language_template/LC_MESSAGES/empty.po +++ b/lang/new_language_template/LC_MESSAGES/empty.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: FrontAccounting\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-02-16 15:47+0100\n" -"PO-Revision-Date: 2010-02-16 15:48+0100\n" +"POT-Creation-Date: 2010-02-25 17:05+0100\n" +"PO-Revision-Date: 2010-02-25 17:05+0100\n" "Last-Translator: Translation Team \n" "Language-Team: Translators\n" "MIME-Version: 1.0\n" diff --git a/manufacturing/includes/db/work_order_produce_items_db.inc b/manufacturing/includes/db/work_order_produce_items_db.inc index 6f5c001f..42850811 100644 --- a/manufacturing/includes/db/work_order_produce_items_db.inc +++ b/manufacturing/includes/db/work_order_produce_items_db.inc @@ -107,6 +107,8 @@ function void_work_order_produce($type_no) // deduct the quantity of this production from the parent work order work_order_update_finished_quantity($row["workorder_id"], -$row["quantity"]); + work_order_quick_costs($row['workorder_id'], $row['stock_id'], -$row['quantity'], sql2date($row['date_']), true); + // clear the production record $sql = "UPDATE ".TB_PREF."wo_manufacture SET quantity=0 WHERE id=".db_escape($type_no); db_query($sql, "Cannot void a wo production");