I've been asked to apply a SOP Line Item markdown on our Sales Transaction Entry Window.
I decide to have a go at using the VSTools for GP2013 to see if I can achieve this using C# rather than good old VBA. It's been a bit of a learning curve given the lack of useful documentation and samples but I have made some progress.
Using the following code I'm able to introduce a sop line markdown when the user leaves the entry line.
SOPEntryWindow.LineScroll.LineChangeAfterOriginal += new EventHandler(LineScroll_LineChangeAfterOriginal); SOPEntryWindow.LineScroll.LocalMarkdownAmount.Value = 4.95M;
The problem I have is that I won't know until all the line items have been entered if the markdown should be applied to all the lines entered. I've tried using the following script to activate a particular line but have been unable to make any progress.
GPForms.Forms.SopEntry.Functions.GetLineItemSequenceReturn.Invoke(1, GPForms.Forms.SopEntry.SopEntry.SopTypeDatabase.Value , GPForms.Forms.SopEntry.SopEntry.SopNumber.Value, 0, MyLineItemSeqNo , GPForms.Forms.SopEntry.Tables.SopLineWork);
Q. Is it possible to go back and revisit the Markdown value for each SOPLINE entered by the user?
PS. What is the difference between LineScroll.MarkdownAmount and LineScroll.LocalMarkdownAmount?
Many thanks for any assistance provided
Steve
*This post is locked for comments