From e1ddcdca793bc615768f1cea2c06e4182d771a0e Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 25 Aug 2012 18:28:36 +0200 Subject: [PATCH] Fixed creation of invalid Direct Sales Invoice when operation is continued after previous entry cancelation. --- 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 a49ff9af..f44baf48 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -54,12 +54,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, $_GET['NewDelivery']); + create_cart(ST_CUSTDELIVERY, 0); } elseif (isset($_GET['NewInvoice']) && is_numeric($_GET['NewInvoice'])) { $_SESSION['page_title'] = _($help_context = "Direct Sales Invoice"); - create_cart(ST_SALESINVOICE, $_GET['NewInvoice']); + create_cart(ST_SALESINVOICE, 0); } elseif (isset($_GET['ModifyOrderNumber']) && is_numeric($_GET['ModifyOrderNumber'])) { -- 2.30.2