date_diff function name changed to date_diff for php5.3 compatibility.
[fa-stable.git] / manufacturing / work_order_costs.php
index 107c073bb97c7d73a884b501b58568b5c1f1a111..b6f6ba237d74fdad8d0810fa728bb221d575b3d5 100644 (file)
@@ -89,7 +89,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 additional cost date cannot be before the release date of the work order."));
                set_focus('date_');