Commit 0f81b66f authored by Nigel Kukard's avatar Nigel Kukard

Merge branch 'nkupdates3' into 'master'

More updates

See merge request !32
parents 756fb957 a23573d2
Pipeline #2595 passed with stages
in 1 minute and 9 seconds
......@@ -719,7 +719,7 @@ sub getGLTransactions
# Return list of GL transactions
my $sth = DBSelect("
ID, TransactionDate, Reference, Type, Posted
gl_transactions.ID AS ID, TransactionDate, gl_transactions.Reference AS Reference, Type, Posted
gl_transactions $extraTables
......@@ -470,6 +470,9 @@ sub sendReport
$tmp->{'EndDate'} = $detail->{'EndDate'};
$tmp->{'Type'} = $types;
my $transactions = wiaflos::server::core::GL::getGLTransactions($tmp);
if (ref($transactions) ne "ARRAY") {
# Sort based on transaction date
@{$transactions} = sort { $a->{'TransactionDate'} cmp $b->{'TransactionDate'} } @{$transactions};
# Loop and process
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment