shoppingflux / shoppingfluxexport

7 stars 7 forks source link

4.6.2 - Orders' without taxes triggering notices #419

Closed ghost closed 5 years ago

ghost commented 5 years ago

Expected behaviour

We should be able to manage orders from which PrestaShop doesn't apply taxes (based on PrestaShop tax rules).

Actual behaviour

"Notices" are triggered when trying to create this type of order.

<b>Notice</b>:  Undefined offset: XYZ in <b>/var/www/server/modules/shoppingfluxexport/shoppingfluxexport.php</b> on line <b>2621</b>
<b>Notice</b>:  Undefined index: total_products_tax_incl in <b>/var/www/server/modules/shoppingfluxexport/shoppingfluxexport.php</b> on line <b>2622</b><br />

This is due to the fact the order doesn't have data in the table order_detail_tax and the related

Steps to reproduce the behaviour