I've used Acumatica's Report Designer to generate a list of items purchased by a searched customer in the last 90 days. The logic is to query records from SOLine in the recent 90 days, group them by ItemID and customerid, and then list the ItemIDs.
However, the business side has a new requirement: some items are replaceable alternatives. For example, bfsk1, bfsk2, and bfsk3 are all beef steaks—only different in brand. Customers don’t care much about the brand; they purchased different ones simply because whichever brand was available in the warehouse at the time was used.
So, on the Sales Order Collection form, only the recent "bfsk" needs to be displayed(requested by the sales team).
The key challenges now are:
- How to identify replaceable items? The current idea is to group items with the same prefix and different numeric suffixes, but how does Acumatica Report Designer support this?
- After grouping, how to retain only the record with the latest OrderDate?
Are there any better solutions to fulfill the need?
