Sage 100: Prevent Sales Order Invoices to Customers on Credit Hold
Sage 100 credit hold does not stop salespeople invoicing held customers — the prompt can be clicked past and order status edited. Two fixes confirmed in practice: the Role Maintenance setting and a pre-write script that forces Hold.
You put a customer on credit hold in Accounts Receivable. Your salespeople invoice them anyway. Nothing about that is a bug — it is how Sage 100's native credit hold behaves, and understanding exactly where it leaks is what makes the two fixes below make sense:
- When a new sales order is entered for a customer on credit hold, the Customer Credit History window pops up — and offers a choice. Hold sets the order status to Hold; OK sets it to New and life continues. Nothing forces Hold.
- Even when an order is on Hold, anyone who can edit the order can change its status from Hold to New/Open and then invoice it.
So the enforcement has to come from somewhere the salesperson cannot click past. There are two confirmed places to put it: their security role, and a script that rewrites the status at the moment the order is saved. Both were reported working by the site that had this exact problem.
The fix
Fix 1 — Remove the override permission from the sales role (native, no scripting)
- Open Library Master > Role Maintenance and select the role your sales team uses.
- Go to the Module Options tab (the third tab).
- Under Accounts Receivable, clear the Allow Credit Limit Override permission for that role.
- Have the salespeople log out and back in so the role change takes effect, then test with a credit-hold customer.
What changes, as documented by the site that confirmed it: when a salesperson without that permission enters an order for a customer on credit hold, the prompt's OK button no longer releases the order — pressing OK cancels the sales order. Their only way forward is an order on Hold. (Do not be put off by the permission's name: an early suggestion in the original discussion dismissed it as applying only to over-limit invoicing, but the verified, poster-confirmed result is that removing it is what closes the credit-hold prompt. The name is about credit limits; the effect at the prompt is what matters.)
Fix 2 — A Table Pre-Write script that forces Hold on every save
Fix 1 governs the moment of entry. If orders can also be created or released through paths the prompt does not cover — or you want the status physically unable to stay changed — add the enforcement the original poster built and confirmed:
- In Customizer / User-Defined Scripts, attach a script to the SO Sales Order Header table, Table Pre-Write event.
-
The script reads the customer's credit-hold flag through the header's customer child handle and, if the customer is on hold, sets the order status before the record is written:
oCust = 0 OnHold = "" Set oCust = oSession.AsObject(oBusObj.GetChildHandle("CustomerNo")) retval = oCust.GetValue("CreditHold", OnHold) if Left(OnHold,1) = "Y" then retVal = oBusObj.SetValue("OrderStatus$","H") end if -
Test: enter an order for a credit-hold customer, set its status to New, and save. The status returns to Hold.
Why pre-write is the right event: it fires on every save, not just at first entry. The poster confirmed it solves both halves of the problem — the order is set to Hold when the customer is on credit hold, and if a user changes the status to New/Open, the script sets it back to Hold when the order is written. The order stays visibly on Hold (the status still displays and still communicates), it simply cannot be taken off while the customer flag stands. Only someone who can take the customer off credit hold in Customer Maintenance — finance, in most shops — can release the flow.
Options and approaches
Which fix do you need?
- Fix 1 alone is enough for most sites: it is native, takes minutes, and removes the click-past at the point of entry.
- Add Fix 2 when status changes after entry are your leak (orders entered by one person, released by another), when orders arrive through imports or other entry paths, or when you want enforcement that does not depend on every role being configured perfectly.
- Keep Customer Maintenance segregated either way. Finance owns the CreditHold flag; sales should not have access to the module that sets it. One site in the original discussion runs exactly this split — sales is flagged "ON CREDIT HOLD" at order entry and routes the customer to finance, who clear the hold when the account is resolved. The system fixes above make that process enforceable instead of voluntary.
If you need an audit trail of overrides
Native Sage 100 lumps credit-limit, credit-terms and credit-hold overrides together, which is why the permission names confuse everyone. Third-party enhancements exist that split them — DSD's Enhanced Credit Checking, for example, adds a separate "Allow Credit Hold Override" module option and keeps a log of which orders and invoices had credit overrides and who performed them. That is an enhancement purchase, not a setting; the two fixes above are what you can do today with the product you own.
What doesn't work
- Relying on the Customer Credit History prompt. It is advisory by design — OK is right there, and clicking it is not even against the rules you gave the salesperson.
- Hiding the order-status field on a customized panel. Suggested in the original discussion and rejected by the site with the problem: hiding does not set the status to Hold automatically, and it removes information the status exists to convey. Setting the field to Disabled in Customizer at least leaves it visible, but it still does not force Hold at entry — it only stops one editing route.
- Procedure and training alone. The discussion's process-based answer (transfer the customer to finance, resolve, release) works as a process — but the question that started the thread is what to do when intrepid salespeople push invoices through anyway. Process without a system control behind it is a hope, not a control.
Affected versions
No version is named in the source discussion. Role Maintenance module options and Table Pre-Write user-defined scripts on the sales order header are long-standing Sage 100 framework features, and the CreditHold flag / OrderStatus$ field names are the standard ones. Test in your own environment after any upgrade, as with any script-based control.
Prevention / best practice
- Decide who can release a hold and make sure that list is short, named, and the same people who own Customer Maintenance.
- Test your enforcement after every role change and every Sage 100 upgrade: enter a test order for a held customer as a salesperson and try every escape route you can think of — prompt OK, status edit, invoice entry.
- Review who holds Allow Credit Limit Override across all roles periodically; the permission tends to accumulate in roles copied from older, looser setups.
Related help
- Script to Change the Credit Warning Message
- Restrict Ability to Change Salesperson
- Adding Credit Card Processing Fees to Invoices
- Script for Customer Pricing
Still stuck? Send us a screenshot of the error, we will diagnose it for free.
Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.