Clenaups in supplier credit note.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Sun, 13 Oct 2013 20:03:58 +0000 (22:03 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Sun, 13 Oct 2013 20:03:58 +0000 (22:03 +0200)
purchasing/includes/purchasing_db.inc
purchasing/includes/purchasing_ui.inc
purchasing/supplier_credit.php

index ac9e5e5e6d4991144517ba4c5527b55eb2add739..2c480c7e52c8c3c7fb9dca4615d7ba3f9942af09 100644 (file)
@@ -9,8 +9,6 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-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");
index 8014fe0a4a1a889f127c9df525d5e8797692de44..3fcfb7d2cbcb7d0b4bfc47b7a8fbbae058b1536c 100644 (file)
@@ -9,6 +9,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
+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");
index a35533218f0e2f002dd315445255e5d27b24b8ba..0894ef91433b23055ee0dad17c7a5ca6a4e32172 100644 (file)
@@ -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);