From 5ebcddd3d2cb95a02eaba0a8fc301b9c0d7e3e73 Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Mon, 24 Jun 2019 13:27:17 -0400 Subject: RT# 82137 - Added ability for processing fee to be pain on seperate invoice. Conflicts: FS/FS/Conf.pm httemplate/elements/tr-select-payment_options.html --- httemplate/config/config-process.cgi | 6 ++++-- httemplate/elements/tr-amount_fee.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'httemplate') diff --git a/httemplate/config/config-process.cgi b/httemplate/config/config-process.cgi index d84edce00..6af7d2322 100644 --- a/httemplate/config/config-process.cgi +++ b/httemplate/config/config-process.cgi @@ -155,7 +155,9 @@ foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { } } elsif ( $type eq 'checkbox' ) { if ( defined $cgi->param($i->key.$n) ) { - push @touch, $i->key; + my $error = &{$i->validate}('', $n) if $i->validate; + push @error, $error if $error; + push @touch, $i->key if !$error; } else { push @delete, $i->key; } @@ -167,7 +169,7 @@ foreach my $type ( ref($i->type) ? @{$i->type} : $i->type ) { if ( scalar(@{[ $cgi->param($i->key.$n) ]}) && $cgi->param($i->key.$n) ne '' ) { my $error = &{$i->validate}([ $cgi->param($i->key.$n) ], $n) if $i->validate; push @error, $error if $error; - $conf->set($i->key, join("\n", @{[ $cgi->param($i->key.$n) ]} ), $agentnum); + $conf->set($i->key, join("\n", @{[ $cgi->param($i->key.$n) ]} ), $agentnum) if !$error; } else { $conf->delete($i->key, $agentnum); } diff --git a/httemplate/elements/tr-amount_fee.html b/httemplate/elements/tr-amount_fee.html index 1cd59bbc3..31877f119 100644 --- a/httemplate/elements/tr-amount_fee.html +++ b/httemplate/elements/tr-amount_fee.html @@ -38,7 +38,7 @@
- + Apply a processing fee of <% $processing_fee %> . -- cgit v1.2.1