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:
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
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