Fixed error creating customer credit note: Undefined index: sales_gl_code. @notrinos.
[fa-stable.git] / manufacturing / work_order_costs.php
index b52590f4a072094d6d3636a39e47acfd0ed29e22..bd262f81138d96901c7bd48d1bd360edb20fd219 100644 (file)
@@ -68,7 +68,7 @@ if (strlen($wo_details[0]) == 0)
 
 function can_process($wo_details)
 {
-       if (!check_num('costs', 0))
+       if (input_num('costs')<=0)
        {
                display_error(_("The amount entered is not a valid number or less then zero."));
                set_focus('costs');