SalesOrder Class
The SalesOrder Class represents a sales order. It is the business logic class for sales orders and invoices. This class is used to create, read, edit, delete and process sales orders.
Namespace:
JiwaFinancials.Jiwa.JiwaSales.SalesOrderAssembly: JiwaSales (in JiwaSales.dll)
Syntax
[CLSCompliantAttribute] public class SalesOrder : Maintenance, IJiwaNotes, IJiwaDocuments, IJiwaCustomFields, IJiwaCustomFieldValues, IJiwaToDos, IJiwaWarehouseFiltering, IJiwaEmailFromTemplate
<CLSCompliantAttribute> _ Public Class SalesOrder _ Inherits Maintenance _ Implements IJiwaNotes, IJiwaDocuments, IJiwaCustomFields, IJiwaCustomFieldValues, _ IJiwaToDos, IJiwaWarehouseFiltering, IJiwaEmailFromTemplate
[CLSCompliantAttribute] public ref class SalesOrder : public Maintenance, IJiwaNotes, IJiwaDocuments, IJiwaCustomFields, IJiwaCustomFieldValues, IJiwaToDos, IJiwaWarehouseFiltering, IJiwaEmailFromTemplate
Examples
VB.NET
Imports JiwaFinancials.Jiwa Public Class TestClass Private Sub ReadFirstSalesOrder() Dim jiwaApplicationManager As JiwaApplication.Manager JiwaApplication.Manager.Instance.Logon("JiwaMike", "JiwaDemo", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", "password") Dim salesOrder As JiwaSales.SalesOrder.SalesOrder = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaSales.SalesOrder.SalesOrder)() salesOrder.Find(JiwaApplication.IJiwaNavigable.ReadModes.First, "SO_Main.InvoiceNo", "", "") Console.WriteLine(String.Format("First Sales order is : {0}", salesOrder.InvoiceNo)) JiwaApplication.Manager.Instance.LogOff() End Sub End Class
Examples
VB.NET
Imports JiwaFinancials.Jiwa Public Class TestClass Private Sub CreateNewSalesOrder() Dim jiwaApplicationManager As JiwaApplication.Manager JiwaApplication.Manager.Instance.Logon("JiwaMike", "JiwaDemo", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", "password") Dim salesOrder As JiwaSales.SalesOrder.SalesOrder = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaSales.SalesOrder.SalesOrder)() salesOrder.CreateNew(JiwaSales.SalesOrder.SalesOrder.NewSalesOrderTypes.e_NewSalesOrder, "1001", False) Dim lkey As String = "" salesOrder.SalesOrderLines.AddInventoryItem("1170", JiwaSales.SalesOrder.SalesOrderLineCollection.SalesOrderLineInventorySeedTypes.e_SalesOrderLinePartNo, lkey) salesOrder.SalesOrderLines(lkey).QuantityOrdered = 5 salesOrder.Save() Console.WriteLine(String.Format("New Invoice No. is : {0}", salesOrder.InvoiceNo)) JiwaApplication.Manager.Instance.LogOff() End Sub End Class
Examples
VB.NET
Imports JiwaFinancials.Jiwa Public Class TestClass Private Sub ProcessSalesOrder(ByVal InvoiceID As String) Dim jiwaApplicationManager As JiwaApplication.Manager JiwaApplication.Manager.Instance.Logon("JiwaMike", "JiwaDemo", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", "password") Dim salesOrder As JiwaSales.SalesOrder.SalesOrder = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaSales.SalesOrder.SalesOrder)() salesOrder.Read(InvoiceID) salesOrder.Process() Console.WriteLine(String.Format("Invoice No. {0} is now processed.", salesOrder.InvoiceNo)) JiwaApplication.Manager.Instance.LogOff() End Sub End Class
Inheritance Hierarchy
MarshalByRefObject
JiwaFinancials.Jiwa.JiwaApplication.BusinessLogic..::..Maintenance
JiwaFinancials.Jiwa.JiwaSales.SalesOrder..::..SalesOrder