X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=641f925bca9d1a82e3a0a6fb2f15f505c80a6271;hb=155cb2a71481bdcaad6fd66bbe9d804c64d7c29d;hp=8cd8e272e80244816b6254e40b2f35c1ee13f42c;hpb=4eaa40ac850ad07504efcc34b753b325cf91bfc6;p=freeside.git diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 8cd8e272e..641f925bc 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -605,10 +605,12 @@ invoice_latexfooter invoice_latexsmallfooter invoice_latexnotes invoice_latexcoupon +invoice_latexwatermark invoice_html invoice_htmlreturnaddress invoice_htmlfooter invoice_htmlnotes +invoice_htmlwatermark logo.png logo.eps ); @@ -703,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) @@ -712,13 +719,6 @@ sub reason_type_options { @config_items = map { new FS::ConfItem $_ } ( - { - 'key' => 'address', - 'section' => 'deprecated', - 'description' => 'This configuration option is no longer used. See invoice_template instead.', - 'type' => 'text', - }, - { 'key' => 'event_log_level', 'section' => 'notification', @@ -1038,23 +1038,6 @@ sub reason_type_options { 'per_locale' => 1, }, - { - 'key' => 'deleteinvoices', - 'section' => 'UI', - 'description' => 'Enable invoices deletions. Be very careful! Deleting an invoice will remove all traces that the invoice ever existed! Normally, you would void or apply a credit against the invoice instead.', - 'type' => 'checkbox', - }, - - { - 'key' => 'deletecredits', - #not actually deprecated yet - #'section' => 'deprecated', - #'description' => 'DEPRECATED, now controlled by ACLs. Used to enable deletion of unclosed credits. Be very careful! Only delete credits that were data-entry errors, not adjustments. Optionally specify one or more comma-separated email addresses to be notified when a credit is deleted.', - 'section' => '', - 'description' => 'One or more comma-separated email addresses to be notified when a credit is deleted.', - 'type' => [qw( checkbox text )], - }, - { 'key' => 'deleterefunds', 'section' => 'billing', @@ -1062,20 +1045,6 @@ sub reason_type_options { 'type' => 'checkbox', }, - { - 'key' => 'unapplypayments', - 'section' => 'deprecated', - 'description' => 'DEPRECATED, now controlled by ACLs. Used to enable "unapplication" of unclosed payments.', - 'type' => 'checkbox', - }, - - { - 'key' => 'unapplycredits', - 'section' => 'deprecated', - 'description' => 'DEPRECATED, now controlled by ACLs. Used to enable "unapplication" of unclosed credits.', - 'type' => 'checkbox', - }, - { 'key' => 'dirhash', 'section' => 'shell', @@ -1194,10 +1163,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, }, { @@ -1303,6 +1269,15 @@ sub reason_type_options { 'per_locale' => 1, }, + { + 'key' => 'invoice_htmlwatermark', + 'section' => 'invoicing', + 'description' => 'Watermark for HTML invoices. Appears in a semitransparent positioned DIV overlaid on the main invoice container.', + 'type' => 'textarea', + 'per_agent' => 1, + 'per_locale' => 1, + }, + { 'key' => 'invoice_latex', 'section' => 'invoicing', @@ -1490,6 +1465,15 @@ and customer address. Include units.', 'per_locale' => 1, }, + { + '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', + 'per_agent' => 1, + 'per_locale' => 1, + }, + { 'key' => 'invoice_email_pdf', 'section' => 'invoicing', @@ -1553,7 +1537,7 @@ and customer address. Include units.', 'type' => 'select', 'per_agent' => 1, 'select_enum' => [ - '', 'Payable upon receipt', 'Net 0', 'Net 3', 'Net 5', 'Net 9', 'Net 10', 'Net 14', + '', 'Payable upon receipt', 'Net 0', 'Net 3', 'Net 5', 'Net 7', 'Net 9', 'Net 10', 'Net 14', 'Net 15', 'Net 18', 'Net 20', 'Net 21', 'Net 25', 'Net 30', 'Net 45', 'Net 60', 'Net 90' ], }, @@ -1647,13 +1631,6 @@ and customer address. Include units.', 'type' => 'checkbox', }, - { - 'key' => 'invoice_send_receipts', - 'section' => 'deprecated', - 'description' => 'DEPRECATED, this used to send an invoice copy on payments and credits. See the payment_receipt_email and XXXX instead.', - 'type' => 'checkbox', - }, - { 'key' => 'payment_receipt', 'section' => 'notification', @@ -1685,13 +1662,6 @@ and customer address. Include units.', 'per_agent' => 1, }, - { - 'key' => 'payment_receipt_email', - 'section' => 'deprecated', - 'description' => 'Template file for payment receipts. Payment receipts are sent to the customer email invoice destination(s) when a payment is received.', - 'type' => [qw( checkbox textarea )], - }, - { 'key' => 'payment_receipt-trigger', 'section' => 'notification', @@ -1704,6 +1674,13 @@ and customer address. Include units.', 'per_agent' => 1, }, + { + 'key' => 'refund_receipt_msgnum', + 'section' => 'notification', + 'description' => 'Template to use for manual refund receipts.', + %msg_template_options, + }, + { 'key' => 'trigger_export_insert_on_payment', 'section' => 'billing', @@ -1851,13 +1828,6 @@ and customer address. Include units.', # 'description' => 'Directory which contains domain registry information. Each registry is a directory.', # }, - { - 'key' => 'report_template', - 'section' => 'deprecated', - 'description' => 'Deprecated template file for reports.', - 'type' => 'textarea', - }, - { 'key' => 'maxsearchrecordsperpage', 'section' => 'UI', @@ -2295,6 +2265,7 @@ and customer address. Include units.', 'svc_acct' => 'Account (svc_acct)', 'svc_phone' => 'Phone number (svc_phone)', 'svc_pbx' => 'PBX (svc_pbx)', + 'none' => 'None - package only', ], }, @@ -2383,13 +2354,6 @@ and customer address. Include units.', %msg_template_options, }, - { - 'key' => 'declinetemplate', - 'section' => 'deprecated', - 'description' => 'Template file for credit card and electronic check decline emails.', - 'type' => 'textarea', - }, - { 'key' => 'emaildecline', 'section' => 'notification', @@ -2413,20 +2377,6 @@ and customer address. Include units.', %msg_template_options, }, - { - 'key' => 'cancelmessage', - 'section' => 'deprecated', - 'description' => 'Template file for cancellation emails.', - 'type' => 'textarea', - }, - - { - 'key' => 'cancelsubject', - 'section' => 'deprecated', - 'description' => 'Subject line for cancellation emails.', - 'type' => 'text', - }, - { 'key' => 'emailcancel', 'section' => 'notification', @@ -2550,39 +2500,6 @@ and customer address. Include units.', 'multiple' => 1, }, - { - 'key' => 'welcome_email', - 'section' => 'deprecated', - 'description' => 'Template file for welcome email. Welcome emails are sent to the customer email invoice destination(s) each time a svc_acct record is created.', - 'type' => 'textarea', - 'per_agent' => 1, - }, - - { - 'key' => 'welcome_email-from', - 'section' => 'deprecated', - 'description' => 'From: address header for welcome email', - 'type' => 'text', - 'per_agent' => 1, - }, - - { - 'key' => 'welcome_email-subject', - 'section' => 'deprecated', - 'description' => 'Subject: header for welcome email', - 'type' => 'text', - 'per_agent' => 1, - }, - - { - 'key' => 'welcome_email-mimetype', - 'section' => 'deprecated', - 'description' => 'MIME type for welcome email', - 'type' => 'select', - 'select_enum' => [ 'text/plain', 'text/html' ], - 'per_agent' => 1, - }, - { 'key' => 'welcome_letter', 'section' => '', @@ -2590,47 +2507,11 @@ and customer address. Include units.', 'type' => 'textarea', }, -# { -# 'key' => 'warning_msgnum', -# 'section' => 'notification', -# 'description' => 'Template to use for warning messages, sent to the customer email invoice destination(s) when a svc_acct record has its usage drop below a threshold.', -# %msg_template_options, -# }, - { - 'key' => 'warning_email', + 'key' => 'threshold_warning_msgnum', 'section' => 'notification', - 'description' => 'Template file for warning email. Warning emails are sent to the customer email invoice destination(s) each time a svc_acct record has its usage drop below a threshold or 0. See the Text::Template documentation for details on the template substitution language. The following variables are available
$username
$password
$first
$last
$pkg
$column
$amount
$threshold
$packages
allowing $packages->[0]
thru $packages->[n]
$package
the first package, same as $packages->[0]
$recurdates
allowing $recurdates->[0]
thru $recurdates->[n]
$recurdate
the first recurdate, same as $recurdate->[0]
$first
$last
$payby
$expdate
most likely only confuse
- 'type' => 'textarea',
- },
-
{
'key' => 'logo.png',
'section' => 'UI', #'invoicing' ?
@@ -4176,6 +4052,13 @@ and customer address. Include units.',
'type' => 'checkbox',
},
+# {
+# 'key' => 'password-no_reuse',
+# 'section' => 'password',
+# 'description' => 'Minimum number of password changes before a password can be reused. By default, passwords can be reused without restriction.',
+# 'type' => 'text',
+# },
+#
{
'key' => 'datavolume-forcemegabytes',
'section' => 'UI',
@@ -4300,9 +4183,10 @@ and customer address. Include units.',
reason_type_options('R'),
},
+ # was only used to negate invoices during signup when card was declined, now we just void
{
'key' => 'signup_credit_type',
- 'section' => 'billing', #self-service?
+ 'section' => 'deprecated', #self-service?
'description' => 'The group to use for new, automatically generated credit reasons resulting from signup and self-service declines.',
reason_type_options('R'),
},
@@ -4346,7 +4230,7 @@ and customer address. Include units.',
{
'key' => 'disable_previous_balance',
'section' => 'invoicing',
- 'description' => 'Disable inclusion of previous balance, payment, and credit lines on invoices.',
+ 'description' => 'Show new charges only; do not list previous invoices, payments, or credits on the invoice.',
'type' => 'checkbox',
'per_agent' => 1,
},
@@ -4493,6 +4377,13 @@ and customer address. Include units.',
'type' => 'checkbox',
},
+ {
+ 'key' => 'cust_main-no_city_in_address',
+ 'section' => 'UI',
+ 'description' => 'Turn off City for billing & shipping addresses',
+ 'type' => 'checkbox',
+ },
+
{
'key' => 'census_year',
'section' => 'UI',
@@ -4686,13 +4577,6 @@ and customer address. Include units.',
'type' => 'text',
},
- {
- 'key' => 'email_report-subject',
- 'section' => '',
- 'description' => 'Subject for reports emailed by freeside-fetch. Defaults to "Freeside report".',
- 'type' => 'text',
- },
-
{
'key' => 'selfservice-head',
'section' => 'self-service',
@@ -5794,6 +5678,20 @@ and customer address. Include units.',
'type' => 'checkbox',
},
+ {
+ 'key' => 'selfservice-enable_payment_without_balance',
+ 'section' => 'self-service',
+ 'description' => 'Allow selfservice customers to make payments even if balance is zero or below (resulting in an unapplied payment and negative balance.)',
+ 'type' => 'checkbox',
+ },
+
+ {
+ 'key' => 'selfservice-announcement',
+ 'section' => 'self-service',
+ 'description' => 'HTML announcement to display to all authenticated users on account overview page',
+ 'type' => 'textarea',
+ },
+
{
'key' => 'logout-timeout',
'section' => 'UI',
@@ -5812,13 +5710,6 @@ and customer address. Include units.',
],
},
- {
- 'key' => 'agent-email_day',
- 'section' => '',
- 'description' => 'On this day of each month, agents with master customer records containing email addresses will be emailed a list of their customers and balances.',
- 'type' => 'text',
- },
-
{
'key' => 'report-cust_pay-select_time',
'section' => 'UI',
@@ -5947,47 +5838,21 @@ and customer address. Include units.',
'type' => 'checkbox',
},
- { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "bindprimary", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "bindsecondaries", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "bsdshellmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "cyrus", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "cp_app", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "erpcdmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "icradiusmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "icradius_mysqldest", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "icradius_mysqlsource", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "icradius_secrets", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "maildisablecatchall", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "mxmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "nsmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "arecords", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "cnamerecords", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "nismachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "qmailmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "radiusmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "sendmailconfigpath", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "sendmailmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "sendmailrestart", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "shellmachine", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "shellmachine-useradd", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "shellmachine-userdel", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "shellmachine-usermod", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "shellmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "radiusprepend", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "textradiusprepend", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "username_policy", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "vpopmailmachines", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "vpopmailrestart", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "safe-part_pkg", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "selfservice_server-quiet", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "signup_server-quiet", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "signup_server-email", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "vonage-username", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "vonage-password", section => "deprecated", description => "DEPRECATED", type => "text" },
- { key => "vonage-fromnumber", section => "deprecated", description => "DEPRECATED", type => "text" },
+ {
+ 'key' => 'default_appointment_length',
+ 'section' => 'UI',
+ 'description' => 'Default appointment length, in minutes (30 minute granularity).',
+ 'type' => 'text',
+ },
+
+ # for internal use only; test databases should declare this option and
+ # everyone else should pretend it doesn't exist
+ #{
+ # 'key' => 'no_random_ids',
+ # 'section' => '',
+ # 'description' => 'Replace random identifiers in UI code with a static string, for repeatable testing. Don\'t use in production.',
+ # 'type' => 'checkbox',
+ #},
);