File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 = '' ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments