From 5582d18c4ae329b89c2aa2f12d10fa9d76dbbb63 Mon Sep 17 00:00:00 2001 From: Bryce Covert Date: Thu, 26 Jul 2018 10:28:48 -0700 Subject: [PATCH] reminders about scaling. --- src/clj/auto_ap/db/invoices.clj | 1 + src/cljs/auto_ap/views/pages/checks.cljs | 2 +- src/cljs/auto_ap/views/pages/unpaid_invoices.cljs | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) 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 {}]) }))