X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_pay.cgi;h=f9f99de7e0d47f7f209fd3fcdf5d5c7bcb8146aa;hb=ccdb2852a82946d7a9dca13345a390c31ea18d27;hp=c83f585d1a23b31d2b2520283316cfdd86956daa;hpb=fbcb45dfe5a1bce7981fe4527176b9fdf2ec54b7;p=freeside.git
diff --git a/httemplate/edit/cust_pay.cgi b/httemplate/edit/cust_pay.cgi
index c83f585d1..f9f99de7e 100755
--- a/httemplate/edit/cust_pay.cgi
+++ b/httemplate/edit/cust_pay.cgi
@@ -1,84 +1,176 @@
-<%
-#
+% if ( $link eq 'popup' ) {
+ <& /elements/header-popup.html, $title &>
+% } else {
+ <& /elements/header-cust_main.html, view=>'payment_history', custnum=>$custnum &>
+
<% $title |h %>
+% }
+
+<& /elements/init_calendar.html &>
+
+<& /elements/error.html &>
+
+
-if ( $cgi->param('error') ) {
- $link = $cgi->param('link');
- $linknum = $cgi->param('linknum');
- $paid = $cgi->param('paid');
- $payby = $cgi->param('payby');
- $payinfo = $cgi->param('payinfo');
-} elsif ($cgi->keywords) {
- my($query) = $cgi->keywords;
- $query =~ /^(\d+)$/;
- $link = 'invnum';
- $linknum = $1;
- $paid = '';
- $payby = 'BILL';
- $payinfo = "";
-} elsif ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
- $link = 'custnum';
- $linknum = $1;
- $paid = '';
- $payby = 'BILL';
- $payinfo = '';
-} else {
- die "illegal query ". $cgi->keywords;
-}
-$_date = time;
+% if ( $link eq 'popup' ) {
+