yodlee vendors
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
:requires [:auto-ap/convert-vendors]}
|
:requires [:auto-ap/convert-vendors]}
|
||||||
:auto-ap/convert-transactions {:txes-fn `add-general-ledger/convert-transactions
|
:auto-ap/convert-transactions {:txes-fn `add-general-ledger/convert-transactions
|
||||||
:requires [:auto-ap/convert-invoices]}
|
:requires [:auto-ap/convert-invoices]}
|
||||||
:auto-ap/add-yodlee-merchant {:txes add-general-ledger/add-yodlee-merchant :requires [:auto-ap/convert-transactions]}
|
:auto-ap/add-yodlee-merchant2 {:txes add-general-ledger/add-yodlee-merchant :requires [:auto-ap/convert-transactions]}
|
||||||
|
|
||||||
#_#_:auto-ap/bulk-load-invoice-ledger3 {:txes-fn `add-general-ledger/bulk-load-invoice-ledger :requires [:auto-ap/convert-transactions]}
|
#_#_:auto-ap/bulk-load-invoice-ledger3 {:txes-fn `add-general-ledger/bulk-load-invoice-ledger :requires [:auto-ap/convert-transactions]}
|
||||||
#_#_:auto-ap/bulk-load-transaction-ledger3 {:txes-fn `add-general-ledger/bulk-load-transaction-ledger :requires [:auto-ap/convert-transactions]}
|
#_#_:auto-ap/bulk-load-transaction-ledger3 {:txes-fn `add-general-ledger/bulk-load-transaction-ledger :requires [:auto-ap/convert-transactions]}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
:db/cardinality :db.cardinality/one
|
:db/cardinality :db.cardinality/one
|
||||||
:db/doc "The yodlee merchant name"}
|
:db/doc "The yodlee merchant name"}
|
||||||
|
|
||||||
{:db/ident :yodlee-merchant/id
|
{:db/ident :yodlee-merchant/yodlee-id
|
||||||
:db/valueType :db.type/string
|
:db/valueType :db.type/string
|
||||||
:db/unique :db.unique/identity
|
:db/unique :db.unique/identity
|
||||||
:db/cardinality :db.cardinality/one
|
:db/cardinality :db.cardinality/one
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
:transaction/bank-account [:bank-account/name :bank-account/code :bank-account/yodlee-account-id :db/id]
|
:transaction/bank-account [:bank-account/name :bank-account/code :bank-account/yodlee-account-id :db/id]
|
||||||
:transaction/vendor [:db/id :vendor/name]
|
:transaction/vendor [:db/id :vendor/name]
|
||||||
:transaction/account [:db/id :account/name :account/numeric-code]
|
:transaction/account [:db/id :account/name :account/numeric-code]
|
||||||
:transaction/yodlee-merchant [:db/id :yodlee-merchant/id :yodlee-merchant/name]}]
|
:transaction/yodlee-merchant [:db/id :yodlee-merchant/yodlee-id :yodlee-merchant/name]}]
|
||||||
ids)
|
ids)
|
||||||
(map #(update % :transaction/date c/from-date))
|
(map #(update % :transaction/date c/from-date))
|
||||||
(map #(update % :transaction/post-date c/from-date))
|
(map #(update % :transaction/post-date c/from-date))
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
:transaction/bank-account [:bank-account/name :bank-account/code :bank-account/yodlee-account-id :db/id]
|
:transaction/bank-account [:bank-account/name :bank-account/code :bank-account/yodlee-account-id :db/id]
|
||||||
:transaction/vendor [:db/id :vendor/name]
|
:transaction/vendor [:db/id :vendor/name]
|
||||||
:transaction/account [:db/id :account/name :account/numeric-code]
|
:transaction/account [:db/id :account/name :account/numeric-code]
|
||||||
:transaction/yodlee-merchant [:db/id :yodlee-merchant/id :yodlee-merchant/name]}]
|
:transaction/yodlee-merchant [:db/id :yodlee-merchant/yodlee-id :yodlee-merchant/name]}]
|
||||||
id)
|
id)
|
||||||
(update :transaction/date c/from-date)
|
(update :transaction/date c/from-date)
|
||||||
(update :transaction/post-date c/from-date)
|
(update :transaction/post-date c/from-date)
|
||||||
|
|||||||
@@ -151,7 +151,8 @@
|
|||||||
:invoices {:type '(list :invoice_payment)}
|
:invoices {:type '(list :invoice_payment)}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
:yodlee_merchant {:fields {:id {:type 'String}
|
:yodlee_merchant {:fields {:id {:type :id}
|
||||||
|
:yodlee_id {:type 'String}
|
||||||
:name {:type 'String}}}
|
:name {:type 'String}}}
|
||||||
|
|
||||||
:transaction {:fields {:id {:type :id}
|
:transaction {:fields {:id {:type :id}
|
||||||
|
|||||||
@@ -74,8 +74,7 @@
|
|||||||
:account-id account-id
|
:account-id account-id
|
||||||
:date (coerce/to-date (time/parse date "YYYY-MM-dd"))
|
:date (coerce/to-date (time/parse date "YYYY-MM-dd"))
|
||||||
:yodlee-merchant (when (and merchant-id merchant-name)
|
:yodlee-merchant (when (and merchant-id merchant-name)
|
||||||
(println "INCLUDING MERCHANT")
|
{:yodlee-merchant/yodlee-id merchant-id
|
||||||
{:yodlee-merchant/id merchant-id
|
|
||||||
:yodlee-merchant/name merchant-name})
|
:yodlee-merchant/name merchant-name})
|
||||||
:amount (double amount)
|
:amount (double amount)
|
||||||
:description-original description-original
|
:description-original description-original
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
[:vendor [:name :id]]
|
[:vendor [:name :id]]
|
||||||
[:account [:id :name]]
|
[:account [:id :name]]
|
||||||
:date
|
:date
|
||||||
[:yodlee_merchant [:name :id]]
|
[:yodlee_merchant [:name :yodlee-id]]
|
||||||
:post_date
|
:post_date
|
||||||
:status
|
:status
|
||||||
:description_original
|
:description_original
|
||||||
|
|||||||
Reference in New Issue
Block a user