X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=9c18fbc15d90db83ea43d7bf83e289c44b7a563c;hb=ea63022518b3fb7360e64aa2bb1bb0d9d56ce9d4;hp=b7621d57a12a55075b879809b53851740200a65b;hpb=41a6a1b1811e337be2fca47504ff9687b6b46cf8;p=freeside.git
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index b7621d57a..9c18fbc15 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -1,386 +1,394 @@
-<%
- my( $cust_main ) = @_;
- my $custnum = $cust_main->custnum;
-
- my $conf = new FS::Conf;
-
- my $curuser = $FS::CurrentUser::CurrentUser;
-
- my @payby = grep /\w/, $conf->config('payby');
- #@payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP ))
- @payby = (qw( CARD DCRD CHEK DCHK LECB BILL CASH COMP ))
- unless @payby;
- my %payby = map { $_=>1 } @payby;
-
- my $s = 0;
-
-%>
-
-
Payment History
-
-<% if ( $payby{'BILL'} && $curuser->access_right('Post payment') ) { %>
-
- <%= $s++ ? ' | ' : '' %>
- Post check payment
-
-<% } %>
-
-<% if ( $payby{'CASH'} && $curuser->access_right('Post payment') ) { %>
+
+
+%# 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' ? '|' : '' %>
+% }
+ +% } - <%= $s++ ? ' | ' : '' %> - Post cash payment + |
+ ||||||||
-<% } %>
+%# and now the table
-<% if ( $payby{'WEST'} && $curuser->access_right('Post payment') ) { %>
+<& /elements/table-grid.html &>
+% my $bgcolor1 = '#eeeeee';
+% my $bgcolor2 = '#ffffff';
+% my $bgcolor = '';
- <%= $s++ ? ' | ' : '' %>
- Post Western Union payment
+
+<% 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 ) { -<% } %> + +% } -<% if ( ( $payby{'CARD'} || $payby{'DCRD'} ) - && $curuser->access_right('Process payment') - ) { -%> + + | ++ <% $item->{'desc'} %> + | ++ <% $charge %> + | ++ <% $payment %> + | ++ <% $credit %> + | ++ <% $refund %> + | ++ <% $showbalance %> + | +