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("
SELECT
ID, TransactionDate, Reference, Type, Posted
gl_transactions.ID AS ID, TransactionDate, gl_transactions.Reference AS Reference, Type, Posted
FROM
gl_transactions $extraTables
WHERE
......
......@@ -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") {
wiaflos::server::core::templating::abort('api_gl_transactions',$accounts,wiaflos::server::core::GL::Error());
}
# 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