diff --git a/src/clj/auto_ap/db/invoices.clj b/src/clj/auto_ap/db/invoices.clj index 07985ea4..b722179c 100644 --- a/src/clj/auto_ap/db/invoices.clj +++ b/src/clj/auto_ap/db/invoices.clj @@ -36,6 +36,7 @@ :left-join [[:invoices :exist] [:and [:= :exist.invoice-number :v.invoice-number] + [:not= :exist.status "voided"] [:= :exist.company-id :v.company-id] [:or [:= :exist.vendor-id :v.vendor-id] [:and diff --git a/src/cljs/auto_ap/views/pages/checks.cljs b/src/cljs/auto_ap/views/pages/checks.cljs index f7fc2116..a21dbfcd 100644 --- a/src/cljs/auto_ap/views/pages/checks.cljs +++ b/src/cljs/auto_ap/views/pages/checks.cljs @@ -64,7 +64,7 @@ (if (= (:id c) (:id void-check)) (assoc void-check :class "live-removed") c)) - checks)) )))) + checks)))))) (re-frame/reg-event-db ::received diff --git a/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs b/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs index 4dc770f5..292c631d 100644 --- a/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs +++ b/src/cljs/auto_ap/views/pages/unpaid_invoices.cljs @@ -805,6 +805,8 @@ [modal {:title "Your checks are ready!" :hide-event [::close-check-results]} - [:div "Click " [:a {:href pdf-url :target "_new"} "here"] " to print them."]]) + [:div "Click " [:a {:href pdf-url :target "_new"} "here"] " to print them."] + [:div [:em "Remember to turn off all scaling and margins."]] + ]) ])) {:component-will-mount #(re-frame/dispatch-sync [::params-change {}]) }))