[0000230] Incorrect 'On order' quantity of raw materials in the 'Stock Check Sheets...
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 24 May 2010 08:23:16 +0000 (08:23 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 24 May 2010 08:23:16 +0000 (08:23 +0000)
CHANGELOG.txt
reporting/rep303.php

index 37b6aaebc9a2b96e1b382e4feb7b2955980bb505..c1c6c62f0a969ca538e549aa8f53efd765b9a8bd 100644 (file)
@@ -24,6 +24,8 @@ $ -> Affected files
 ! Release 2.2.9
 $ config.default.php
   update.html
+# [0000230] Incorrect 'On order' quantity of raw materials in the 'Stock Check Sheets' report.   
+$ /reporting/rep303.php
 
 22-May-2010 Janusz Dobrowolski
 # Fixed html generationfor buttons
index 2b26c26421390d055817b71654f535219539844b..7317ecae5d04da26f4c53ae4bf60cb6788b201e2 100644 (file)
@@ -139,7 +139,9 @@ function print_stock_check()
                $demandqty = get_demand_qty($trans['stock_id'], $loc_code);
                $demandqty += get_demand_asm_qty($trans['stock_id'], $loc_code);
                $onorder = get_on_porder_qty($trans['stock_id'], $loc_code);
-               $onorder += get_on_worder_qty($trans['stock_id'], $loc_code);
+               $flag = get_mb_flag($trans['stock_id']);
+               if ($flag == 'M')
+                       $onorder += get_on_worder_qty($trans['stock_id'], $loc_code);
                if ($shortage && $trans['QtyOnHand'] - $demandqty >= 0)
                        continue;
                if ($catt != $trans['cat_description'])