X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=9c18fbc15d90db83ea43d7bf83e289c44b7a563c;hb=4b05b20576ddb14577d59c87c8257c6804449410;hp=6c475c5f2da8c10fe84db72d5890d1ebefb9f4ee;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index 6c475c5f2..9c18fbc15 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -1,266 +1,394 @@
-<%
- my( $cust_main ) = @_;
- my $conf = new FS::Conf;
- my $custnum = $cust_main->custnum;
-%>
-
-
Payment History
-Post cash/check payment
-| Process credit card payment
-| Process electronic check (ACH) payment
-
Post credit
-
-
-<%
+
+
+%# batched payment links
+
+% if ( ( $conf->exists('batch-enable') || $conf->config('batch-enable_payby') )
+% && $curuser->access_right('View customer batched payments')
+% )
+% {
+ <% mt('View batched payments:') |h %>
+% foreach my $status (qw( Queued In-transit Complete All )) {
+ <% mt($status) |h %>
+ <% $status ne 'All' ? '|' : '' %>
+% }
+ +% } + + |
+ ||||||||
+
+%# and now the table
+
+<& /elements/table-grid.html &>
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = '';
+
+
+<% mt('Date') |h %> |
+ <% mt('Description') |h %> |
+ <% mt('Invoice') |h %> |
+ <% mt('Payment') |h %> |
+ <% mt('In-house Credit') |h %> |
+ <% mt('Refund') |h %> |
+ <% mt('Balance') |h %> |
+ | |
+% unless ( !$target || $target{$target}++ ) { + + +% } + + <% time2str($date_format, $item->{'date'}) %> +% if ( $target && $target{$target} == 1 ) { + + +% } + + + | ++ <% $item->{'desc'} %> + | ++ <% $charge %> + | ++ <% $payment %> + | ++ <% $credit %> + | ++ <% $refund %> + | ++ <% $showbalance %> + | +