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

index efd7ea0..004bb85 100644 (file)
@@ -125,7 +125,7 @@ class GeneralLedgerEntry(object):
                 if le.account.is_cash or (cores_le.is_credit == le.is_credit):
                     cash_total = 0
                 else:
                 if le.account.is_cash or (cores_le.is_credit == le.is_credit):
                     cash_total = 0
                 else:
-                    cash_total = cores_le.amount
+                    cash_total = total
             except:
                 cash_total = 0
             try:
             except:
                 cash_total = 0
             try: