Adds location filter.
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
:due-range (:due-range params)
|
||||
:amount-gte (:amount-gte (:amount-range params))
|
||||
:amount-lte (:amount-lte (:amount-range params))
|
||||
:location (:location params)
|
||||
:invoice-number-like (:invoice-number-like params)
|
||||
:client-id (:id @(re-frame/subscribe [::subs/client]))
|
||||
:import-status (:import-status params)
|
||||
|
||||
@@ -88,6 +88,13 @@
|
||||
{:on-change-event [::data-page/filter-changed data-page :amount-range]
|
||||
:value @(re-frame/subscribe [::data-page/filter data-page :amount-range])}]]
|
||||
|
||||
[:p.menu-label "Location"]
|
||||
[:div.field
|
||||
[:div.control [:input.input {:placeholder "SC"
|
||||
:style {:width "3em"}
|
||||
:value @(re-frame/subscribe [::data-page/filter data-page :location])
|
||||
:on-change (dispatch-value-change [::data-page/filter-changed data-page :location ])} ]]]
|
||||
|
||||
[:p.menu-label "Invoice #"]
|
||||
[:div
|
||||
[invoice-number-filter params]]])]))
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
:vendor-id (:id (:vendor params))
|
||||
:date-range (:date-range params)
|
||||
:account-id (:id (:account params))
|
||||
:location (:location params)
|
||||
:bank-account-id (:id (:bank-account params))
|
||||
:amount-gte (:amount-gte (:amount-range params))
|
||||
:amount-lte (:amount-lte (:amount-range params))})
|
||||
|
||||
@@ -88,6 +88,13 @@
|
||||
{:on-change-event [::data-page/filter-changed data-page :amount-range]
|
||||
:value @(re-frame/subscribe [::data-page/filter data-page :amount-range])}]]
|
||||
|
||||
[:p.menu-label "Location"]
|
||||
[:div.field
|
||||
[:div.control [:input.input {:placeholder "SC"
|
||||
:style {:width "3em"}
|
||||
:value @(re-frame/subscribe [::data-page/filter data-page :location])
|
||||
:on-change (dispatch-value-change [::data-page/filter-changed data-page :location ])} ]]]
|
||||
|
||||
(when (= :external-ledger ap)
|
||||
[:<>
|
||||
[:p.menu-label "External ID"]
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
:account-id (:id (:account params))
|
||||
:bank-account-id (:id (:bank-account params))
|
||||
:amount-gte (:amount-gte (:amount-range params))
|
||||
:location (:location params)
|
||||
:amount-lte (:amount-lte (:amount-range params))
|
||||
:description (:description params)
|
||||
:approval-status (condp = @(re-frame/subscribe [::subs/active-page])
|
||||
|
||||
@@ -89,6 +89,12 @@
|
||||
:value @(re-frame/subscribe [::data-page/filter data-page :date-range])}]]
|
||||
|
||||
|
||||
[:p.menu-label "Location"]
|
||||
[:div.field
|
||||
[:div.control [:input.input {:placeholder "SC"
|
||||
:style {:width "3em"}
|
||||
:value @(re-frame/subscribe [::data-page/filter data-page :location])
|
||||
:on-change (dispatch-value-change [::data-page/filter-changed data-page :location ])} ]]]
|
||||
|
||||
[:p.menu-label "Description"]
|
||||
[:div
|
||||
|
||||
Reference in New Issue
Block a user