X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=dimensions%2Fdimension_entry.php;h=98c1d120974f9a2b4d41faa21bff1e69b2eb685d;hb=bdeb340a0330f79b276d47252ea09ce7d9afad3c;hp=aebbc648ae97f53b4378ba5c507b6eaf708d1728;hpb=0c1ab57c09d87eed2bd248892dbfe3f256767a82;p=fa-stable.git diff --git a/dimensions/dimension_entry.php b/dimensions/dimension_entry.php index aebbc648..98c1d120 100644 --- a/dimensions/dimension_entry.php +++ b/dimensions/dimension_entry.php @@ -14,7 +14,6 @@ $path_to_root = ".."; include_once($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/includes/date_functions.inc"); -include_once($path_to_root . "/includes/manufacturing.inc"); include_once($path_to_root . "/includes/data_checks.inc"); include_once($path_to_root . "/admin/db/tags_db.inc"); @@ -93,11 +92,11 @@ if (isset($_GET['ReopenedID'])) function safe_exit() { - global $path_to_root; + global $path_to_root, $id; hyperlink_no_params("", _("Enter a &new dimension")); - echo "
"; hyperlink_no_params($path_to_root . "/dimensions/inquiry/search_dimensions.php", _("&Select an existing dimension")); + hyperlink_no_params($path_to_root . "/admin/attachments.php?filterType=40&trans_no=$id", _("&Add Attachment")); display_footer_exit(); } @@ -110,17 +109,8 @@ function can_process() if ($selected_id == -1) { - - if (!$Refs->is_valid($_POST['ref'])) - { - display_error( _("The dimension reference must be entered.")); - set_focus('ref'); - return false; - } - - if (!is_new_reference($_POST['ref'], ST_DIMENSION)) + if (!check_reference($_POST['ref'], ST_DIMENSION)) { - display_error(_("The entered reference is already in use.")); set_focus('ref'); return false; } @@ -265,7 +255,7 @@ if ($selected_id != -1) else { $_POST['dimension_tags'] = array(); - ref_row(_("Dimension Reference:"), 'ref', '', $Refs->get_next(ST_DIMENSION)); + ref_row(_("Dimension Reference:"), 'ref', '', $Refs->get_next(ST_DIMENSION), false, ST_DIMENSION); } text_row_ex(_("Name") . ":", 'name', 50, 75); @@ -307,4 +297,3 @@ end_form(); end_page(); -?>