diff options
Diffstat (limited to 'FS/FS/Conf.pm')
-rw-r--r-- | FS/FS/Conf.pm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 59ccd90ab..5663c1939 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5215,6 +5215,33 @@ and customer address. Include units.', }, }, + #false laziness w/above options_sub and option_sub + { + 'key' => 'cust_location-exports', + 'section' => '', + 'description' => 'Export(s) to call on cust_location insert, modification and deletion.', + 'type' => 'select-sub', + 'multiple' => 1, + 'options_sub' => sub { + require FS::Record; + require FS::part_export; + my @part_export = + map { qsearch( 'part_export', {exporttype => $_ } ) } + keys %{FS::part_export::export_info('cust_location')}; + map { $_->exportnum => $_->exporttype.' to '.$_->machine } @part_export; + }, + 'option_sub' => sub { + require FS::Record; + require FS::part_export; + my $part_export = FS::Record::qsearchs( + 'part_export', { 'exportnum' => shift } + ); + $part_export + ? $part_export->exporttype.' to '.$part_export->machine + : ''; + }, + }, + { 'key' => 'cust_tag-location', 'section' => 'UI', |