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
0f81b66f
Commit
0f81b66f
authored
Mar 20, 2018
by
Nigel Kukard
Browse files
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
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
wiaflos/server/core/GL.pm
View file @
0f81b66f
...
...
@@ -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
...
...
wiaflos/server/core/Reporting.pm
View file @
0f81b66f
...
...
@@ -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