[0000208] Voiding a work order production does not revert raw material quantities
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Feb 2010 10:51:31 +0000 (10:51 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 26 Feb 2010 10:51:31 +0000 (10:51 +0000)
Rerun of empty.po

CHANGELOG.txt
lang/new_language_template/LC_MESSAGES/empty.po
manufacturing/includes/db/work_order_produce_items_db.inc

index e184b81f06e876a44499b14086da76a83140e2c4..f1ca1c0bbfa83feb50df32ada060eed472d6a883 100644 (file)
@@ -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
index ae93a925d745bd5edf30b85f9c068ea90f336bba..d0b822fb95f4783a8f169ce9a92ee4552efc65b7 100644 (file)
@@ -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 <info@frontaccounting.net>\n"
 "Language-Team: Translators\n"
 "MIME-Version: 1.0\n"
index 6f5c001f3df137da8b039d45749195ac6b8f63a8..428508112d75d9428b950d7366b5a6886b4e1b78 100644 (file)
@@ -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");