PHP 8 doesnt support with imagettfbbox. Replaced with imageftbbox. By @kvvaradha.
[fa-stable.git] / inventory / adjustments.php
index b82a61227aebfb6a840a2844b1b2b42ffe7bba7d..fe72039205790b54bec9e627f23c44a552407daa 100644 (file)
@@ -29,7 +29,7 @@ if (user_use_date_picker())
 if (isset($_GET['NewAdjustment'])) {
        if (isset($_GET['FixedAsset'])) {
                $page_security = 'SA_ASSETDISPOSAL';
-               $_SESSION['page_title'] = _($help_context = "FA Disposal");
+               $_SESSION['page_title'] = _($help_context = "Fixed Assets Disposal");
        } else {
                $_SESSION['page_title'] = _($help_context = "Item Adjustments Note");
        }
@@ -47,7 +47,7 @@ if (isset($_GET['AddedID']))
   $row = db_fetch($result);
 
   if (is_fixed_asset($row['mb_flag'])) {
-    display_notification_centered(_("FA disposal has been processed"));
+    display_notification_centered(_("Fixed Assets disposal has been processed"));
     display_note(get_trans_view_str($trans_type, $trans_no, _("&View this disposal")));
 
     display_note(get_gl_view_str($trans_type, $trans_no, _("View the GL &Postings for this Disposal")), 1, 0);
@@ -210,13 +210,16 @@ $id = find_submit('Delete');
 if ($id != -1)
        handle_delete_item($id);
 
-if (isset($_POST['AddItem']) && check_item_data())
+if (isset($_POST['AddItem']) && check_item_data()) {
        handle_new_item();
-
-if (isset($_POST['UpdateItem']) && check_item_data())
+       unset($_POST['selected_id']);
+}
+if (isset($_POST['UpdateItem']) && check_item_data()) {
        handle_update_item();
-
+       unset($_POST['selected_id']);
+}
 if (isset($_POST['CancelItemChanges'])) {
+       unset($_POST['selected_id']);
        line_start_focus();
 }
 //-----------------------------------------------------------------------------------------------