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

Micros Simphony v2 - Check - Discounts Itemizers

Status
Not open for further replies.

nvak

Programmer
May 25, 2015
60
GR
Good evening,

Is there any way to get from isl code inside an open check the itemizers for a discount that is already append in the check?

I want the following information for a discount:
Untitled_euwhym.png


To have it here with some variable as the followings:
Untitled2_c4e1kz.png


Code:
Untitled3_ph9fy9.png
 
Dont think this is available via ISL.
You could get this information via Extensibility dll or by writing .NET code into your ISL.

Do you want some custom SIM scripts developed. Contact me via my website
 
Is it possible to give me some samples how to write .NET (c#) code in the isl?

Thanks
 
Something like this. Writing it from memory so not sure if syntax is 100% and i dont have a system to test on.

Put these two lines at the very start of the ISL file.

NetImport from &".\NetImport from &".\
Here is the inquiry code.

Code:
event inq : 1

            var ItemizerNames : object = new System.String[15]
            var DiscountItemizersObj : object = DataStore.ReadPropertyDescriptors().DiscountItemizers

            var j : N2 = 1
            for j < 16
                ItemizerNames[i] = DiscountItemizers[i].Name.ToString()
                infomessage ItemizerNames[i]
                j++
            endfor

endevent

Do you want some custom SIM scripts developed. Contact me via my website
 
Thank you very much for your answers!

Do you know if is there any way to connect to the SQLDatabase from isl to make custom queries?
 
There is no direct way as far as im aware but since you can now write .NET code into .isl files (or write a .NET Dll and call it from the ISL) you could access the DB via c#

Do you want some custom SIM scripts developed. Contact me via my website
 
Do you know why i get this error when the line "var ItemizerNames : object = new System.String[15]" is executed?
er0_eldbf6.png


And this error when the line "var DiscountItemizersObj : object = DataStore.ReadPropertyDescriptors().DiscountItemizers" is executed?
er1_qsiwbs.png

Is there any manual which explains those calls?
 
Must have the syntax for arrays wrong. Try an arraylist instead and stick an @ symbol infront of DataStore

Code:
event inq : 1

            var ItemizerNames : object = new System.Collections.ArrayList()
            var DiscountItemizersObj : object = @DataStore.ReadPropertyDescriptors().DiscountItemizers

            var j : N2 = 1
            for j < 16
                ItemizerNames.Add(DiscountItemizers[i].Name.ToString())
                infomessage ItemizerNames[i].ToString()
                j++
            endfor

endevent

Do you want some custom SIM scripts developed. Contact me via my website
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top