Compare oldest transactions first
This commit is contained in:
parent
a3a6a0a77c
commit
4dc5ecc40c
@ -56,7 +56,10 @@
|
||||
(let [[period account filename] args
|
||||
dcu-record (parse-dcu-csv filename)
|
||||
ledger-record (parse-ledger-output period account)
|
||||
[dcu-unmatched ledger-unmatched] (compare-records dcu-record ledger-record '() '())]
|
||||
[dcu-unmatched ledger-unmatched] (compare-records
|
||||
(reverse dcu-record)
|
||||
(reverse ledger-record)
|
||||
'() '())]
|
||||
(if (> (+ (count dcu-unmatched) (count ledger-unmatched)) 0)
|
||||
(do (println "Unmatched bank transactions:")
|
||||
(doseq [t dcu-unmatched] (println (format-item t)))
|
||||
|
Loading…
Reference in New Issue
Block a user