Sage MAS 90 and 200 Sage MAS 500 blogs Product Feedback Support Training
Reply
Regular Contributor
youngmoon1982
Posts: 69
Registered: 06-08-2009
0
Accepted Solution

Manual Check and Payment Entry fires delete user defined script then fires write script too?

Hi, I am on MAS 90 v4.5.  I have two user defined scripts for the post write and post delete event.  I have code that does different things in both.  The problem is, when you create a next check entry and then before filling in any other data, click cancel, it fires off the delete, which is what I expect, then fires off a write!  But I must not call that script at all, so hoping to find some flag that I can use with the oSession object to just skip that code since it seems to call it regardless.  If I click accept, that is the only time my code should run in the post write event.  Yet, I don't know if this is possible?

 

thanks

Sage Employee
jepritch
Posts: 233
Registered: 08-25-2009

Re: Manual Check and Payment Entry fires delete user defined script then fires write script too?

@youngmoon1982,

 

I believe what is doing is creating a VOID cheque on the cancel.  The Delete() is to rid the existing entry, and the Write() is for creating a NEW VOID cheque.  So you should be able to alter your Post-Write script to look at the CheckType field, and NOT do it if CheckType is "V" for Void.

 

Hope this helps

 

Elliott

Regular Contributor
youngmoon1982
Posts: 69
Registered: 06-08-2009
0

Re: Manual Check and Payment Entry fires delete user defined script then fires write script too?

Oh, this sounds so promising! Thank you for the fast response sir!  I'll go apply and come back to confirm.

 

thanks

Regular Contributor
youngmoon1982
Posts: 69
Registered: 06-08-2009
0

Re: Manual Check and Payment Entry fires delete user defined script then fires write script too?

Thank you again, I am so happy to see helpful people on this site.  This is really valuable.  Have a great day.  It worked! :smileyhappy: