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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@DTL_Selected always returns 0 for doing a "Void"

Status
Not open for further replies.

LeanClink

Programmer
Nov 26, 2020
10
PH
I am trying out event tmed and @DTL variables. What I want to do is, select a Tender and identify if the action done is "VOID". However, for some reason, @DTL_SELECTED is always 0 even if the Tender has been selected.

Is there anything wrong with what I am doing below?

[ol 1]
[li]Select a Partial Tender[/li]
[li]Click default VOID button[/li]
[li]Script below runs but all DTL_SELECTED is 0[/li]
[/ol]

Code:
event tmed : *

for i= 1 to @NUMDTLT

   if @DTL_TYPE[i] = "T"
      errormessage i,":", @DTL_TYPE[i], ":", @DTL_NAME[i], ":", @DTL_SELECTED[i], @DTL_IS_VOID[i]
   endif

endfor

endevent
 
You will probably find that when the event triggers in the SIM the tender is not selected anymore, or its a bug.

Specialist in creating custom applications for the Micros POS range: 3700, 9700, Simphony FE, Simphony. SIM Scripts, Data Exports, Simphony extension applications, API Creation and integration. If you need anything please contact me via my website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top