SavePurchaseOrder Hook

I'm doing some customization work that needs to be invoked when the user saves a purchase order. I've written a dll which gets called by the SavePurchaseOrder hook when the P.O. is saved. However there is also a "commit" button on the P.O. screen which is used to finalize receipt of items on the P.O. When the "commit" button is pushed it does not apper to call the SavePurchaseOrder hook. Has anyone else run into this problem and/or can someone verify my findings? Is there another hook which gets called when the "commit" button is pushed?

Thanks.

Reply to
Donald T
Loading thread data ...

Hi Donald I am having an issue,think youcan help me I need to use the Saveitem hook and did set registry parameter to 5 ,but it doesent call my dll instead it errs. Should the code snippet:

----------------------------------------------- Public Function Process(Session As QSRules.SessionClass) As Boolean

? Perform processing using Session to interact with QSRules

? Return True or False as appropriate based on the success of this function

End Function

--------------------------------- be changed > I'm doing some customization work that needs to be invoked when the user

Reply to
Zak

Try: Public Function Process(mySession As Object) As Boolean dim ItemNum as long

ItemNum = mySession msgbox("Saving Item with ID Number = " & ItemNum) Process = true End Function

Note that ItemNum is the database-created Item ID, not the ItemLookupCode. Your code would need to execute something on the order of "SELECT * FROM Item WHERE ID=xxx" to get back anything useful.

"Zak" wrote:

Reply to
Donald T

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.