0002172: Work entry not adjusting cost, fixed
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 8 Apr 2013 08:12:17 +0000 (10:12 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 8 Apr 2013 08:12:17 +0000 (10:12 +0200)
manufacturing/includes/db/work_orders_quick_db.inc

index 9b869d0a1b935d6a94372450e139c3d02c110084..43e0d5bb1f7098409f0458583673f0d93f86352f 100644 (file)
@@ -78,7 +78,7 @@ function add_work_order_quick($wo_ref, $loc_code, $units_reqd, $stock_id, $type,
        $cost_adjust = false;
        if ($qoh < 0)
        {
-               if ($qoh + $units_reqd > 0)
+               if ($qoh + $units_reqd >= 0)
                        $cost_adjust = true;
        }