olivier.massot 7 anni fa
parent
commit
6bdec015e6
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      gf2analytique.py

+ 4 - 4
gf2analytique.py

@@ -185,13 +185,13 @@ def main():
                          strTiersLibelle=facture.libRai,
                          strMotsClefs=facture.refIntMandat,
                          dtmDeb=facture.dateDepDelai,
-                         intOperation=facture.codePeriode,
+                         intOperation=facture.codePeriode or None,
                          strNomenclature0=facture.typeNomencMarche,
                          strAxe=facture.codeAxe,
                          strCentreCout=facture.codeCout,
-                         strObjet=datetime.strptime(str(facture.dateMandat), "%Y-%m-%dT%H:%M:%S").strftime("%d/%m/%Y"),
-                         dblMontantTVA=facture.mntTvaMandat,
-                         dblMontantTotal=facture.mntVent,
+                         strObjet=facture.dateMandat.strftime("%d/%m/%Y"),
+                         dblMontantTVA=facture.mntTvaMandat or 0,
+                         dblMontantTotal=facture.mntVent or 0,
                          strORIGINE_DONNEES='ASTRE'
                          )
         logger.debug("> %s", sql)