Browse Source

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

Philippe Le Brouster 8 years ago
parent
commit
a98d3fa3e2
1 changed files with 2 additions and 2 deletions
  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
         }