Jump to content

Question about order, order_payment and currencies


HardKent

Recommended Posts

Hi there, 

I am encountering a problem with a third party module called OpenSI  concerning my multi shops and multi currencies Prestashop
When I do an order, these informations (id_currency and conversion rate) are stored in the two tables ps_orders and ps_order_payment 

Actually, with my Prestashop 8.1.7 I'm storing this for exemple

image.thumb.png.98121346f757dc1e66095ff3c6ebc988.png

A you can see conversion_rate are different in both tables and that is getting my third party module in trouble cause they expected the same conversion_rate (0.936494)

Is that a normal behaviour from Prestashop to have different values or is that a bug ?
Looking to PaymentModule.php and addOrderPayment method it seems normal  no currency params is passed ....
image.thumb.png.7432e2277816803e664af77d733a59ac.png

image.thumb.png.6d85069fe49ab95d0d27b4e4f32d952d.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...