SavePurchaseOrder Hook

Apr 17, 2006 2 Replies

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.


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

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:

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required