Parcourir la source

Utilisation de la date periode plutôt que la date d'échéance pour les contributions sociales

Philippe Le Brouster il y a 8 ans
Parent
commit
a98d3fa3e2
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      himports/dolibarrAlchemyHledger.py

+ 2 - 2
himports/dolibarrAlchemyHledger.py

@@ -554,7 +554,7 @@ class HledgerSellEntry(HledgerBillingEntry):
 # HledgerSocialEntry: A ledger entry corresponding to a tax
 #
 class HledgerSocialEntry(HledgerEntry):
-    k_accounting_date = 'date_ech'
+    k_accounting_date = 'periode'
 
     def _sql_class(self):
         return self.dolibarr_alchemy.CotisationsSociales
@@ -605,7 +605,7 @@ class HledgerSocialEntry(HledgerEntry):
         s = ""
 
         s += "%(date)s    %(description)s\n" % {
-            'date': e.date_ech.strftime("%Y/%m/%d"),
+            'date': e.periode.strftime("%Y/%m/%d"),
             'description': e.libelle + " - " + e.type.libelle
         }