From 3013a46c5730e094d1bf0ff006041c60ee7e8a0c Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Fri, 27 Jul 2018 08:35:51 -0700 Subject: [PATCH] ne invoices set up correctly. --- src/clj/auto_ap/graphql/invoices.clj | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/clj/auto_ap/graphql/invoices.clj b/src/clj/auto_ap/graphql/invoices.clj index 44653fc3..3b97f56a 100644 --- a/src/clj/auto_ap/graphql/invoices.clj +++ b/src/clj/auto_ap/graphql/invoices.clj @@ -24,11 +24,10 @@ :outstanding-balance total :status "unpaid" :imported true - :date (parse date iso-date)}] - )] + :date (parse date iso-date)}])] (invoices-expense-accounts/replace-for-invoice (:id invoice) [{:expense-account-id (:default-expense-account vendor) - :location location + :location (get-in expense-accounts/expense-accounts [(:default-expense-account vendor) :location] location) :amount total}] ) (-> invoice (->graphql))))