Old Sales Quote Reference Fix
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 30 Aug 2017 06:26:50 +0000 (08:26 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 30 Aug 2017 06:26:50 +0000 (08:26 +0200)
sales/includes/cart_class.inc
sales/view/view_sales_order.php

index 6296e5ccc1188c17e4dd72c06c84a178ac67a3b7..13f383bfb8b70ff3e43634c7c25612bc475bb34c 100644 (file)
@@ -21,7 +21,7 @@ iv)  a delivery note
 include_once($path_to_root . "/inventory/includes/inventory_db.inc");
 include_once($path_to_root . "/taxes/tax_calc.inc");
 
-class cart
+class Cart
 {
        var $trans_type; // invoice, order, quotation, delivery note ...
        var $trans_no = array();// array (num1=>ver1,..) or 0 for new
index 5aa606d91f06744b0ca9fb450478f9a3c5c4fddf..1c3d95b43f68c6d901f8943f48ef35d4ab300289 100644 (file)
@@ -39,7 +39,7 @@ if (isset($_SESSION['View']))
        unset ($_SESSION['View']);
 }
 
-$_SESSION['View'] = new Cart($_GET['trans_type'], $_GET['trans_no'], true);
+$_SESSION['View'] = new Cart($_GET['trans_type'], $_GET['trans_no']);
 
 start_table(TABLESTYLE2, "width='95%'", 5);
 
@@ -93,7 +93,7 @@ label_row(_("Delivery Address"), nl2br($_SESSION['View']->delivery_address),
        "class='tableheader2'", "colspan=3");
 label_row(_("Reference"), $_SESSION['View']->reference, "class='tableheader2'", "colspan=3");
 label_row(_("Telephone"), $_SESSION['View']->phone, "class='tableheader2'", "colspan=3");
-;label_row(_("E-mail"), "<a href='mailto:" . $_SESSION['View']->email . "'>" . $_SESSION['View']->email . "</a>",
+label_row(_("E-mail"), "<a href='mailto:" . $_SESSION['View']->email . "'>" . $_SESSION['View']->email . "</a>",
        "class='tableheader2'", "colspan=3");
 label_row(_("Comments"), nl2br($_SESSION['View']->Comments), "class='tableheader2'", "colspan=3");
 end_table();