include_once($path_to_root . "/sales/includes/sales_db.inc");
$js = "";
-if ($use_popup_windows)
+if ($SysPrefs->use_popup_windows)
$js .= get_js_open_window(900, 600);
-if ($use_date_picker)
+if (user_use_date_picker())
$js .= get_js_date_picker();
page(_($help_context = "Recurrent Invoices"), false, false, "", $js);
$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;
end_form();
end_page();
-?>