projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backup and Restore: system settings has not been refreshed after restore (typo).
[fa-stable.git]
/
sales
/
manage
/
recurrent_invoices.php
diff --git
a/sales/manage/recurrent_invoices.php
b/sales/manage/recurrent_invoices.php
index f5f18f6243943bc76442cedc0edd9b187844fd7b..8a08a6d1c63d652b209346124afe2d2e18e1489a 100644
(file)
--- a/
sales/manage/recurrent_invoices.php
+++ b/
sales/manage/recurrent_invoices.php
@@
-16,9
+16,9
@@
include($path_to_root . "/includes/ui.inc");
include_once($path_to_root . "/sales/includes/sales_db.inc");
$js = "";
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);
$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);
$js .= get_js_date_picker();
page(_($help_context = "Recurrent Invoices"), false, false, "", $js);
@@
-30,10
+30,16
@@
if ($Mode=='ADD_ITEM' || $Mode=='UPDATE_ITEM')
$input_error = 0;
$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;
if (strlen($_POST['description']) == 0)
{
$input_error = 1;
- display_error(_("The
area
description cannot be empty."));
+ display_error(_("The
invoice
description cannot be empty."));
set_focus('description');
}
if (!is_date($_POST['begin'])) {
set_focus('description');
}
if (!is_date($_POST['begin'])) {
@@
-191,4
+197,3
@@
submit_add_or_update_center($selected_id == -1, '', 'both');
end_form();
end_page();
end_form();
end_page();
-?>