Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Casa Lito
sale_channel
Commits
8f69778a
Commit
8f69778a
authored
9 years ago
by
Sebastian Kennedy
Browse files
Options
Downloads
Patches
Plain Diff
Fix cuando no aplica bonus porque no llega a cantidad
parent
f123dfd3
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sale.py
+2
-1
sale.py
with
2 additions
and
1 deletion
sale.py
+
2
−
1
View file @
8f69778a
...
...
@@ -98,7 +98,8 @@ class sale_order(models.Model):
bonus_line
,
qty_rest
=
bonus
.
calculate
(
qty
,
self
.
pricelist_id
.
id
,
self
.
partner_id
.
id
,
lines
[
0
].
price_unit
)
bonus_lines
.
append
(
bonus_line
)
if
bonus_line
:
bonus_lines
.
append
(
bonus_line
)
# Si aun me queda para aplicar por producto en el restito que me quedo
if
qty_rest
and
significant_lines
[
'
least_significant
'
]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets