From: Janusz Dobrowolski Date: Sun, 13 Oct 2013 20:03:58 +0000 (+0200) Subject: Clenaups in supplier credit note. X-Git-Tag: v2.4.2~19^2~329^2~1 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=1528943cad0e936781649f1dee6f7b778618eb60;p=fa-stable.git Clenaups in supplier credit note. --- 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);