fix cash flow calc again 12
authorgniibe <gniibe@fsij.org>
Mon, 11 Jun 2012 13:59:44 +0000 (22:59 +0900)
committergniibe <gniibe@fsij.org>
Mon, 11 Jun 2012 13:59:44 +0000 (22:59 +0900)
accounting/models.py

index 1cb60f0..53c9c72 100644 (file)
@@ -127,8 +127,8 @@ class GeneralLedgerEntry(object):
                     coresponding = 0
                     for c in le.t.ledgerentry_set.filter(account__is_cash=True):
                         coresponding = coresponding + c.amount
-                    if corespoinding < total:
-                        cash_total = corespoinding
+                    if coresponding < total:
+                        cash_total = coresponding
                     else:
                         cash_total = total
             else: