summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/cust_pay.cgi
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-03-29 14:27:55 -0700
committerMark Wells <mark@freeside.biz>2012-03-29 14:32:13 -0700
commit8f43e32350b7f8a0925959f747f7296b9b42c09e (patch)
tree0ab9172972d9eea243bf7667a1c9609332769e1f /httemplate/edit/process/cust_pay.cgi
parent09bdd45e0a95601b7c51c5dbbef03793f320a61d (diff)
additional fields for cash payments, #16821
Diffstat (limited to 'httemplate/edit/process/cust_pay.cgi')
-rwxr-xr-xhttemplate/edit/process/cust_pay.cgi5
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi
index e74f9022f..06f5e64d5 100755
--- a/httemplate/edit/process/cust_pay.cgi
+++ b/httemplate/edit/process/cust_pay.cgi
@@ -28,6 +28,8 @@
%}
<%init>
+my $conf = FS::Conf->new;
+
$cgi->param('linknum') =~ /^(\d+)$/
or die "Illegal linknum: ". $cgi->param('linknum');
my $linknum = $1;
@@ -46,6 +48,7 @@ my $new = new FS::cust_pay ( {
$_, scalar($cgi->param($_));
} qw( paid payby payinfo paybatch
pkgnum discount_term
+ bank depositor account teller
)
#} fields('cust_pay')
} );
@@ -57,6 +60,6 @@ push @rights, 'Post cash payment' if $new->payby eq 'CASH';
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right(\@rights);
-my $error = $new->insert( 'manual' => 1 );
+my $error ||= $new->insert( 'manual' => 1 );
</%init>