Hey Guys,
I am dying to figure out whether there is any way to get the individual Item time (when it was added in a transaction) in either PrintReceipt hook or TenderEnd hook? We certainly can use Add Item hook to record time when the item was added but if user decides to hold it and again recalling after two or three transactions is where my pain starts.
I am doing integration using qsrules.dll in vb.net. I am maintaining a dictonary in AddItem hook where I am storing time of each individual item.
Now lets say that user is holding transaction and starts new one. This time I will be in need to store my dictionary (of Add Item hook) in RAM for later processing. Well, In Add Item hook they dont have anything unique so that I can store that dictionary using that key. Unique means in AddItem hook I am always getting TransactionNumner=0 (this is getting number in either EndTender hook or PrintReceipt hook). I dont know how to get the Transaction hold ID (if any) so that I can associate this unique value to the dictionary and put it aside in RAM.
If there is any field available in session.transaction.transactionentry to give me time when the item was added my problem gets solved. Or even any unique field which I can use in Add Item hook to store it and when the transaction will be recalled I can compare with.
Any help or hint will be highly appriciated.
Please help..
Thanks
|