I am trying to figure out how to grab the tenderentryid of a tender that was used during a transaction. Here is the code that I have set as the PrintReceiptHook:
Public Class Test Public Function Process(ByRef Session As Object) As Boolean Dim i As Integer Dim TenderedAmount As Double
For i = 1 To Session.Transaction.Tenders.Count TenderedAmount Session.Transaction.Tenders.Element(i).AmountIn - Session.Transaction.Tenders.Element(i).AmountOut If (TenderedAmount 0) Then MsgBox(Session.Transaction.Tenders.Element(i).Descriptor.Description & ": " & TenderedAmount) MsgBox("What is the TenderEntryId that is inserted?") End If Next
Process = True End Function End Class
Thanks for any help that you may be able to give, Dan