making excel import work again.

This commit is contained in:
Bryce Covert
2019-04-12 17:42:20 -07:00
parent 5ec523f13c
commit d97c909593

View File

@@ -86,12 +86,8 @@
:venia/queries (map (fn [v ]
{:query/data [:upsert-vendor
{:vendor {:name v :default-expense-account (-> db ::expense-accounts (get v) :default-expense-account)}}
[:id :name :default-expense-account
[:primary-contact [:name :phone :email :id]]
[:secondary-contact [:id :name :phone :email]]
:print-as :invoice-reminder-schedule :code
[:address [:street1 :street2 :city :state :zip]]]]})
{:vendor {:name v :default-account-id (-> db ::expense-accounts (get v) :default-account-id)}}
[:id :name]]})
(get-in db [::excel-import :create-vendors]))}
:on-success [::create-vendor-complete]
@@ -153,7 +149,7 @@
[bind-field
[typeahead {:matches (map (fn [x] [(:id x) (:name x)]) chooseable-expense-accounts)
:type "typeahead"
:field [v :default-expense-account]
:field [v :default-account-id]
:event change-event
:subscription data}]]]])])]
[:div