X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=ea2e133a3c02f09fc8ecd9edf79936f76af8ebcc;hp=d81035273e2bf8a8f8d0e29ce374383dfcc991e4;hb=7c2cf2ef058fe57af302e703685934418723f817;hpb=634f70db8ca6de6776329aa3e05c16d159246546 diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index d81035273..ea2e133a3 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2700,6 +2700,17 @@ and customer address. Include units.', }, { + 'key' => 'processing-fee_on_separate_invoice', + 'section' => 'payments', + 'description' => 'Places the processing fee on a separate invoice by itself. Only works with real time processing.', + 'type' => 'checkbox', + 'validate' => sub { + my $conf = new FS::Conf; + !$conf->config('batch-enable_payby') ? '' : 'You can not set this option while batch processing is enabled.'; + }, + }, + + { 'key' => 'banned_pay-pad', 'section' => 'credit_cards', 'description' => 'Padding for encrypted storage of banned credit card hashes. If you already have new-style SHA512 entries in the banned_pay table, do not change as this will invalidate the old entries.', @@ -3854,6 +3865,11 @@ and customer address. Include units.', 'description' => 'Enable batch processing for the specified payment types.', 'type' => 'selectmultiple', 'select_enum' => [qw( CARD CHEK )], + 'validate' => sub { + ## can not create a new invoice and pay it silently with batch processing, only realtime processing. + my $conf = new FS::Conf; + !$conf->exists('processing-fee_on_separate_invoice') ? '' : 'You can not enable batch processing while processing-fee_on_separate_invoice option is enabled.'; + }, }, {