More fixes to changed access system, activated js confirm dialogs.
[fa-stable.git] / manufacturing / work_order_costs.php
index 0d68a3f9db4e9413aac25c93f6a3b04bb999532b..b6f6ba237d74fdad8d0810fa728bb221d575b3d5 100644 (file)
@@ -9,8 +9,8 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 10;
-$path_to_root="..";
+$page_security = 'SA_WORKORDERCOST';
+$path_to_root = "..";
 include_once($path_to_root . "/includes/session.inc");
 
 include_once($path_to_root . "/includes/date_functions.inc");
@@ -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_');