shoppingflux / shoppingfluxexport

7 stars 7 forks source link

Import order details without taxes #374

Open ghost opened 6 years ago

ghost commented 6 years ago

Expected behaviour

We should be able to decide/flag if the prices to import from the getOrder order response are with or without taxes. This way we can adapt to some specific MarketPlace. As well

Actual behaviour

Prices given in <order>[...]<\order> from the getOrders API call are with taxes. The order is then created in PrestaShop using the prices as references and the taxes are applied based on PrestaShop rules. The price without taxes is therefore calculated and added to the order.

Steps to reproduce the behaviour

Import an order from a marketplace having no taxes. Prices will be without taxes but imported are taxes included prices.

ghost commented 6 years ago

Currently the only way to distinguish such orders is to refer to the <Marketplace> value.

The <TaxeRate> value in the product details in the XML seems to always have the same value : <TaxeRate>0.000</TaxeRate>

In order to offer more flexibility in the future, is it possible to add a new XML tag such as <TaxesRule> ? We could then have multiple values:

Let me know what you think about it.

ghost commented 5 years ago

A specific process for tropic market will be required. We discard the proposition of May 31st to include a new tag such as <TaxesRule>.