Post Transaction Hook

Aug 03, 2008 2 Replies

Dear All, We are facing a problem while building some customization for RMS POS 1.3, according to the customization guide found at the partner source, the HOOK PostTransaction (Number 0) will be activate when the cashier selects Print X Report, Print Z Report, Print ZZ Report, or Perform Blind Closeout from the Open/Close dialog box (F5 key). Also If the Process function of the add-in returns TRUE the transaction is posted to the database; otherwise, an error occurs. Based on this logic we are trying to stop the batch closing process if a certain condition is not satisfied, so based on this the Process Function will return FALSE if the condition is not satisfied. Our problem here is that the batch will be closed in both cases if the Process function returns true or false, and I went more deeply into the problem and placed a Break Point (Debugging Point) at the top of the Process Function, when the execution stop at that point I checked the row in the Batch table and I found some surprise there where the batch is already marked Closed and the closing time was recorded also. Here is the Implementation of the process function: Public Function Process(ByVal mySession As QSRules.SessionClass) As Boolean



If mySession.Transaction.TransactionType =transactiontypeZReport _ Or mySession.Transaction.TransactionType =transactiontypeZZReport _ Or mySession.Transaction.TransactionType = transactiontypeBlindCloseout Then



If mySession.Report.Tenders.Element(2).OverShort 0 Then MsgBox("Invalid Credit Card closing amount, Shift opening "



  • _ "Credit Card amount plus Total Shift Credit Card amount" + _ "should be equal to Shift Closing Credit Card amount", _ MsgBoxStyle.Information) Process = False Exit Function Else Process = True Exit Function End If

End If



Process = True End Function



So please if you can help us in this problem, or if there is any hotfix for RMS which solves this behavior.



Best Regards,


Thanks for your support, I need it for credit cards, if i do what you said it will not care about the tender types it cares only for total amount.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required