Merge lp:~openbig/bigconsulting/changes_in_discount_field into lp:bigconsulting

Proposed by gpa(OpenERP)
Status: Merged
Merged at revision: 72
Proposed branch: lp:~openbig/bigconsulting/changes_in_discount_field
Merge into: lp:bigconsulting
Diff against target: 12 lines (+1/-1)
1 file modified
account_invoice_cash_discount/account_invoice_cash_discount.py (+1/-1)
To merge this branch: bzr merge lp:~openbig/bigconsulting/changes_in_discount_field
Reviewer Review Type Date Requested Status
openbig Pending
Review via email: mp+32568@code.launchpad.net

Description of the change

changes in the discount field to count 2 as 2% instead of 0.02.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_invoice_cash_discount/account_invoice_cash_discount.py'
2--- account_invoice_cash_discount/account_invoice_cash_discount.py 2010-08-11 12:51:31 +0000
3+++ account_invoice_cash_discount/account_invoice_cash_discount.py 2010-08-13 09:37:41 +0000
4@@ -161,7 +161,7 @@
5 for discount_line in payment_term_lines.cash_discount_ids:
6 if diff_day >= dis and diff_day <= discount_line.delay + tolerance_days:
7 if resudial_amonut:
8- res = resudial_amonut * discount_line.discount
9+ res = resudial_amonut * discount_line.discount/100
10 discount = res
11 dis = discount_line.delay + tolerance_days
12 return discount

Subscribers

People subscribed via source and target branches