Fixed issue with duplicate import problem. Which account that was used for import is important.
This commit is contained in:
@@ -100,7 +100,7 @@
|
|||||||
(mapcat (fn [transaction-group]
|
(mapcat (fn [transaction-group]
|
||||||
(map
|
(map
|
||||||
(fn [index {:keys [date description-original high-level-category amount account-id] :as transaction}]
|
(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
|
:bank-account-id account-id
|
||||||
:date (time/unparse date "YYYY-MM-dd")
|
:date (time/unparse date "YYYY-MM-dd")
|
||||||
:amount {:amount amount}
|
:amount {:amount amount}
|
||||||
|
|||||||
Reference in New Issue
Block a user