From f10cd68f08a6bfbd565a83b40bacc3f55a1265b3 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 21 Nov 2005 10:47:12 +0000 Subject: add MCRD payment type for manually processed ccards --- httemplate/view/cust_bill.cgi | 9 ++++++++- httemplate/view/cust_main/payment_history.html | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_bill.cgi b/httemplate/view/cust_bill.cgi index 8dcbd3a35..572441494 100755 --- a/httemplate/view/cust_bill.cgi +++ b/httemplate/view/cust_bill.cgi @@ -29,7 +29,7 @@ my $link = $templatename ? "$templatename-$invnum" : $invnum; )) %> <% if ( $cust_bill->owed > 0 - && ( $payby{'BILL'} || $payby{'CASH'} || $payby{'WEST'} ) + && ( $payby{'BILL'} || $payby{'CASH'} || $payby{'WEST'} || $payby{'MCRD'} ) ) { my $s = 0; @@ -58,6 +58,13 @@ my $link = $templatename ? "$templatename-$invnum" : $invnum; <% } %> + <% if ( $payby{'MCRD'} ) { %> + + <%= $s++ ? ' | ' : '' %> + manual credit card + + <% } %> + payment against this invoice
<% } %> diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index e58b6248e..f794ccf4a 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -51,6 +51,13 @@ <% } %> +<% if ( $payby{'MCRD'} ) { %> + + <%= $s++ ? ' | ' : '' %> + Post manual credit card payment + +<% } %> +
Post credit
@@ -98,6 +105,7 @@ foreach my $cust_pay ($cust_main->cust_pay) { $payby =~ s/^COMP$/Complimentary by /; $payby =~ s/^CASH$/Cash/; $payby =~ s/^WEST$/Western Union/; + $payby =~ s/^MCRD$/Manual credit card/; $payby =~ s/^BILL$//; my $info = $payby ? " ($payby$payinfo)" : ''; -- cgit v1.2.1