From: Janusz Dobrowolski Date: Sun, 4 Jan 2015 16:19:10 +0000 (+0100) Subject: Additional validation check on template order during recurrent invoice definition... X-Git-Tag: v2.4.2~19^2~285 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=4d0af8b82d4b4cc85cee402e4ab8a4942f4d06a7;p=fa-stable.git Additional validation check on template order during recurrent invoice definition entry. --- 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;