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
3e88895f
Commit
3e88895f
authored
Feb 06, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explain why Delivery.getTotalNetPrice is deprecated
parent
61925014
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
product/ERP5/Document/Delivery.py
product/ERP5/Document/Delivery.py
+5
-1
No files found.
product/ERP5/Document/Delivery.py
View file @
3e88895f
...
...
@@ -181,7 +181,11 @@ class Delivery(XMLObject, ImmobilisationDelivery, SimulableMixin,
'getTotalNetPrice'
)
def
getTotalNetPrice
(
self
,
fast
=
0
,
src__
=
0
,
**
kw
):
"""
Same as getTotalPrice, but including Tax and Discount.
Same as getTotalPrice, but including Tax and Discount (from legacy
simulation).
This method is deprecated because it uses deprecated Tax & Discount
portal types. You should use getTotalPrice(base_contribution=) instead.
"""
total_price
=
self
.
getTotalPrice
(
fast
=
fast
,
src__
=
src__
,
**
kw
)
kw
[
'portal_type'
]
=
self
.
getPortalTaxMovementTypeList
()
...
...
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