Skip to content

Commit 0862b5f

Browse files
committed
fix: typo order total discounts
1 parent 7e7871e commit 0862b5f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/psebpconnector/connector.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ def export_order_row(self,
321321
document_delivery_email='nomail@nomail.fr',
322322
document_territoriality=ebp_territoriality,
323323
document_vat_number="" if str(invoice_address.vat_number) == '0' else str(invoice_address.vat_number),
324-
document_discount_pct=f"{round(float(order.total_discount) / (float(order.total_products_wt) + float(order.total_shipping)), 6):06f}",
325-
document_discount_amount=f"{order.total_discount}",
324+
document_discount_pct=f"{round(float(order.total_discounts) / (float(order.total_products_wt) + float(order.total_shipping)), 6):06f}",
325+
document_discount_amount=f"{order.total_discounts}",
326326
document_escompte_pct='',
327327
document_escompte_amount='',
328328
document_shipping_cost_code='',

src/psebpconnector/models/order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Order(Model):
5252
payment: str = ''
5353
reference: str = ''
5454
shipping_number: str = ''
55-
total_discount: float = 0
55+
total_discounts: float = 0
5656
total_paid: float = 0
5757
total_paid_real: float = 0
5858
total_products: float = 0

0 commit comments

Comments
 (0)