Fixed issue with duplicate import problem. Which account that was used for import is important.

This commit is contained in:
BC
2018-09-20 18:40:02 -07:00
parent ff4be6d20e
commit 43555a4e25

View File

@@ -100,7 +100,7 @@
(mapcat (fn [transaction-group]
(map
(fn [index {:keys [date description-original high-level-category amount account-id] :as transaction}]
{:id (str date "-" description-original "-" amount "-" index "-" company-id)
{:id (str date "-" account-id "-" description-original "-" amount "-" index "-" company-id)
:bank-account-id account-id
:date (time/unparse date "YYYY-MM-dd")
:amount {:amount amount}