From: Joe Hunt Date: Tue, 5 Mar 2013 22:25:53 +0000 (+0100) Subject: When using templates for delivery and invoice, the lines and comments were missing. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d64fc8b0106e68bfcde23d351c4fefa6d35f407a;p=textcart.git When using templates for delivery and invoice, the lines and comments were missing. --- diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 50cc447..da9b9ce 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'])) {