From 5d9a5e54a74950b0e62264abcd53e77607f04b48 Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 4 Feb 2007 01:47:51 +0000 Subject: add link to some batched payment info to customer view --- httemplate/view/cust_main/payment_history.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'httemplate/view') diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index 43c55e8c9..b2d98cc55 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 = (); % @@ -584,4 +595,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' => '', +); + -- cgit v1.2.1