Always shows client for multi location

This commit is contained in:
2024-06-28 12:22:12 -07:00
parent 2ccd60a09a
commit 4aed529b3f
2 changed files with 5 additions and 4 deletions

View File

@@ -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))
])}

View File

@@ -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"