When using templates for delivery and invoice, the lines and comments were missing.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 5 Mar 2013 22:25:53 +0000 (23:25 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Tue, 5 Mar 2013 22:25:53 +0000 (23:25 +0100)
sales/sales_order_entry.php

index 50cc4470c5cd731199ee9b2a851f5742d6e048bb..da9b9ce9a275b94a72ae8c3a1534eeaec92d6ae3 100644 (file)
@@ -62,12 +62,12 @@ if ($use_date_picker) {
 if (isset($_GET['NewDelivery']) && is_numeric($_GET['NewDelivery'])) {
 
        $_SESSION['page_title'] = _($help_context = "Direct Sales Delivery");
-       create_cart(ST_CUSTDELIVERY, 0);
+       create_cart(ST_CUSTDELIVERY, $_GET['NewDelivery']);
 
 } elseif (isset($_GET['NewInvoice']) && is_numeric($_GET['NewInvoice'])) {
 
        $_SESSION['page_title'] = _($help_context = "Direct Sales Invoice");
-       create_cart(ST_SALESINVOICE, 0);
+       create_cart(ST_SALESINVOICE, $_GET['NewInvoice']);
 
 } elseif (isset($_GET['ModifyOrderNumber']) && is_numeric($_GET['ModifyOrderNumber'])) {