Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Lu Xu
erp5
Commits
bf37dd26
Commit
bf37dd26
authored
12 years ago
by
Jérome Perrin
Browse files
Options
Download
Email Patches
Plain Diff
Support Cancellation Amount in Budget Cell
parent
f0529181
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
product/ERP5/Document/BudgetCell.py
product/ERP5/Document/BudgetCell.py
+4
-4
No files found.
product/ERP5/Document/BudgetCell.py
View file @
bf37dd26
...
...
@@ -143,23 +143,23 @@ class BudgetCell(Predicate, MetaNode, Movement):
'setSourceCredit'
)
def
setSourceCredit
(
self
,
source_credit
):
"""Set the quantity.
Overloaded from movement, we always set the quantity, if not passed
Overloaded from movement, we always set the quantity,
even
if not passed
"""
try
:
source_credit
=
float
(
source_credit
)
except
TypeError
:
source_credit
=
0.0
self
.
setQuantity
(
source_credit
)
Movement
.
setSourceCredit
(
self
,
source_credit
)
def
setSourceDebit
(
self
,
source_debit
):
"""Set the quantity.
Overloaded from movement, we always set the quantity, if not passed
Overloaded from movement, we always set the quantity,
even
if not passed
"""
try
:
source_debit
=
float
(
source_debit
)
except
TypeError
:
source_debit
=
0.0
self
.
setQuantity
(
-
source_debit
)
Movement
.
setSourceDebit
(
self
,
source_debit
)
security
.
declareProtected
(
Permissions
.
ModifyPortalContent
,
'setDestinationDebit'
,
'setDestinationCredit'
)
...
...
This diff is collapsed.
Click to expand it.
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