projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
option to show payment history in reverse order, #19698
[freeside.git]
/
httemplate
/
view
/
cust_main
/
payment_history.html
diff --git
a/httemplate/view/cust_main/payment_history.html
b/httemplate/view/cust_main/payment_history.html
index
7701cb6
..
66008ee
100644
(file)
--- a/
httemplate/view/cust_main/payment_history.html
+++ b/
httemplate/view/cust_main/payment_history.html
@@
-263,7
+263,7
@@
%my $old_history = 0;
%my $lastdate = 0;
%
%my $old_history = 0;
%my $lastdate = 0;
%
-%foreach my $item (
sort { $a->{'date'} <=> $b->{'date'} }
@history ) {
+%foreach my $item ( @history ) {
%
% $lastdate = $item->{'date'};
%
%
% $lastdate = $item->{'date'};
%
@@
-533,6
+533,13
@@
foreach my $cust_refund ($cust_main->cust_refund) {
}
}
+# sort history
+if ( $curuser->option('history_order') eq 'newest' ) {
+ @history = sort { $b->{date} <=> $a->{date} } @history;
+} else {
+ @history = sort { $a->{date} <=> $b->{date} } @history;
+} # no other sort orders for now
+
sub translate_payby {
my ($payby,$payinfo) = (shift,shift);
my %payby = (
sub translate_payby {
my ($payby,$payinfo) = (shift,shift);
my %payby = (