date_diff function name changed to date_diff for php5.3 compatibility.
[fa-stable.git] / manufacturing / work_order_add_finished.php
index 2804ea1e1fc04627a99bfe1ec75cedf903826bdd..8ba7fd6e0942c1e98a3efdb41d904d4c130a9ca1 100644 (file)
@@ -104,7 +104,7 @@ function can_process()
                set_focus('date_');
                return false;
        }
-       if (date_diff(sql2date($wo_details["released_date"]), $_POST['date_'], "d") > 0)
+       if (date_diff2(sql2date($wo_details["released_date"]), $_POST['date_'], "d") > 0)
        {
                display_error(_("The production date cannot be before the release date of the work order."));
                set_focus('date_');