From: Joe Hunt Date: Fri, 25 Jul 2008 15:20:34 +0000 (+0000) Subject: Missing GL transactions when producing advanced manufacturing [0000032]. X-Git-Tag: v2.4.2~19^2~1888 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=cce0879960a3e7fa9518bb10cbc6ca901c770b18;p=fa-stable.git Missing GL transactions when producing advanced manufacturing [0000032]. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d0a193b7..b4820e98 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +25-Jul-2008 Joe Hunt +# Missing GL transactions when producing advanced manufacturing [0000032]. +$ /manufacturing/includes/db/work_order_produce_items_db.inc + 24-Jul-2008 Janusz Dobrowolski + Added fatal error handling during ajax calls - [0000003] closed $ includes/session.inc diff --git a/manufacturing/includes/db/work_order_produce_items_db.inc b/manufacturing/includes/db/work_order_produce_items_db.inc index d005772e..fd7d9655 100644 --- a/manufacturing/includes/db/work_order_produce_items_db.inc +++ b/manufacturing/includes/db/work_order_produce_items_db.inc @@ -36,6 +36,11 @@ function work_order_produce($woid, $ref, $quantity, $date_, $memo_, $close_wo) // update wo quantity and close wo if requested work_order_update_finished_quantity($woid, $quantity, $close_wo); + // ------------------------------------------------------------------------- + + work_order_quick_costs($woid, $details["stock_id"], $quantity, $date_, 0); + + // ------------------------------------------------------------------------- if ($memo_) add_comments(29, $id, $date_, $memo_);