The way-back-machine didn't find what I was looking for but I recall writing a script for a customer that would provide discounts based on criteria and the criteria needed to be user managed.
I set up a UDT by customer type and had 3 or 4 "options" for each customer type, each being a type of discount. This table then served as the 'lookup' reference for the script that kicked off in Sales Order Entry, I think we also had expiration dates too, to keep a record of past discounts and allow for the users to enter future discounts.
The script had multiple choices that could be applied to invoke a discount - total spend, no-rush order based on promise date, new customer order over X dollars, etc. Depending on the criteria match, the script would lookup in the UDT and it would provide the discount rate and apply it to the totals screen.
------------------------------
Moira Goggin
Executive Director
90 Minds, Inc.
------------------------------
Original Message:
Sent: 04-30-2019 14:35
From: Moira Goggin
Subject: Rewards Program Integration to Sage 100
I saw this demoed as a coupon program script once. I'll dig it out of the archive and send it to you.
---------------------------------
Moira Goggin
Chismet Consulting Corp.
Long Beach CA
---------------------------------