From: Janusz Dobrowolski Date: Sat, 25 Aug 2012 16:28:36 +0000 (+0200) Subject: Fixed creation of invalid Direct Sales Invoice when operation is continued after... X-Git-Tag: 2.3-final~437 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=e1ddcdca793bc615768f1cea2c06e4182d771a0e;p=fa-stable.git Fixed creation of invalid Direct Sales Invoice when operation is continued after previous entry cancelation. --- 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'])) {