X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Fpayment.cgi;h=5bfa29d70a4d2c8b3159838409b8d6c994e24a59;hb=908b5627cc5899b00d3b9e83602403eb956dd038;hp=90b03c7e87b465b40e7daaa2490eb763eade2eba;hpb=028c83edfa000f6bdbcd32ee3ffd5ee5561110d2;p=freeside.git
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi
index 90b03c7e8..5bfa29d70 100644
--- a/httemplate/misc/payment.cgi
+++ b/httemplate/misc/payment.cgi
@@ -1,5 +1,7 @@
-<& /elements/header.html, mt("Process [_1] payment",$type{$payby}) &>
-<& /elements/small_custview.html, $cust_main, '', '', popurl(2) . "view/cust_main.cgi" &>
+<& /elements/header-cust_main.html, view=>'payment_history', cust_main=>$cust_main &>
+
+
<% emt("Process [_1] payment",$type{$payby}) %>
+
-<& /elements/footer.html &>
+<& /elements/footer-cust_main.html &>
+<%once>
+
+my %weight = (
+ 1 => 'Primary',
+ 2 => 'Secondary',
+ 3 => 'Tertiary',
+ 4 => 'Fourth',
+ 5 => 'Fifth',
+ 6 => 'Sixth',
+ 7 => 'Seventh',
+);
+
+%once>
<%init>
die "access denied"
@@ -254,10 +344,6 @@ my $custnum = $1;
my $cust_main = qsearchs( 'cust_main', { 'custnum'=>$custnum } );
die "unknown custnum $custnum" unless $cust_main;
-my $location = $cust_main->bill_location;
-# no proper error handling on this anyway, but when we have it,
-# remember to repopulate fields in $location
-
my $balance = $cust_main->balance;
my $payinfo = '';
@@ -271,11 +357,6 @@ my %states = map { $_->state => 1 }
} );
my @states = sort { $a cmp $b } keys %states;
-my $amount = '';
-if ( $balance > 0 ) {
- $amount = $balance;
-}
-
my $payunique = "webui-payment-". time. "-$$-". rand() * 2**32;
%init>