Debtor has exceeded their credit limit popup  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Debtor has exceeded their credit limit popup

Postby Riyaz » Wed Sep 23, 2020 9:29 pm

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
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2

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

Postby SBarnes » Thu Sep 24, 2020 8:17 am

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.
Attachments
Plugin Override Credit Limit Exceeded.xml
Plugin override credit limit exceeded
(33.66 KiB) Downloaded 30 times
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1617
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Debtor has exceeded their credit limit popup

Postby Riyaz » Fri Sep 25, 2020 2:55 pm

Perfect, thanks very much Stuart, appreciate it
Riyaz
Kohai
Kohai
 
Posts: 233
Joined: Wed Dec 02, 2015 2:05 pm
Topics Solved: 2


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 7 guests

cron