QSRules, Hooks, Deletions

Greetings

Can anyone confirm that there is not way to hook a deletion of an item via a hook, i.e. as opposed to using additem and saveitems hooks.

Also, in the POS, items can be accessed via the Session.transaction.... syntax. What would be the similar syntax for accessing an item when the user is adding an item in the SO Manager?

Cheers

JPH

Reply to
jph
Loading thread data ...

Are you talking about deleting an item from the database or removing an item from the transaction? Either way, there is no deleteItem hook, but you could simulate one for the deletion from the database by using RMS Security features to disable the "Delete" button. This would prevent the user from deleting items and would force them to make items Inactive instead. This would trigger the saveItem hook when they hit the "OK" Key.

The only item hook you can get in SO Manager is saveItem. This does not pass a session, it passes the ID of the new/saved item. You would then use SQL calls to get the properties of the item based on the passed in ID.

Glenn Adams Tiber Creek C> Greetings

Reply to
Glenn Adams [MVP - Retail Mgmt]

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.