I am having an issue with adding an item using QSRules and was wondering if anyone had any suggestions (code) to help: I am trying to add item #11200 with a qty of 4 using the following code:
Public Function Process(Session As SessionClass) As Boolean Dim objAdded As Object Dim id As Long Dim ilc As String Dim qty As Double qty = 4 ilc = 11200 objAdded = Session.Transaction.Entries.Add(id, ilc, qty, 0, Fales, 0) Process = True End Function
I am utilizing the AddItem hook to execute the above and I get the "Object variable or With block variable not set" on the objAdded statement. Can anyone give me some suggestions to try (in code would be greatly appreciated). Thanks,