X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=d7269d91d5b06250159294fb6d0753c6eab2b6d2;hp=3d03252efe0b159e4b4738f6e61a47f42fb2a936;hb=c2fdce8923a09f4a586323adbb7bd0f0dfc587f2;hpb=c3b8267c100ff48f67e625a5842be74a41ec5da4 diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 3d03252ef..d7269d91d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2919,6 +2919,7 @@ and customer address. Include units.', 'section' => 'self-service', 'description' => 'Suspend reason when customers suspend their own packages. Set to nothing to disallow self-suspension.', 'type' => 'select-sub', + #false laziness w/api_credit_reason 'options_sub' => sub { require FS::Record; require FS::reason; my $type = qsearchs('reason_type', @@ -5605,6 +5606,31 @@ and customer address. Include units.', # 'type' => 'checkbox', # }, + { + 'key' => 'api_credit_reason', + 'section' => 'API', + 'description' => 'Default reason for back-office API credits', + 'type' => 'select-sub', + #false laziness w/api_credit_reason + 'options_sub' => sub { require FS::Record; + require FS::reason; + my $type = qsearchs('reason_type', + { class => 'R' }) + or return (); + map { $_->reasonnum => $_->reason } + FS::Record::qsearch('reason', + { reason_type => $type->typenum } + ); + }, + 'option_sub' => sub { require FS::Record; + require FS::reason; + my $reason = FS::Record::qsearchs( + 'reason', { 'reasonnum' => shift } + ); + $reason ? $reason->reason : ''; + }, + }, + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" },