From aeb3edb209c89bb0c364184be5339ad004b9ba4f Mon Sep 17 00:00:00 2001
From: benjamin <benjamin@le-filament.com>
Date: Wed, 6 Oct 2021 16:56:23 +0200
Subject: [PATCH] [fix] error export (if statement)

---
 controllers/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controllers/main.py b/controllers/main.py
index f7ea98b..4c8fda9 100644
--- a/controllers/main.py
+++ b/controllers/main.py
@@ -79,7 +79,7 @@ class ExportJournalCg(http.Controller):
                     analytic='030201')
                 )
             # Produit Adhésion CG + Analytique + OD
-            if line.product_id == product_adhesion_id:
+            elif line.product_id == product_adhesion_id:
                 amount_analytic = round(1 / 2 * amount, 2)
                 # Compte général
                 lines_to_export.append(self._export_row(
-- 
GitLab