From 577d3d8612aa89660a73de2ffa14b1b16f7e9758 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Tue, 5 Mar 2013 23:25:53 +0100 Subject: [PATCH] When using templates for delivery and invoice, the lines and comments were missing. --- sales/sales_order_entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 50cc4470..da9b9ce9 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -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'])) { -- 2.30.2