fix cash flow calc again 14
authorgniibe <gniibe@fsij.org>
Mon, 11 Jun 2012 14:16:17 +0000 (23:16 +0900)
committergniibe <gniibe@fsij.org>
Mon, 11 Jun 2012 14:16:17 +0000 (23:16 +0900)
accounting/models.py

index 4f4cef5..44962c1 100644 (file)
@@ -126,7 +126,7 @@ class GeneralLedgerEntry(object):
                 else:
                     cash_total = total
                     for c_le in le.t.ledgerentry_set.filter(is_credit=not le.is_credit):
-                        if c_le.account.is_cash=False and c_le.account.type.value == 2:
+                        if not c_le.account.is_cash and c_le.account.type.value == 2:
                             cash_total = cash_total - c_le.amount
             else:
                 cash_total = 0