I have this bit of code where I am expecting the MessageBox to display the Ordered (Inc GST ) Value on sales order window ( bottom right )
However it displays the This Del, (Inc GST ) value.
What am I doing wrong ? Am I using the incorrect property for the Ordered Total ?
- Code: Select all
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
If TypeOf JiwaForm Is JiwaSalesUI.SalesOrder.SalesOrderEntryForm Then
Dim SalesOrdForm As JiwaSalesUI.SalesOrder.SalesOrderEntryForm = DirectCast(JiwaForm, JiwaApplication.IJiwaForm)
_SalesOrderForm = DirectCast(JiwaForm, JiwaSalesUI.SalesOrder.SalesOrderEntryForm)
AddHandler SalesOrdForm.SalesOrder.SaveEnding , AddressOf SalesOrderSaveEnding
End If
End Sub
Private Sub SalesOrderSaveEnding( sender As Object , e As System.EventArgs )
Dim oSalesOrder As JiwaSales.SalesOrder.SalesOrder = DirectCast( sender , JiwaSales.SalesOrder.SalesOrder )
MessageBox.Show( "oSalesOrder.InvoiceTotal = " + oSalesOrder.InvoiceTotal.ToString() )




