X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=b3e54778bbdef3769f83559aace197485411c164;hp=ce8bd296e3663a3f728ac2eb57b94d13828273a9;hb=74a3083375ccc3a0dc8b74f9b39392989d088656;hpb=995a145c931164347683071c95c6754379d36604 diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index ce8bd296e..b3e54778b 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1241,6 +1241,13 @@ and customer address. Include units.', }, { + 'key' => 'payment_receipt', + 'section' => 'notification', + 'description' => 'Send payment receipts.', + 'type' => 'checkbox', + }, + + { 'key' => 'payment_receipt_msgnum', 'section' => 'notification', 'description' => 'Template to use for payment receipts.', @@ -1308,7 +1315,12 @@ and customer address. Include units.', 'editlist_parts' => [ { type=>'text' }, { type=>'immutable', value=>'IN' }, { type=>'select', - select_enum=>{ map { $_=>$_ } qw(A CNAME MX NS TXT)} }, + select_enum => { + map { $_=>$_ } + #@{ FS::domain_record->rectypes } + qw(A AAAA CNAME MX NS PTR SPF SRV TXT) + }, + }, { type=> 'text' }, ], }, @@ -1361,7 +1373,20 @@ and customer address. Include units.', 'key' => 'referraldefault', 'section' => 'UI', 'description' => 'Default referral, specified by refnum', - 'type' => 'text', + 'type' => 'select-sub', + 'options_sub' => sub { require FS::Record; + require FS::part_referral; + map { $_->refnum => $_->referral } + FS::Record::qsearch( 'part_referral', + { 'disabled' => '' } + ); + }, + 'option_sub' => sub { require FS::Record; + require FS::part_referral; + my $part_referral = FS::Record::qsearchs( + 'part_referral', { 'refnum'=>shift } ); + $part_referral ? $part_referral->referral : ''; + }, }, # { @@ -1762,6 +1787,7 @@ and customer address. Include units.', 'select_hash' => [ 'svc_acct' => 'Account (svc_acct)', 'svc_phone' => 'Phone number (svc_phone)', + 'svc_pbx' => 'PBX (svc_pbx)', ], }, @@ -2220,6 +2246,32 @@ and customer address. Include units.', }, { + 'key' => 'selfservice-agent_signup', + 'section' => 'self-service', + 'description' => 'Allow agent signup via self-service.', + 'type' => 'checkbox', + }, + + { + 'key' => 'selfservice-agent_signup-agent_type', + 'section' => 'self-service', + 'description' => 'Agent type when allowing agent signup via self-service.', + 'type' => 'select-sub', + 'options_sub' => sub { require FS::Record; + require FS::agent_type; + map { $_->typenum => $_->atype } + FS::Record::qsearch('agent_type', {} ); # disabled=>'' } ); + }, + 'option_sub' => sub { require FS::Record; + require FS::agent_type; + my $agent = FS::Record::qsearchs( + 'agent_type', { 'typenum'=>shift } + ); + $agent_type ? $agent_type->atype : ''; + }, + }, + + { 'key' => 'card_refund-days', 'section' => 'billing', 'description' => 'After a payment, the number of days a refund link will be available for that payment. Defaults to 120.', @@ -3111,6 +3163,26 @@ and customer address. Include units.', }, { + 'key' => 'prepayment_discounts-credit_type', + 'section' => 'billing', + 'description' => 'Enables the offering of prepayment discounts and establishes the credit reason type.', + 'type' => 'select-sub', + 'options_sub' => sub { require FS::Record; + require FS::reason_type; + map { $_->typenum => $_->type } + FS::Record::qsearch('reason_type', { class=>'R' } ); + }, + 'option_sub' => sub { require FS::Record; + require FS::reason_type; + my $reason_type = FS::Record::qsearchs( + 'reason_type', { 'typenum' => shift } + ); + $reason_type ? $reason_type->type : ''; + }, + + }, + + { 'key' => 'cust_main-agent_custid-format', 'section' => '', 'description' => 'Enables searching of various formatted values in cust_main.agent_custid', @@ -3199,7 +3271,7 @@ and customer address. Include units.', 'section' => 'UI', 'description' => 'The year to use in census tract lookups', 'type' => 'select', - 'select_enum' => [ qw( 2009 2008 2007 2006 ) ], + 'select_enum' => [ qw( 2010 2009 2008 ) ], }, { @@ -3245,6 +3317,13 @@ and customer address. Include units.', }, { + 'key' => 'cust_main-title-display_custnum', + 'section' => 'UI', + 'description' => 'Add the display_custom (agent_custid or custnum) to the title on customer view pages.', + 'type' => 'checkbox', + }, + + { 'key' => 'cust_bill-default_agent_invid', 'section' => 'UI', 'description' => 'Display the agent_invid field when available instead of the invnum field.', @@ -3269,6 +3348,13 @@ and customer address. Include units.', }, { + 'key' => 'order_pkg-no_start_date', + 'section' => 'UI', + 'description' => 'Don\'t set a default start date for new packages.', + 'type' => 'checkbox', + }, + + { 'key' => 'mcp_svcpart', 'section' => '', 'description' => 'Master Control Program svcpart. Leave this blank.', @@ -3891,6 +3977,19 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'cust_main-custom_link', + 'section' => 'UI', + 'description' => 'URL to use as source for the "Custom" tab in the View Customer page. The custnum will be appended.', + 'type' => 'text', + }, + + { + 'key' => 'cust_main-custom_title', + 'section' => 'UI', + 'description' => 'Title for the "Custom" tab in the View Customer page.', + 'type' => 'text', + }, { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" },