X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=29d993e944a4dc2ce5c39cc9015b99cd53235e4b;hb=9bd28ce9e715ea971b8001a8320c7d1033347888;hp=191a712a8ec870ea314c84d041c4d44912ad2d8d;hpb=11ca9a51a76837f1821b2b0e8972c78bf221c6a1;p=freeside.git
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm
index 191a712a8..29d993e94 100644
--- a/FS/FS/Conf.pm
+++ b/FS/FS/Conf.pm
@@ -705,6 +705,11 @@ sub reason_type_options {
}
}
+my $validate_email = sub { $_[0] =~
+ /^[^@]+\@[[:alnum:]-]+(\.[[:alnum:]-]+)+$/
+ ? '' : 'Invalid email address';
+ };
+
#Billing (81 items)
#Invoicing (50 items)
#UI (69 items)
@@ -1196,10 +1201,7 @@ sub reason_type_options {
'description' => 'Return address on email invoices (address only, see invoice_from_name)',
'type' => 'text',
'per_agent' => 1,
- 'validate' => sub { $_[0] =~
- /^[^@]+\@[[:alnum:]-]+(\.[[:alnum:]-]+)+$/
- ? '' : 'Invalid email address';
- }
+ 'validate' => $validate_email,
},
{
@@ -1306,7 +1308,7 @@ sub reason_type_options {
},
{
- 'key' => 'invoicehtmlwatermark',
+ 'key' => 'invoice_htmlwatermark',
'section' => 'invoicing',
'description' => 'Watermark for HTML invoices. Appears in a semitransparent positioned DIV overlaid on the main invoice container.',
'type' => 'textarea',
@@ -1502,7 +1504,7 @@ and customer address. Include units.',
},
{
- 'key' => 'invoicelatexwatermark',
+ 'key' => 'invoice_latexwatermark',
'section' => 'invoicing',
'description' => 'Watermark for LaTeX invoices. See "texdoc background" for information on what this can contain. The content itself should be enclosed in braces, optionally followed by a comma and any formatting options.',
'type' => 'textarea',
@@ -2655,6 +2657,13 @@ and customer address. Include units.',
},
{
+ 'key' => 'payment_history_msgnum',
+ 'section' => 'notification',
+ 'description' => 'Template to use for sending payment history to customer',
+ %msg_template_options,
+ },
+
+ {
'key' => 'payby',
'section' => 'billing',
'description' => 'Available payment types.',
@@ -2758,6 +2767,14 @@ and customer address. Include units.',
},
{
+ 'key' => 'dump-email_to',
+ 'section' => '',
+ 'description' => "Optional email address to send success/failure message for database dumps.",
+ 'type' => 'text',
+ 'validate' => $validate_email,
+ },
+
+ {
'key' => 'users-allow_comp',
'section' => 'deprecated',
'description' => 'DEPRECATED, enable the Complimentary customer access right instead. Was: Usernames (Freeside users, created with freeside-adduser) which can create complimentary customers, one per line. If no usernames are entered, all users can create complimentary accounts.',