Browse Source

[finance] fix

Innocenty Enikeew 8 years ago
parent
commit
e45ddfe0ec
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pta-ledger.lisp

+ 3 - 3
pta-ledger.lisp

@@ -85,10 +85,10 @@
   (labels ((valid (posting)
              (and (or (null predicate)
                       (funcall predicate entry posting))
-                  (or (ecase real
+                  (or (null real)
+                      (ecase real
                         (:t (null (posting-virtual posting)))
-                        (:f (posting-virtual posting))
-                        (nil t))))))
+                        (:f (posting-virtual posting)))))))
     (remove-if-not #'valid (entry-postings entry))))
 
 (defun account-parents (account &key tree)