projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo in GuV Gruppenüberschrift
[kivitendo-erp.git]
/
SL
/
CA.pm
diff --git
a/SL/CA.pm
b/SL/CA.pm
index
cee8316
..
983f9bd
100644
(file)
--- a/
SL/CA.pm
+++ b/
SL/CA.pm
@@
-366,8
+366,8
@@
sub all_transactions {
}
my $sort = grep({ $form->{sort} eq $_ } qw(transdate reference description)) ? $form->{sort} : 'transdate';
}
my $sort = grep({ $form->{sort} eq $_ } qw(transdate reference description)) ? $form->{sort} : 'transdate';
-
- $query .= qq|ORDER BY $sort|;
+ my $sort2 = ($sort eq 'reference')?'transdate':'reference';
+ $query .= qq|ORDER BY $sort
, $sort2
|;
my $sth = prepare_execute_query($form, $dbh, $query, @values);
#get detail information for each transaction
my $sth = prepare_execute_query($form, $dbh, $query, @values);
#get detail information for each transaction