fix cash flow calc again 5
[fsij-members-webapp.git] / accounting / models.py
index 132f49b..c4e172f 100644 (file)
@@ -122,7 +122,7 @@ class GeneralLedgerEntry(object):
                 total = -le.amount
             try:
                 cores_le = le.t.ledgerentry_set.get(account__is_cash=True)
-                if le.account.is_cash or (le.account.type != 3 and le.account.type != 4):
+                if le.account.is_cash or (le.account.type.value != 3 and le.account.type.value != 4):
                     cash_total = 0
                 else:
                     if total > cores_le: