due date exists.

This commit is contained in:
Bryce Covert
2020-04-18 09:44:42 -07:00
parent 5f309de2d4
commit b28dd64c4a
7 changed files with 35 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
(ns auto-ap.views.pages.invoices.common)
(def invoice-read [:id :total :outstanding-balance :date :invoice-number :status
(def invoice-read [:id :total :outstanding-balance :date :due :invoice-number :status
[:client [:id :name :locations]]
[:payments [:amount [:payment [:amount :s3_url :check_number ]]]]
[:vendor [:id :name]]

View File

@@ -80,7 +80,6 @@
(re-frame/reg-event-db
::invoice-updated
(fn [db [_ invoice]]
(println "HERE")
(update-in db
[::invoice-page :invoices]
replace-by :id (assoc invoice :class "live-added"))))
@@ -699,10 +698,6 @@
:on-check-changed (fn [which invoice]
(re-frame/dispatch [::toggle-check which invoice]))
:expense-event [::expense-accounts-dialog/change-expense-accounts]}]
]))
:component-will-mount #(re-frame/dispatch-sync [::params-change params]) }))