X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=manufacturing%2Fwork_order_costs.php;h=a76c5f5e0d90163e5affd6def3a226f039d34fdc;hb=867592526db65f6ddcb7be73bfb989901460e080;hp=4054fcbdc1cf6889cf8251e6e23ec922264a5db2;hpb=6e0c436eff1b7664473ea0dd1264b78f096a7808;p=fa-stable.git diff --git a/manufacturing/work_order_costs.php b/manufacturing/work_order_costs.php index 4054fcbd..a76c5f5e 100644 --- a/manufacturing/work_order_costs.php +++ b/manufacturing/work_order_costs.php @@ -12,19 +12,18 @@ $page_security = 'SA_WORKORDERCOST'; $path_to_root = ".."; include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/includes/inventory.inc"); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/gl/includes/db/gl_db_bank_trans.inc"); -include_once($path_to_root . "/includes/db/inventory_db.inc"); -include_once($path_to_root . "/includes/manufacturing.inc"); include_once($path_to_root . "/manufacturing/includes/manufacturing_db.inc"); include_once($path_to_root . "/manufacturing/includes/manufacturing_ui.inc"); $js = ""; -if ($use_popup_windows) +if ($SysPrefs->use_popup_windows) $js .= get_js_open_window(900, 500); -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Work Order Additional Costs"), false, false, "", $js); @@ -118,7 +117,7 @@ display_wo_details($_POST['selected_id']); //------------------------------------------------------------------------------------- if (!isset($_POST['ref'])) - $_POST['ref'] = $Refs->get_next(ST_JOURNAL); + $_POST['ref'] = $Refs->get_next(ST_JOURNAL, null, get_post('date_')); start_form(); @@ -154,4 +153,3 @@ end_form(); end_page(); -?> \ No newline at end of file