Page 1 of 1

Debtor has exceeded their credit limit popup

PostPosted: Wed Sep 23, 2020 9:29 pm
by Riyaz
Hi There

About the JIWA popup "Debtor has exceeded their credit limit, Are you sure you wish to save ?"

Is this possible to modify the content of this popup and also just have the OK button so they are not able to save it. IF not can we suppress this popup and trigger using a plugin instead?

Pls advise

Re: Debtor has exceeded their credit limit popup  Topic is solved

PostPosted: Thu Sep 24, 2020 8:17 am
by SBarnes
See the attached plugin, fairly easy to do given the sales order has an event for when the credit limit is exceeded so all you have to do is in the before set up of the form attach to the sales order event so you are ahead of Jiwa's code in which you show the message box and then throw a client cancelled exception to stop Jiwa from continuing into its normal save code.

Re: Debtor has exceeded their credit limit popup

PostPosted: Fri Sep 25, 2020 2:55 pm
by Riyaz
Perfect, thanks very much Stuart, appreciate it