Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simphony Extensibility - Getting Check data from events

Status
Not open for further replies.

Yusuf SRC

Programmer
Nov 2, 2022
11
TR
I want to subscribe check events from our extension app. When a check is closed, I mean a customer makes payment and the cashier closes the check, I want to subscribe that event and get the current check / transaction information. We can manage that by adding an event / delegate function like so;

Code:
OpsCloseCheckEvent += OnCloseCheckEvent;

private EventProcessingInstruction OnCloseCheckEvent(object sender, OpsCloseCheckEventArgs args)
        {
            try
            {
                OpsContext.ShowMessage("check closed");
                return (EventProcessingInstruction)0;
            }
            catch
            {
                return (EventProcessingInstruction)1;
            }

        }

İt fires the event and shows the message like I want. But how can I get the check object / information that has been paid from the args or sender parameters. I couldn’t find any methods in the args parameter. Maybe I need to subscribe to a different event. If possible, can you help this question with some code examples please ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top