X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=c436413d60510a7fc21dacd541d3bb9e0ec8c95f;hb=955c17771c7aa05a2609309809809be37f4c8267;hp=fdb6e9a38d9513ab8560ab32068c20434f00b430;hpb=720cf723d2c8e88760704e2fdc50ebf48e0574f2;p=freeside.git diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index fdb6e9a38..c436413d6 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1361,7 +1361,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 : ''; + }, }, # { @@ -3245,6 +3258,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.',