Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wiaflos
wiaflos
Commits
a23573d2
Commit
a23573d2
authored
Mar 20, 2018
by
Nigel Kukard
Browse files
Output error properly for reporting
parent
9c3d0445
Changes
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/server/core/Reporting.pm
View file @
a23573d2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment