From 1528943cad0e936781649f1dee6f7b778618eb60 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 13 Oct 2013 22:03:58 +0200 Subject: [PATCH] Clenaups in supplier credit note. --- purchasing/includes/purchasing_db.inc | 2 -- purchasing/includes/purchasing_ui.inc | 1 + purchasing/supplier_credit.php | 7 +++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/purchasing/includes/purchasing_db.inc b/purchasing/includes/purchasing_db.inc index ac9e5e5e..2c480c7e 100644 --- a/purchasing/includes/purchasing_db.inc +++ b/purchasing/includes/purchasing_db.inc @@ -9,8 +9,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -include_once($path_to_root . "/purchasing/includes/supp_trans_class.inc"); - include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/includes/date_functions.inc"); diff --git a/purchasing/includes/purchasing_ui.inc b/purchasing/includes/purchasing_ui.inc index 8014fe0a..3fcfb7d2 100644 --- a/purchasing/includes/purchasing_ui.inc +++ b/purchasing/includes/purchasing_ui.inc @@ -9,6 +9,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ +include_once($path_to_root . "/purchasing/includes/supp_trans_class.inc"); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index a3553321..0894ef91 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -57,11 +57,10 @@ if (isset($_GET['New'])) $help_context = "Supplier Credit Note"; $_SESSION['page_title'] = _("Supplier Credit Note"); + } else { + $help_context = "Supplier Credit Note"; + $_SESSION['page_title'] = _("Supplier Credit Note"); $_SESSION['supp_trans'] = new supp_trans(ST_SUPPCREDIT); - } elseif (isset($_GET['ModifyInvoice'])) { - $help_context = 'Modifying Purchase Invoice'; - $_SESSION['page_title'] = sprintf( _("Modifying Supplier Credit # %d"), $_GET['ModifyCredit']); - $_SESSION['supp_trans'] = new supp_trans(ST_SUPPCREDIT, $_GET['ModifyCredit']); } } page($_SESSION['page_title'], false, false, "", $js); -- 2.30.2