Home Page link  

Post Transaction Hook

 

Point-Of-Sale Software - - MS Point Of Sale software discussed here

 Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Post Transaction Hook Ibrahim Zubair 08-03-2008
Posted by Ibrahim Zubair on August 3, 2008, 1:39 am
Please log in for more thread options
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,

--
Ibrahim Zubair

Posted by Matt Hurst on August 5, 2008, 12:02 am
Please log in for more thread options
Easier fix is to change the cashier's Over/Short limit so they can't close a
batch if the over/short is more than the given value.

"Ibrahim Zubair" wrote:

> 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,
>
> --
> Ibrahim Zubair

Posted by Ibrahim Zubair on August 6, 2008, 9:07 am
Please log in for more thread options


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.

--
Ibrahim Zubair


"Matt Hurst" wrote:

> Easier fix is to change the cashier's Over/Short limit so they can't close a
> batch if the over/short is more than the given value.
>
> "Ibrahim Zubair" wrote:
>
> > 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,
> >
> > --
> > Ibrahim Zubair

Similar ThreadsPosted
Should PostTender hook fire when you call Transaction.Post? November 7, 2005, 6:35 am
Post a historic transaction August 30, 2006, 10:23 am
Help! Using VB.NET Post Transaction. What wrong with my code? December 13, 2005, 4:41 pm
Prompt window after Post Transaction. March 26, 2006, 5:48 pm
Hook to add item to transaction August 22, 2005, 8:16 am
Hook at print time. Hook #1 August 9, 2005, 2:21 pm
RMS add-ons - Post any and all! December 25, 2005, 3:45 pm
BEFORE YOU POST -- SEARCH THE NG January 26, 2006, 7:29 pm
BEFORE YOU POST --- SEARCH THE NG February 8, 2006, 9:45 am
POst Office June 8, 2006, 3:10 pm

Contact Us | Privacy Policy
This site is not affiliated with Intuit - makers of Quickbooks and Quicken software
This site is not affiliated with Sage Software - makers of Peachtree accounting software
XML SitemapXML Sitemap