We just ran into a scenario where the order’s freight amount (misc header charge, freq = first) was changed, AFTER the first shipment (of some little cheap parts). Since the misc charge is set up as a frequency of FIRST, it’ll never get invoiced again.
How can I search for other similar orders in a BAQ?
Basically, looking for:
OrderMsc.MiscAmt != InvMisc.MiscAmt where MiscCode = ‘FRTS’.
Both have OrderNum in common…
Can I compare it with a calculated field? Or do something else? I figure the query will be a dog, since it’s crawling EVERY order & invoice (I’d set a date range).
case when (OrderMisc.OrderMsc_MiscAmt = InvcMisc1.InvcMisc_MiscAmt) then 1 else 0 end
There were a ton of false positives, due to the order and invoice having multiple rows of the FRTS misc header charge. I added description equals as join criteria, which knocked it down 80%, but there are still times where it’s either listed twice with the same descr, or the same descr, but one is capitalized (and BAQ’s criteria isn’t case sensitive it seems).
I tried to add a sort by Amount to the subqueries, but that also errored out.
Any ideas how I can get that to sort before the calc field (on the top level) does the comparison?