Page 1 of 1

Credit Note based on existing sales order

PostPosted: Mon Aug 29, 2016 6:31 pm
by DannyC
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

Re: Credit Note based on existing sales order

PostPosted: Tue Oct 25, 2016 2:31 pm
by DannyC
gentle bump ;)

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

PostPosted: Sun Nov 13, 2016 12:04 pm
by Mike.Sheen
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