0000799: function void_work_order misses void_bank_trans
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 13 May 2011 07:29:42 +0000 (09:29 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 13 May 2011 07:29:42 +0000 (09:29 +0200)
manufacturing/includes/db/work_orders_db.inc

index 3609fe05cb4a9e88d3508bbe8a4cb96ca44758c0..2aed7c1912876680a39523f78f77e181dc342497 100644 (file)
@@ -421,8 +421,8 @@ function void_work_order($woid)
                // void all related stock moves
                void_stock_move(ST_WORKORDER, $woid);
 
-               // void any related gl trans
-               void_gl_trans(ST_WORKORDER, $woid, true);
+               // void any related bank/gl trans
+               void_bank_trans(ST_WORKORDER, $woid, true);
 
                // clear the requirements units received
                void_wo_requirements($woid);
@@ -480,8 +480,8 @@ function void_work_order($woid)
                // void all related stock moves
                void_stock_move(ST_WORKORDER, $woid);
 
-               // void any related gl trans
-               void_gl_trans(ST_WORKORDER, $woid, true);
+               // void any related bank/gl trans
+               void_bank_trans(ST_WORKORDER, $woid, true);
 
                // clear the requirements units received
                void_wo_requirements($woid);