NEW LINE BUG IN INVENTORY LOCATION TRANSFER. Fixed by @detkenn.
[fa-stable.git] / inventory / transfers.php
index 0143b0b74d65f3654c438679bc8234ef92bacfd2..329925ee79f31bd1923b32367769f24a32ccdac8 100644 (file)
@@ -29,7 +29,7 @@ if (user_use_date_picker())
 if (isset($_GET['NewTransfer'])) {
        if (isset($_GET['FixedAsset'])) {
                $page_security = 'SA_ASSETTRANSFER';
-               $_SESSION['page_title'] = _($help_context = "FA Location Transfers");
+               $_SESSION['page_title'] = _($help_context = "Fixed Assets Location Transfers");
        }
        else {
                $_SESSION['page_title'] = _($help_context = "Inventory Location Transfers");
@@ -54,7 +54,7 @@ if (isset($_GET['AddedID']))
   $itm = db_fetch(get_stock_transfer_items($_GET['AddedID']));
 
   if (is_fixed_asset($itm['mb_flag']))
-         hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another FA Item Transfer"), "NewTransfer=1&FixedAsset=1");
+         hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another Fixed Assets Transfer"), "NewTransfer=1&FixedAsset=1");
   else
          hyperlink_params($_SERVER['PHP_SELF'], _("Enter &Another Inventory Transfer"), "NewTransfer=1");
 
@@ -191,6 +191,7 @@ function handle_new_item()
        if (!isset($_POST['std_cost']))
                $_POST['std_cost'] = 0;
        add_to_order($_SESSION['transfer_items'], $_POST['stock_id'], input_num('qty'), $_POST['std_cost']);
+       unset($_POST['stock_id']);
        line_start_focus();
 }