[0000712] Work Order issue with 0 qty is accepted
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 12 Apr 2011 13:40:54 +0000 (15:40 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 12 Apr 2011 13:40:54 +0000 (15:40 +0200)
manufacturing/work_order_issue.php

index 236d4ab5c2f02feb2c04ebdae8a330688d8a7a8c..c7d1cd7cc5d43b15b14f31652f880f078e541d01 100644 (file)
@@ -136,7 +136,7 @@ if (isset($_POST['Process']) && can_process())
 
 function check_item_data()
 {
-       if (!check_num('qty', 0))
+       if (input_num('qty') == 0 || !check_num('qty', 0))
        {
                display_error(_("The quantity entered is negative or invalid."));
                set_focus('qty');