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-Tag: 2.3-final~297^2~4 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=577d3d8612aa89660a73de2ffa14b1b16f7e9758;p=fa-stable.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 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'])) {