Skip to content

Commit a1b35ec

Browse files
committed
fix: ne pas appliquer la TVA sur les PU des produits avec autre devise
1 parent 7eec93f commit a1b35ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/psebpconnector/connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def export_order_row(self,
360360
document_currency_amount=f"{round(float(order.total_products_wt) + float(order.total_shipping), 6):06f}" if float(order.conversion_rate) != 1.0 else '',
361361
document_currency_amount_notax='',
362362
document_currency_amount_shipping_notax=f"{round(float(order.total_shipping) / (1 + vat_rate), 6):06f}" if float(order.conversion_rate) != 1.0 else '',
363-
line_currency_unit_price_notax=f"{round(float(order_row.product_price) / (1 + vat_rate), 6):06f}" if float(order.conversion_rate) != 1.0 else '',
363+
line_currency_unit_price_notax=f"{round(float(order_row.product_price), 6):06f}" if float(order.conversion_rate) != 1.0 else '',
364364
line_currency_cumulative_discount_amount_notax='',
365365
line_currency_total_notax='',
366366
document_currency_used='T' if float(order.conversion_rate) != 1.0 else 'P',

0 commit comments

Comments
 (0)