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
Ludovic Kiefer
erp5
Commits
84f100ea
Commit
84f100ea
authored
Jun 12, 2015
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_accounting: Rounding debit/credit only makes sense if there is SIT Line.
parent
46f0763a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_roundDebitCredit.xml
...rp5_accounting/AccountingTransaction_roundDebitCredit.xml
+7
-0
bt5/erp5_accounting/bt/change_log
bt5/erp5_accounting/bt/change_log
+3
-0
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_roundDebitCredit.xml
View file @
84f100ea
...
...
@@ -78,6 +78,13 @@ for line in line_list:\n
line.setQuantity(line_quantity)\n
total_quantity += line_quantity\n
\n
# If no "line" found (eg no SIT line), then do nothing. This is in the case where a SIT\n
# has only Invoice Line and no SIT Line. Otherwise account_type_dict will be empty =>
\n
# asset_line = None => the assert below will fail because getTotalPrice() will returns the\n
# price of all Invoice Lines...\n
if not line_list:\n
return\n
\n
abs_total_quantity = abs(round(total_quantity, precision))\n
# The total quantity should be zero with a little error, if simulation has been\n
# completely applied, because the debit and the credit must be balanced. However,\n
...
...
bt5/erp5_accounting/bt/change_log
View file @
84f100ea
2015-06-12 arnaud.fontaine
* Rounding debit/credit only makes sense if there is SIT Line.
2014-08-21 Gabriel Monnerat
* Improve Delivery_localBuild to call invoice_builder_alarm only if exist, because in some projects this alarm does not exist
...
...
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