|
@@ -41,7 +41,7 @@ class HledgerEntry(object):
|
|
|
|
|
|
# get_ledger : Print ledger output. Only defined in derived class
|
|
|
def get_ledger(self):
|
|
|
- print "WARNING: get_ledger not done"
|
|
|
+ print("WARNING: get_ledger not done")
|
|
|
return u""
|
|
|
|
|
|
# check_pc : verify the accounting chart corresponding to the entry. Only defined in derived class.
|
|
@@ -137,7 +137,7 @@ class HledgerBankEntry(HledgerEntry):
|
|
|
for fn in fns:
|
|
|
try:
|
|
|
third_code = fn(e)
|
|
|
- if third_code is None or not isinstance(third_code, unicode):
|
|
|
+ if third_code is None or not isinstance(third_code, str):
|
|
|
third_code = ""
|
|
|
except:
|
|
|
third_code = ""
|
|
@@ -332,11 +332,11 @@ class HledgerSupplierEntry(HledgerBillingEntry):
|
|
|
total_ht -= ed.total_ht
|
|
|
|
|
|
if total_ttc > 1e-10:
|
|
|
- print "Erreur dans l'écriture %s: total ttc = %s" % (e.ref_supplier, total_ttc)
|
|
|
+ print("Erreur dans l'écriture %s: total ttc = %s" % (e.ref_supplier, total_ttc))
|
|
|
if total_ht > 1e-10:
|
|
|
- print "Erreur dans l'écriture %s: total ht = %s" % (e.ref_supplier, total_ht)
|
|
|
+ print("Erreur dans l'écriture %s: total ht = %s" % (e.ref_supplier, total_ht))
|
|
|
if total_tva > 1e-10:
|
|
|
- print "Erreur dans l'écriture %s: total tva = %s" % (e.ref_supplier, total_tva)
|
|
|
+ print("Erreur dans l'écriture %s: total tva = %s" % (e.ref_supplier, total_tva))
|
|
|
|
|
|
# getMissingPC: retrieve missing accounts
|
|
|
def getMissingPC(self):
|
|
@@ -519,11 +519,11 @@ class HledgerSellEntry(HledgerBillingEntry):
|
|
|
total_ht -= ed.total_ht
|
|
|
|
|
|
if total_ttc > 1e-10:
|
|
|
- print "Erreur dans l'écriture %s: total ttc = %s" % (e.facnumber, total_ttc)
|
|
|
+ print("Erreur dans l'écriture %s: total ttc = %s" % (e.facnumber, total_ttc))
|
|
|
if total_ht > 1e-10:
|
|
|
- print "Erreur dans l'écriture %s: total ht = %s" % (e.facnumber, total_ht)
|
|
|
+ print("Erreur dans l'écriture %s: total ht = %s" % (e.facnumber, total_ht))
|
|
|
if total_tva > 1e-10:
|
|
|
- print "Erreur dans l'écriture %s: total tva = %s" % (e.facnumber, total_tva)
|
|
|
+ print("Erreur dans l'écriture %s: total tva = %s" % (e.facnumber, total_tva))
|
|
|
|
|
|
|
|
|
#
|