From 4d0af8b82d4b4cc85cee402e4ab8a4942f4d06a7 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 4 Jan 2015 17:19:10 +0100 Subject: [PATCH] Additional validation check on template order during recurrent invoice definition entry. --- sales/manage/recurrent_invoices.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sales/manage/recurrent_invoices.php b/sales/manage/recurrent_invoices.php index 0e27a11b..bce635a8 100644 --- a/sales/manage/recurrent_invoices.php +++ b/sales/manage/recurrent_invoices.php @@ -30,6 +30,12 @@ if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM') $input_error = 0; + if (strlen($_POST['order_no']) == 0) + { + $input_error = 1; + display_error(_("No order has been selected as a template for recurrent invoicing.")); + set_focus('order_no'); + } if (strlen($_POST['description']) == 0) { $input_error = 1; -- 2.30.2