Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
2ca595a8
Commit
2ca595a8
authored
Oct 07, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
slapos_accounting: Dont rely on grouping_date for outstanding amount
See merge request
nexedi/slapos.core!435
parents
c4872a03
419a820c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Entity_statOutstandingAmount.py
...l_skins/slapos_accounting/Entity_statOutstandingAmount.py
+2
-7
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Entity_statOutstandingAmount.py
View file @
2ca595a8
from
Products.ZSQLCatalog.SQLCatalog
import
SimpleQuery
,
ComplexQuery
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
params
=
{
"node_category_strict_membership"
:
[
'account_type/asset/receivable'
,
params
=
{
"node_category_strict_membership"
:
[
'account_type/asset/receivable'
,
'account_type/liability/payable'
]}
'account_type/liability/payable'
]}
if
at_date
:
if
at_date
:
params
[
'at_date'
]
=
at_date
params
[
'at_date'
]
=
at_date
params
[
'grouping_query'
]
=
ComplexQuery
(
SimpleQuery
(
grouping_reference
=
None
),
params
[
'grouping_reference'
]
=
None
SimpleQuery
(
grouping_date
=
at_date
,
comparison_operator
=
">"
),
logical_operator
=
"OR"
)
else
:
params
[
'grouping_reference'
]
=
None
if
resource_uid
is
not
None
:
if
resource_uid
is
not
None
:
params
[
"resource_uid"
]
=
resource_uid
params
[
"resource_uid"
]
=
resource_uid
...
...
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