X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_pay.cgi;h=50878f9076677da01cb0fec1df8c8fcf8397b4db;hb=4d5e45b24200386a7fc47f2cd69949e82e4bc9c3;hp=ce0ec3212a3f8d8e3ea7e958223a2dcd91aa0dbd;hpb=1c71ab4b81802a8ee9074917306d35a582349766;p=freeside.git diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi index ce0ec3212..50878f907 100755 --- a/httemplate/edit/process/cust_pay.cgi +++ b/httemplate/edit/process/cust_pay.cgi @@ -12,9 +12,9 @@ % } % if ( $link eq 'popup' ) { % -<% header(emt('Payment entered')) %> +<& /elements/header-popup.html, emt('Payment entered') &> @@ -50,6 +50,7 @@ else { my $new = new FS::cust_pay ( { $field => $linknum, _date => $_date, + no_auto_apply => ($cgi->param('apply') eq 'never') ? 'Y' : '', map { $_, scalar($cgi->param($_)); } qw( paid payby payinfo paybatch @@ -57,6 +58,8 @@ my $new = new FS::cust_pay ( { bank depositor account teller ) #} fields('cust_pay') + # gatewaynum, processor, auth, order_number + # are for realtime payments only, and can't be entered manually } ); my @rights = ('Post payment'); @@ -66,6 +69,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 );