[freeside-commits] freeside/httemplate/edit cust_pay.cgi,1.21,1.22
Ivan,,,
ivan at wavetail.420.am
Sun Aug 13 03:26:00 PDT 2006
- Previous message: [freeside-commits]
freeside/httemplate/view/cust_main misc.html, 1.2,
1.3 billing.html, 1.5, 1.6 payment_history.html, 1.12,
1.13 packages.html, 1.6, 1.7 tickets.html, 1.5, 1.6
- Next message: [freeside-commits] freeside/httemplate/edit/process cust_pay.cgi,
1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv20875/httemplate/edit
Modified Files:
cust_pay.cgi
Log Message:
customer view work:
DONE 1. add status and balance to top
DONE 2. add some sort of oldest date thing so the history doesn't get too
big (# years and a link to "show older")
3. make the rest of the action links into js popups? maybe later,
weird IENess when closing em
DONE (finished) - so revert out or finish/commit the Enter check payment one
- Process page can wait until another day.. it should be more of an *action*
DONE 4. Ticket list config knobs for wtxs (grid it too)
DONE 5. grid the package list
Index: cust_pay.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_pay.cgi,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- cust_pay.cgi 7 Feb 2006 11:12:29 -0000 1.21
+++ cust_pay.cgi 13 Aug 2006 10:25:58 -0000 1.22
@@ -9,22 +9,20 @@
'MCRD' => 'Manual credit card',
);
-my($link, $linknum, $paid, $payby, $payinfo, $quickpay, $_date);
+my($link, $linknum, $paid, $payby, $payinfo, $_date);
if ( $cgi->param('error') ) {
$link = $cgi->param('link');
$linknum = $cgi->param('linknum');
$paid = $cgi->param('paid');
$payby = $cgi->param('payby');
$payinfo = $cgi->param('payinfo');
- $quickpay = $cgi->param('quickpay');
$_date = $cgi->param('_date') ? str2time($cgi->param('_date')) : time;
} elsif ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
- $link = 'custnum';
+ $link = $cgi->param('popup') ? 'popup' : 'custnum';
$linknum = $1;
$paid = '';
$payby = $cgi->param('payby') || 'BILL';
$payinfo = '';
- $quickpay = $cgi->param('quickpay');
$_date = time;
} elsif ( $cgi->param('invnum') =~ /^(\d+)$/ ) {
$link = 'invnum';
@@ -32,7 +30,6 @@
$paid = '';
$payby = $cgi->param('payby') || 'BILL';
$payinfo = "";
- $quickpay = '';
$_date = time;
} else {
die "illegal query ". $cgi->keywords;
@@ -43,9 +40,15 @@
my $title = 'Post '. $payby{$payby}. ' payment';
$title .= " against Invoice #$linknum" if $link eq 'invnum';
-%>
+if ( $link eq 'popup' ) {
-<%= include("/elements/header.html",$title, '') %>
+%><%= include('/elements/header-popup.html', $title ) %>
+
+<% } else { %>
+
+<%= include("/elements/header.html", $title, '') %>
+
+<% } %>
<% if ( $cgi->param('error') ) { %>
<FONT SIZE="+1" COLOR="#ff0000">Error: <%= $cgi->param('error') %></FONT>
@@ -60,7 +63,6 @@
<FORM ACTION="<%= popurl(1) %>process/cust_pay.cgi" METHOD=POST>
<INPUT TYPE="hidden" NAME="link" VALUE="<%= $link %>">
<INPUT TYPE="hidden" NAME="linknum" VALUE="<%= $linknum %>">
-<INPUT TYPE="hidden" NAME="quickpay" VALUE="<%= $quickpay %>">
<%
my $money_char = $conf->config('money_char') || '$';
@@ -74,7 +76,9 @@
}
%>
+<% unless ( $link eq 'popup' ) { %>
<%= small_custview($custnum, $conf->config('countrydefault')) %>
+<% } %>
<INPUT TYPE="hidden" NAME="payby" VALUE="<%= $payby %>">
- Previous message: [freeside-commits]
freeside/httemplate/view/cust_main misc.html, 1.2,
1.3 billing.html, 1.5, 1.6 payment_history.html, 1.12,
1.13 packages.html, 1.6, 1.7 tickets.html, 1.5, 1.6
- Next message: [freeside-commits] freeside/httemplate/edit/process cust_pay.cgi,
1.9, 1.10
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list