Lucas Perais (lpe)
d396ed515c
[FIX] website_sale_delivery: avoid double conversion to currency on delivery provider
...
Yourcompany is in currency USD
Go to the website and select the CAD pricelist
Have Fedex installed (then you'll have to set weight on the product you buy)
*Expected with DHL and generally any API driven delivery*
Make an online order to the USA but in CAD
Before this commit:
At the "Choose your delivery method" step
You'll see that the amount for Fedex that seems to be 'converted twice' into CAD
(And it is)
This is because there is a slight mismatch in how delivery compute their price
When the delivery is fixed, or based on a rule
Its price is always in terms of its company's currency
Whereas
in other delivery type, the price is computed in terms of ther order's currency
See the difference between the implementation of the methods:
<get_price_available>
and
<provider_get_shipping_price_from_so>
OPW 1813466
2018-02-28 09:14:10 +01:00
..
2018-02-27 11:31:09 +01:00
2018-02-11 00:48:18 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-19 10:05:50 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-18 01:04:11 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-23 08:42:50 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-26 17:22:41 +01:00
2018-01-12 11:25:58 +01:00
2018-02-09 18:20:57 +01:00
2018-02-01 02:40:21 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-26 15:12:25 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 13:43:39 +01:00
2018-02-21 11:27:22 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 13:43:39 +01:00
2018-02-14 11:53:12 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-25 01:38:10 +01:00
2018-02-28 09:14:10 +01:00
2018-02-14 13:43:39 +01:00
2018-02-18 01:04:11 +01:00
2018-02-14 13:43:39 +01:00
2018-02-25 01:38:10 +01:00
2018-02-14 11:53:12 +01:00
2018-02-14 13:43:39 +01:00