diff --git a/export_invoice_edi_auchan/schema/invoice_header.py b/export_invoice_edi_auchan/schema/invoice_header.py index f01c447b..a2ecfa0b 100644 --- a/export_invoice_edi_auchan/schema/invoice_header.py +++ b/export_invoice_edi_auchan/schema/invoice_header.py @@ -36,7 +36,7 @@ def get_values(self): 16, self.invoice.invoice_date, ), # Date/heure facture ou avoir (document) JJ/MM/AAAA HH:MN - (10, self.invoice.date_due), # Date d'échéance JJ/MM/AAAA + (10, self.invoice.invoice_date_due), # Date d'échéance JJ/MM/AAAA ( 7, self.invoice.move_type == "out_invoice" @@ -59,7 +59,7 @@ def get_values(self): (3, ""), # Nb de jour de pénalité opt ( 1, - self.invoice.context.get("test_mode") and "0" or "1", + self.invoice.env.context.get("test_mode") and "1" or "0", ), # Document de test (1/0) ( 3, diff --git a/export_invoice_edi_auchan/schema/invoice_taxes.py b/export_invoice_edi_auchan/schema/invoice_taxes.py index cf0d544a..87d31528 100644 --- a/export_invoice_edi_auchan/schema/invoice_taxes.py +++ b/export_invoice_edi_auchan/schema/invoice_taxes.py @@ -12,5 +12,5 @@ def get_values(self): (3, "TVA"), # Étiquette de segment "TVA" (5, self.tax_line.tax_line_id.amount or 0.0), (10, self.tax_line.tax_base_amount or 0.0), - (10, self.tax_line.price_subtotal or 0.0), + (10, self.tax_line.credit or 0.0), ]