diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-06-24 13:27:17 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-06-24 14:22:12 -0400 |
commit | 7c2cf2ef058fe57af302e703685934418723f817 (patch) | |
tree | abb8261b1756a5ff92e1cc1c6e177dda28f7bb39 /FS/FS/Conf.pm | |
parent | cde49427a8daf716c7a59968a8d7b348d9bc5fc2 (diff) |
RT# 82137 - Added ability for processing fee to be pain on seperate invoice.
Diffstat (limited to 'FS/FS/Conf.pm')
-rw-r--r-- | FS/FS/Conf.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index d810352..ea2e133 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.'; + }, }, { |