Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
60a7722d
Commit
60a7722d
authored
Sep 12, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Other Parties Report: check that *rounded* balance == 0 to hide balanced accounts
parent
50d50e73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.xml
...unting/AccountModule_getOtherPartiesReportSectionList.xml
+6
-2
bt5/erp5_accounting/bt/revision
bt5/erp5_accounting/bt/revision
+1
-1
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getOtherPartiesReportSectionList.xml
View file @
60a7722d
...
@@ -65,9 +65,12 @@ simulation_state = request[\'simulation_state\']\n
...
@@ -65,9 +65,12 @@ simulation_state = request[\'simulation_state\']\n
role_filter_list = request.get(\'mirror_section_category_list\', None)\n
role_filter_list = request.get(\'mirror_section_category_list\', None)\n
omit_balanced_accounts = request[\'omit_balanced_accounts\']\n
omit_balanced_accounts = request[\'omit_balanced_accounts\']\n
from_date = request.get(\'from_date\', None)\n
from_date = request.get(\'from_date\', None)\n
gap_root = request.get(\'gap_root\', None)\n
project = request.get(\'project\', None)\n
project = request.get(\'project\', None)\n
\n
\n
currency = portal.Base_getCurrencyForSection(request[\'section_category\'])\n
precision = portal.account_module.getQuantityPrecisionFromResource(currency)\n
request.set(\'precision\', precision)\n
\n
request.other[\'is_accounting_report\'] = True\n
request.other[\'is_accounting_report\'] = True\n
\n
\n
# role_filter_list == None means no filter on the role\n
# role_filter_list == None means no filter on the role\n
...
@@ -140,11 +143,12 @@ for party in context.Account_zDistinctSectionList(\n
...
@@ -140,11 +143,12 @@ for party in context.Account_zDistinctSectionList(\n
if omit_balanced_accounts and (\n
if omit_balanced_accounts and (\n
round(simulation_tool.getInventoryAssetPrice(\n
round(simulation_tool.getInventoryAssetPrice(\n
mirror_section_uid=party.uid,\n
mirror_section_uid=party.uid,\n
precision=precision,\n
node_category_strict_membership=(\n
node_category_strict_membership=(\n
\'account_type/asset/receivable\',\n
\'account_type/asset/receivable\',\n
\'account_type/liability/payable\'),\n
\'account_type/liability/payable\'),\n
**params\n
**params\n
),
3
) == 0.):\n
),
precision
) == 0.):\n
pass\n
pass\n
else:\n
else:\n
title = o.getTitle()\n
title = o.getTitle()\n
...
...
bt5/erp5_accounting/bt/revision
View file @
60a7722d
1544
1545
\ No newline at end of file
\ No newline at end of file
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