Trying to convert a breakout that is on the 6.5.13
SalesOrderBatchProcessing event ProcessInvoiceBefore
I may have got the event correct. as below
- Code: Select all
Dim SalesOrdBatchForm As JiwaSalesUI.BatchProcessing.BatchProcess
AddHandler SalesOrdBatchForm.BatchProcess.ProcessStart, AddressOf SalesOdrerBatchProcessStart
now need to find the the InvoiceId ( or InvoiceNo) - the code below does not give the what I need. Any help is appreciated.
- Code: Select all
Private Sub SalesOdrerBatchProcessStart(sender As Object, e As System.EventArgs)
Dim oSalesOrderBatch As JiwaSales.BatchProcessing.BatchProcess = DirectCast( sender , JiwaSales.BatchProcessing.BatchProcess )
msgbox ("invoiceno - " + oSalesOrderBatch.Ranges.InvoiceNo.ToString())
msgbox ("debtor account no - " + oSalesOrderBatch.Ranges.DebtorAccountNo.ToString())
End Sub


