X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fmanage%2Fsuppliers.php;h=89026989718c7f136b204db5fe9cf1bc68bcc9fd;hb=2bcdab793e406bb5a44d2c4e079ec7cc2a1aa857;hp=8999fd2a2200ff416ccd2e20db8ff5e9c694b5dc;hpb=11f5f29ce63aaba4e154a5e0521321753d831654;p=fa-stable.git diff --git a/purchasing/manage/suppliers.php b/purchasing/manage/suppliers.php index 8999fd2a..89026989 100644 --- a/purchasing/manage/suppliers.php +++ b/purchasing/manage/suppliers.php @@ -167,6 +167,7 @@ function supplier_settings(&$supplier_id) end_outer_table(1); div_start('controls'); + if (@$_REQUEST['popup']) hidden('popup', 1); if ($supplier_id) { submit_center_first('submit', _("Update Supplier"), @@ -218,7 +219,7 @@ if (isset($_POST['submit'])) $_POST['website'], $_POST['supp_account_no'], $_POST['bank_account'], input_num('credit_limit', 0), $_POST['dimension_id'], $_POST['dimension2_id'], $_POST['curr_code'], $_POST['payment_terms'], $_POST['payable_account'], $_POST['purchase_account'], $_POST['payment_discount_account'], - $_POST['notes'], $_POST['tax_group_id'], get_post('tax_included', 0)); + $_POST['notes'], $_POST['tax_group_id'], check_value('tax_included')); update_record_status($_POST['supplier_id'], $_POST['inactive'], 'suppliers', 'supplier_id'); @@ -278,6 +279,7 @@ elseif (isset($_POST['delete']) && $_POST['delete'] != "") unset($_SESSION['supplier_id']); $supplier_id = ''; $Ajax->activate('_page_body'); + display_notification("#" . $_POST['supplier_id'] . " " . _("Supplier has been deleted.")); } //end if Delete supplier }