Always shows client for multi location
This commit is contained in:
@@ -486,7 +486,8 @@
|
||||
:name "Client"
|
||||
:sort-key "client"
|
||||
:hide? (fn [args]
|
||||
(= (count (:clients args)) 1))
|
||||
(and (= (count (:clients args)) 1)
|
||||
(= 1 (count (:client/locations (:client args))))))
|
||||
:render (fn [x] [:div.flex.items-center.gap-2 (-> x :invoice/client :client/name)
|
||||
(com/pill {:color :primary} (-> x :invoice/location))
|
||||
])}
|
||||
|
||||
@@ -489,10 +489,10 @@
|
||||
:name "Client"
|
||||
:sort-key "client"
|
||||
:hide? (fn [args]
|
||||
(= (count (:clients args)) 1))
|
||||
(and (= (count (:clients args)) 1)
|
||||
(= 1 (count (:client/locations (:client args))))))
|
||||
:render (fn [x] [:div.flex.items-center.gap-2 (-> x :invoice/client :client/name)
|
||||
(com/pill {:color :primary} (-> x :invoice/location))
|
||||
])}
|
||||
(com/pill {:color :primary} (-> x :invoice/location)) ])}
|
||||
{:key "vendor"
|
||||
:name "Vendor"
|
||||
:sort-key "vendor"
|
||||
|
||||
Reference in New Issue
Block a user