I am using Descriptor.TenderType property to retrieve all the Tender types like Credit, Debit, etc for my program. And in that program I'm using the "Other" Tender type and I want to invoke some piece of the code only for a specific Tender Code. The reason why I want to do this is because, the Other Types can be anything and the Tender Code is the only option for me and that is the only way that I found to distinguish my condition. I am setting a particular Tender Code in Store Operations Manager, and I want to check for this tender code for the Tender EndHook in my program... Now my program is checking for all the tender codes which come under Others Tender Type using the following statement...
------------------------------------------------------------ Dim obj as Object
For each obj In mySession.Transaction.Tenders If (obj.Descriptor.TenderType = TenderEnum.tenderOther) Then ' Code to perform when the condition is met End If Next
But, I want to check like this... Dim obj as Object
For each obj In mySession.Transaction.Tenders
If (obj.Descriptor.TenderCode = "TC") Then ' Code to perform when the condition is met End If
Next
---------------------------------------------------------------- But, unfortunately, I couldn't use the TenderCode property because the Descriptor class doesn't have a property called TenderCode... How do I get the TenderCode for a particular Tender? Thank you very much