Using ions for dollar matching

This commit is contained in:
2023-03-27 10:58:18 -07:00
parent e3fbc50e6a
commit 952aa38951
5 changed files with 16 additions and 4 deletions

View File

@@ -117,7 +117,7 @@
(:amount args)
(merge-query {:query {:in ['?amount]
:where ['[?e :payment/amount ?transaction-amount]
'[(auto-ap.utils/dollars= ?transaction-amount ?amount)]]}
'[(iol-ion.query/dollars= ?transaction-amount ?amount)]]}
:args [(:amount args)]})

View File

@@ -67,7 +67,7 @@
(:total args)
(merge-query {:query {:in ['?total]
:where ['[?e :expected-deposit/total ?expected-deposit-total]
'[(auto-ap.utils/dollars= ?expected-deposit-total ?total)]]}
'[(iol-ion.query/dollars= ?expected-deposit-total ?total)]]}
:args [(:total args)]})

View File

@@ -189,7 +189,7 @@
(:total args)
(merge-query {:query {:in ['?total]
:where ['[?e :sales-order/total ?sales-order-total]
'[(auto-ap.utils/dollars= ?sales-order-total ?total)]]}
'[(iol-ion.query/dollars= ?sales-order-total ?total)]]}
:args [(:total args)]})
true