I would like to close a check or add a payment to a specific check using the checkGuid, if I use OpsContext the check has to be opened on the workstation so I can post the payment, but I want an external function to close the check using its GUID.
Dim OpenChecks As New OpsCommand(OpsCommandType.PickUpCheckByGuid)
OpenChecks.Text = "1d4b9dc9dc0545a09cd671c962242b0000021566"
OpsContext.QueueCommand(OpenChecks)
OpsContext.ProcessCommand(OpenChecks)
Dim TMCommand As New OpsCommand(OpsCommandType.Payment)
TMCommand.Text = "100"
TMCommand.Number = 3002
OpsContext.QueueCommand(TMCommand)
OpsContext.ProcessCommand(TMCommand)
Dim SendCommand As New OpsCommand(OpsCommandType.TenderMedia)
SendCommand.Number = 1001
OpsContext.QueueCommand(SendCommand)
OpsContext.ProcessCommand(SendCommand)
I get error message "There is no transaction in progress"
Dim OpenChecks As New OpsCommand(OpsCommandType.PickUpCheckByGuid)
OpenChecks.Text = "1d4b9dc9dc0545a09cd671c962242b0000021566"
OpsContext.QueueCommand(OpenChecks)
OpsContext.ProcessCommand(OpenChecks)
Dim TMCommand As New OpsCommand(OpsCommandType.Payment)
TMCommand.Text = "100"
TMCommand.Number = 3002
OpsContext.QueueCommand(TMCommand)
OpsContext.ProcessCommand(TMCommand)
Dim SendCommand As New OpsCommand(OpsCommandType.TenderMedia)
SendCommand.Number = 1001
OpsContext.QueueCommand(SendCommand)
OpsContext.ProcessCommand(SendCommand)
I get error message "There is no transaction in progress"