Merge lp:~sebastien.beau/magentoerpconnect/magentoerpconnect-oerp6.1-stable-fix-discount-computation into lp:magentoerpconnect/oerp6.1-stable
Proposed by
Sébastien BEAU - http://www.akretion.com
Status: | Merged |
---|---|
Merged at revision: | 692 |
Proposed branch: | lp:~sebastien.beau/magentoerpconnect/magentoerpconnect-oerp6.1-stable-fix-discount-computation |
Merge into: | lp:magentoerpconnect/oerp6.1-stable |
Diff against target: |
16 lines (+5/-2) 1 file modified
magentoerpconnect/settings/1.5.0.0/sale.order.line/external.mappinglines.template.csv (+5/-2) |
To merge this branch: | bzr merge lp:~sebastien.beau/magentoerpconnect/magentoerpconnect-oerp6.1-stable-fix-discount-computation |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
achraf el ammouri (community) | Needs Fixing | ||
Guewen Baconnier @ Camptocamp | no test, code review | Approve | |
Review via email: mp+144748@code.launchpad.net |
Description of the change
Hi
With 1.6.1.0 version of magento, when you use discount it seem that Magento fail to compute the price.
Indeed I just check the reponse of magento for my customer and the result was really strange.
The price of the product with the discount was 13.30€ instead of 13.40€ (2 products with a price of 15.90€ and a discount on the line of 5€ => 31.80-5=26.80 =>(/2) => 13.40 and not 13.30)
I think it's better (and simplier) to use the total of the line in order to compute the discount rate
To post a comment you must log in.
Isn't it related to the discount including tax or not ?
`(total- discount) /total` is a bit hard to read without spaces. (anyway it's hard to read in a CSV file :-D)
Otherwise LGTM.