diff --git a/src/clj/auto_ap/datomic/invoices.clj b/src/clj/auto_ap/datomic/invoices.clj index 4b678306..4bea7685 100644 --- a/src/clj/auto_ap/datomic/invoices.clj +++ b/src/clj/auto_ap/datomic/invoices.clj @@ -30,7 +30,6 @@ (map #(rename-keys % {:invoice-payment/_invoice :invoice/payments})))) (defn raw-graphql [args] - (println (:invoice-number-like args)) (->> (d/query (cond-> {:query {:find [default-read] :in ['$] diff --git a/src/clj/auto_ap/datomic/transactions.clj b/src/clj/auto_ap/datomic/transactions.clj index e0acd265..16b29d4a 100644 --- a/src/clj/auto_ap/datomic/transactions.clj +++ b/src/clj/auto_ap/datomic/transactions.clj @@ -73,6 +73,7 @@ (merge-query {:query {:in ['[?xx ...]] :where ['[?e :transaction/client ?xx]]} :args [(set (map :db/id (limited-clients (:id args))))]}) + (:bank-account-id args) (merge-query {:query {:in ['?bank-account-id] :where ['[?e :transaction/bank-account ?bank-account-id]]}