Issue with custom hook after installing Mercury Gift cards softwar

Hi all,

I developed a custom hook that uses the TenderBegin hook to check to see, based on category of an item, how many items are on the order in a per-category basis. if the count is more than what the user wants, there is a custom action that is performed. Our rules here in Pennsylvania, USA state that after adding more than 3 cases of beer, or after purchasing a single keg of beer, we must collect customer information. We currently have the "scan the drivers license" piece in place, and it works. My piece is installed via an MSI installer, that uses the flag on the dll that tells the dll to be installed in the GAC, and to register it for COM interop (it's compiled against .Net 3.5, fyi) We have deployed it at several locations without an issue. Unfortunately, our latest client has decided to use Mercury GC's in their store, and after installing the Mercury GC software, my addin no longer functions at all. Has anyone else run into this, and if so, what was the outcome/result/possible solution to this issue?

Any help would be appreciated. Thanks.

Reply to
Richard B/Revolution POS
Loading thread data ...

Check the Hook keys in windows register...

cod

Reply to
cod

Hey cod,

Mercury did do one thing right in their installer... it looks for the next avail key in the registry to attach to. Unfortunately, that is not the issue. I reprogrammed the keys in manually just as a "check" on that.

I was hoping that someone from Mercury would have been on the board to answer... as I was up all night (until about 5:00AM EDT) looking into this. I'm a tad surprised that this never happened to anyone before.

Do you know if you can do more than 1 custom add-in on a single hook type? For instance, the BeginTender hook?

Also, I'm not running the traditional GACUTIL and REGASM executables to do this, I'm using the stuff in the MSI installer to handle the installation into the GAC. If I install on a clean-install of RMS without other add-ins, I'm not having issues. So far, it's only after I install the Mercury GC Add-in that I have the issue.

--Richard

"cod" wrote:

Reply to
Richard B/Revol

Ok,

So I win the PEBCAK award for this project. Turned out to be an issue of Null values in the data tables that I was reading. I didn't think like a user and forgot to drop a trigger on the category table that after an insert, it puts a new record into my tables, and likewise for a delete, to remove the unnecessary record.

Thanks again Dan and Marc. If I wound up putting you guys out or anything, I sincerely apologize. I was just losing it, and forgot one of my basic beliefs/rants/etc. with debugging newly created products.... I forgot to ask for a copy of the data!

Anyhow, it wasn't to do with the installer, which made me feel 1,000 times better.

Thanks again!

--Richard

Reply to
Richard B/Revol

As I do not believe that I did this sufficiently, I want to make one point clear. Mercury's Gift Card interface was not the issue with the package, as it was a programming error in my source code. When I say that I was not thinking like a user, what I meant by that was I had assumed that any time an end-user would be editing categories, I would have thought that they would run my configuration piece to assign "groups" to the cateogories, and set discount quantities to each of the categories.

A word of advice for any developer working on doing custom hooks in RMS.... take a copy of the database and develop against it when there is an error, and 2) wrap your procedure in a try...catch block, and then put even a messagebox with the exception displayed. YOu will save countless hours of headache.

Thanks again Marc and Dan!

Reply to
Richard B/Revol

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.