X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=ba0bc5b6d69086a8cdcddbe4e18ab94ee37fc3c4;hb=aaace663fe7ff34479a707f3976c32010e4a1845;hp=f5b2451b0a504b8d7a7fca0c0bd77261aa02c1cf;hpb=c58774a70c3326ad2ba5a7a38b174dfbd76a9f78;p=freeside.git diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index f5b2451b0..ba0bc5b6d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -568,16 +568,20 @@ logo.eps my %msg_template_options = ( 'type' => 'select-sub', - 'options_sub' => sub { require FS::Record; - require FS::agent; - require FS::msg_template; - map { $_->msgnum, $_->msgname } - qsearch('msg_template', { disabled => '' }); - }, - 'option_sub' => sub { require FS::msg_template; + 'options_sub' => sub { + my @templates = qsearch({ + 'table' => 'msg_template', + 'hashref' => { 'disabled' => '' }, + 'extra_sql' => ' AND '. + $FS::CurrentUser::CurrentUser->agentnums_sql(null => 1), + }); + map { $_->msgnum, $_->msgname } @templates; + }, + 'option_sub' => sub { my $msg_template = FS::msg_template->by_key(shift); $msg_template ? $msg_template->msgname : '' }, + 'per_agent' => 1, ); @@ -1246,6 +1250,7 @@ and customer address. Include units.', 'section' => 'notification', 'description' => 'Send payment receipts.', 'type' => 'checkbox', + 'per_agent' => 1, }, { @@ -1271,6 +1276,7 @@ and customer address. Include units.', 'cust_pay' => 'When payment is made.', 'cust_bill_pay_pkg' => 'When payment is applied.', ], + 'per_agent' => 1, }, { @@ -1874,6 +1880,7 @@ and customer address. Include units.', 'section' => 'notification', 'description' => 'Enable emailing of credit card and electronic check decline notices.', 'type' => 'checkbox', + 'per_agent' => 1, }, { @@ -1881,6 +1888,7 @@ and customer address. Include units.', 'section' => 'notification', 'description' => 'List of error messages that should not trigger email decline notices, one per line.', 'type' => 'textarea', + 'per_agent' => 1, }, { @@ -1909,6 +1917,7 @@ and customer address. Include units.', 'section' => 'notification', 'description' => 'Enable emailing of cancellation notices. Make sure to select the template in the cancel_msgnum option.', 'type' => 'checkbox', + 'per_agent' => 1, }, { @@ -2261,6 +2270,21 @@ and customer address. Include units.', }, { + 'key' => 'selfservice_server-login_svcpart', + 'section' => 'self-service', + 'description' => 'If specified, only allow the specified svcparts to login to self-service.', + 'type' => 'select-part_svc', + 'multiple' => 1, + }, + + { + 'key' => 'selfservice_server-view-wholesale', + 'section' => 'self-service', + 'description' => 'If enabled, use a wholesale package view in the self-service.', + 'type' => 'checkbox', + }, + + { 'key' => 'selfservice-agent_signup', 'section' => 'self-service', 'description' => 'Allow agent signup via self-service.', @@ -2680,6 +2704,13 @@ and customer address. Include units.', }, { + 'key' => 'cust_pkg-group_by_location', + 'section' => 'UI', + 'description' => "Group packages by location.", + 'type' => 'checkbox', + }, + + { 'key' => 'cust_pkg-show_fcc_voice_grade_equivalent', 'section' => 'UI', 'description' => "Show a field on package definitions for assigning a DSO equivalency number suitable for use on FCC form 477.", @@ -2930,6 +2961,13 @@ and customer address. Include units.', 'type' => 'textarea', }, +# { +# 'key' => 'batch-manual_approval', +# 'section' => 'billing', +# 'description' => 'Allow manual batch closure, which will approve all payments that do not yet have a status. This is dangerous, but may be needed if your processor does not provide a list of approved payments.', +# 'type' => 'checkbox', +# }, +# { 'key' => 'payment_history-years', 'section' => 'UI', @@ -4074,6 +4112,25 @@ and customer address. Include units.', 'description' => 'Enable the alternate address format (location type, number, and kind) on qualifications', 'type' => 'checkbox', }, + + { + 'key' => 'note-classes', + 'section' => 'UI', + 'description' => 'Use customer note classes', + 'type' => 'select', + 'select_hash' => [ + 0 => 'Disabled', + 1 => 'Enabled', + 2 => 'Enabled, with tabs', + ], + }, + + { + 'key' => 'svc_acct-cf_privatekey-message', + 'section' => '', + 'description' => 'For internal use: HTML displayed when cf_privatekey field is set.', + 'type' => 'textarea', + }, { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" },