Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
alecs_myu
erp5
Commits
8e7737c1
Commit
8e7737c1
authored
Dec 29, 2014
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: fix error display in Alarm_checkPayableAndReceivableAccountGrouped
parent
1afb75f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Alarm_checkPayableAndReceivableAccountGrouped.xml
...ounting/Alarm_checkPayableAndReceivableAccountGrouped.xml
+2
-2
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Alarm_checkPayableAndReceivableAccountGrouped.xml
View file @
8e7737c1
...
...
@@ -61,6 +61,7 @@ from Products.CMFActivity.ActiveResult import ActiveResult\n
active_process = context.newActiveProcess()\n
\n
portal = context.getPortalObject()\n
getObject = portal.portal_catalog.getObject\n
\n
# Section category & strict have to be configured on alarm\n
section_category = context.getProperty(\'section_category\')\n
...
...
@@ -85,11 +86,10 @@ search_params = dict(\n
group_by_node=True,\n
grouping_reference=None,\n
)\n
\n
\n
for brain in portal.portal_simulation.getInventoryList(**search_params):\n
if round(brain.total_price, precision) == 0:\n
print \'%s has a 0 balance but some not grouped transactions.\' %
brain.mirror_section_relative_url
\n
print \'%s has a 0 balance but some not grouped transactions.\' %
getObject(brain.mirror_section_uid).getRelativeUrl()
\n
if fixit:\n
tr = brain.getObject().getParentValue()\n
grouped_line_list = tr.AccountingTransaction_guessGroupedLines()\n
...
...
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