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 2 C# Extension API - Add Reference to Payment

Status
Not open for further replies.

JF05

Programmer
Apr 1, 2019
2
US
Hello -

Does anyone happen to know how you can add a Reference Entry to the Payment command using the C# Simphony 2 API?

Below is my current code:

Code:
OpsCommand cmd = new OpsCommand();
cmd.Command = OpsCommandType.Payment;
cmd.Number = 9000;
cmd.Arguments = "Cash:Cash";
cmd.Text = "500";
OpsContext.ProcessCommand(cmd);

I have Reference Entry required marked on the Tender Media. When I execute this code it pops up the Reference Box asking the user to type in the entry. If they type in something, it adds the tender appropriately however I'd like to be able to set the reference entry through the program. I have tried using cmd.Data = "Reference Text Here"; but that did not work.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top