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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
f8893415
Commit
f8893415
authored
Feb 20, 2024
by
Xiaowu Zhang
Committed by
Cédric Le Ninivin
May 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_accounting: match real invoice
parent
93513a3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_roundDebitCredit.py
...erp5_accounting/AccountingTransaction_roundDebitCredit.py
+4
-1
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_roundDebitCredit.py
View file @
f8893415
...
@@ -49,7 +49,10 @@ for line, account_type_list in account_type_dict.iteritems():
...
@@ -49,7 +49,10 @@ for line, account_type_list in account_type_dict.iteritems():
break
break
def
roundLine
(
resource
,
get_method
,
set_method
,
exchange_ratio
):
def
roundLine
(
resource
,
get_method
,
set_method
,
exchange_ratio
):
precision
=
context
.
getQuantityPrecisionFromResource
(
resource
)
if
resource
==
'currency_module/EUR'
:
precision
=
2
else
:
precision
=
context
.
getQuantityPrecisionFromResource
(
resource
)
total_quantity
=
0.0
total_quantity
=
0.0
for
line
in
line_list
:
for
line
in
line_list
:
line_quantity
=
round
(
getattr
(
line
,
get_method
)()
or
0
,
precision
)
line_quantity
=
round
(
getattr
(
line
,
get_method
)()
or
0
,
precision
)
...
...
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