Using ions for dollar matching
This commit is contained in:
@@ -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)]})
|
||||
|
||||
|
||||
|
||||
@@ -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)]})
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user