fix cash flow calc again 8
authorgniibe <gniibe@fsij.org>
Mon, 11 Jun 2012 12:40:27 +0000 (21:40 +0900)
committergniibe <gniibe@fsij.org>
Mon, 11 Jun 2012 12:40:27 +0000 (21:40 +0900)
accounting/models.py

index dc9658c..a0771bd 100644 (file)
@@ -122,7 +122,7 @@ class GeneralLedgerEntry(object):
                 total = -le.amount
             try:
                 le.t.ledgerentry_set.get(account__is_cash=True)
-                if le.account.is_cash or (le.account.type.value == 2 and total < 0):
+                if le.account.is_cash or (le.account.type.value == 2 and total < 0 ):
                     cash_total = 0
                 else:
                     cash_total = total