X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fview%2Fcust_main%2Fpayment_history.html;h=099bc4f2b5ec04d9cdacbc4b048475851c9a1c40;hp=a23ca9ac7521d1c10dde86514136f5fe7fe51e7e;hb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;hpb=da757c2af713bedd8706e30ac002658b0c97ce28
diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index a23ca9ac7..099bc4f2b 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -49,6 +49,17 @@
% }
+% if ( $conf->exists('batch-enable')
+% #&& $curuser->access_right('View customer tax exemptions')
+% ) {
+ View batched payments:
+% foreach my $status (qw( Queued In-transit Complete All )) {
+ <% $status %>
+ <% $status ne 'All' ? '|' : '' %>
+% }
+
+% }
+
%#get payment history
%my @history = ();
%
@@ -62,11 +73,21 @@
% my $link = $curuser->access_right('View invoices')
% ? qq!!
% : '';
+% my $events = '';
+% if ( $cust_bill->num_cust_event
+% && ( $curuser->access_right('Billing event reports')
+% || $curuser->access_right('View customer billing events')
+% )
+% ) {
+% $events =
+% qq!
( View invoice events )';
+% }
% push @history, {
% 'date' => $cust_bill->_date,
% 'desc' => $link. $pre.
% "Invoice #$invnum (Balance \$". $cust_bill->owed. ')'.
-% $post. ( $link ? '' : '' ),
+% $post. ( $link ? '' : '' ). $events,
% 'charge' => $cust_bill->charged,
% };
%}
@@ -372,9 +393,23 @@
% $payby =~ s/^CHEK$/Electronic check /;
% $payby =~ s/^(CARD|COMP)$/$1 /;
%
+% my $delete = '';
+% if ( $cust_refund->closed !~ /^Y/i
+% && $conf->exists('deleterefunds')
+% && $curuser->access_right('Delete refund')
+% )
+% {
+% $delete = qq! (delete)!;
+% }
+%
% push @history, {
% 'date' => $cust_refund->_date,
-% 'desc' => "Refund ($payby$payinfo) by ". $cust_refund->otaker,
+% 'desc' => "Refund ($payby$payinfo) by ". $cust_refund->otaker. "
".
+% $delete,
% 'refund' => $cust_refund->refund,
% };
%
@@ -570,4 +605,11 @@ my @payby = grep /\w/, $conf->config('payby');
unless @payby;
my %payby = map { $_=>1 } @payby;
+my %status = (
+ 'Queued' => 'O', #Open
+ 'In-transit' => 'I',
+ 'Complete' => 'R', #Resolved
+ 'All' => '',
+);
+
%init>