Credit Note based on existing sales order  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Credit Note based on existing sales order

Postby DannyC » Mon Aug 29, 2016 6:31 pm

Hi,

I am hooking into the CreateEnd event of Sales Orders.

The subroutine fires when a sales order is created, and when a credit note is created clicking NO when prompted if from an existing sales order. But when a credit note IS created from an existing sales order, the subroutine doesn't fire.
Not sure if this is a bug or if there's something I am missing.

v 7.0.157. And I'm using VB. Net.

Cheers

Danny
User avatar
DannyC
Senpai
Senpai
 
Posts: 638
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Credit Note based on existing sales order

Postby DannyC » Tue Oct 25, 2016 2:31 pm

gentle bump ;)
User avatar
DannyC
Senpai
Senpai
 
Posts: 638
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Credit Note based on existing sales order  Topic is solved

Postby Mike.Sheen » Sun Nov 13, 2016 12:04 pm

Hi Danny,

Use the Created event from sales orders instead. We had issues making all the different possible ways of creating a sales order (from quote, as a credit note, job invoice, et cetera) behave consistently with the form so we introduced a new event - Created - to deal with that. That event will always be raised - and you get more information back as to how it was created - example handler would be:

Code: Select all
Private Sub Created(sender As Object, e As System.EventArgs, ByVal NewSalesOrderType As JiwaSales.SalesOrder.SalesOrder.NewSalesOrderTypes, ByRef SourceQuoteObject As JiwaSales.SalesQuote.SalesQuote)
   System.Windows.Forms.MessageBox.Show("Created")
End Sub


Mike
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 13 guests