X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fmanage%2Frecurrent_invoices.php;h=8a08a6d1c63d652b209346124afe2d2e18e1489a;hb=7e8df3a179c05c51085349e139aac9ce88b9378d;hp=c100204c024d02fc862f6b4e7c4d909912e13588;hpb=0c1ab57c09d87eed2bd248892dbfe3f256767a82;p=fa-stable.git diff --git a/sales/manage/recurrent_invoices.php b/sales/manage/recurrent_invoices.php index c100204c..8a08a6d1 100644 --- a/sales/manage/recurrent_invoices.php +++ b/sales/manage/recurrent_invoices.php @@ -16,7 +16,7 @@ include($path_to_root . "/includes/ui.inc"); 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 (user_use_date_picker()) $js .= get_js_date_picker(); @@ -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; @@ -191,4 +197,3 @@ submit_add_or_update_center($selected_id == -1, '', 'both'); end_form(); end_page(); -?>