summaryrefslogtreecommitdiff
path: root/httemplate/search
diff options
context:
space:
mode:
authorivan <ivan>2005-11-21 10:47:12 +0000
committerivan <ivan>2005-11-21 10:47:12 +0000
commitf10cd68f08a6bfbd565a83b40bacc3f55a1265b3 (patch)
tree2f2d35fd69cc7ea44ac4801dc6fad6278d09b7c6 /httemplate/search
parent91c861a52c70f7dd67cc2b9b2705e74640957921 (diff)
add MCRD payment type for manually processed ccards
Diffstat (limited to 'httemplate/search')
-rwxr-xr-xhttemplate/search/cust_pay.cgi4
-rw-r--r--httemplate/search/report_cust_pay.html1
2 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/search/cust_pay.cgi b/httemplate/search/cust_pay.cgi
index bf3df9846..99ffc3d20 100755
--- a/httemplate/search/cust_pay.cgi
+++ b/httemplate/search/cust_pay.cgi
@@ -17,7 +17,7 @@
if ( $cgi->param('payby') ) {
$cgi->param('payby') =~
- /^(CARD|CHEK|BILL|PREP|CASH|WEST)(-(VisaMC|Amex|Discover|Maestro))?$/
+ /^(CARD|CHEK|BILL|PREP|CASH|WEST|MCRD)(-(VisaMC|Amex|Discover|Maestro))?$/
or die "illegal payby ". $cgi->param('payby');
push @search, "cust_pay.payby = '$1'";
if ( $3 ) {
@@ -170,6 +170,8 @@
'Cash '. $cust_pay->payinfo;
} elsif ( $cust_pay->payby eq 'WEST' ) {
'Western Union'; #. $cust_pay->payinfo;
+ } elsif ( $cust_pay->payby eq 'MCRD' ) {
+ 'Manual credit card'; #. $cust_pay->payinfo;
} else {
$cust_pay->payby. ' '. $cust_pay->payinfo;
}
diff --git a/httemplate/search/report_cust_pay.html b/httemplate/search/report_cust_pay.html
index 18501d5b5..a28ead92d 100644
--- a/httemplate/search/report_cust_pay.html
+++ b/httemplate/search/report_cust_pay.html
@@ -25,6 +25,7 @@
<OPTION VALUE="PREP">prepaid card</OPTION>
<OPTION VALUE="CASH">cash</OPTION>
<OPTION VALUE="WEST">Western Union</OPTION>
+ <OPTION VALUE="MCRD">manual credit card</OPTION>
</SELECT>
</TD>
</TR>