X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=c5abe59f929ac304a79fd795b0e87cd81f903c6a;hp=597e2c945340053fc92f37bcf83aa105affd1e0c;hb=5ebcddd3d2cb95a02eaba0a8fc301b9c0d7e3e73;hpb=6ceeed875a6d93495dcf0e22212e7ad86024a60b diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 597e2c945..c5abe59f9 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -2854,6 +2854,17 @@ and customer address. Include units.', }, { + 'key' => 'processing-fee_on_separate_invoice', + 'section' => 'billing', + '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' => 'payby-default', 'section' => 'UI', 'description' => 'Default payment type. HIDE disables display of billing information and sets customers to BILL.', @@ -4071,6 +4082,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.'; + }, }, {