Hi,
I wrote a plugin which was working fine in 7.00.78 but is now giving this error when logging into same database after upgrade to 7.00.97. See image attached.
Thanks


Private Sub SalesOrderAddLine(item As JiwaSales.SalesOrder.SalesOrderLine)
Dim inventory As JiwaInventory.Inventory = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaInventory.Inventory)
inventory.Read(item.InventoryID)
If inventory.Status = 4 Then
'Check if any alternatives
If inventory.AlternateChildren.Count = 0 Then
messagebox.show(inventory.PartNo & " is obsolete and has no alternatives.")
End If
End If
End Sub

Dim inventory As JiwaInventory.Inventory = JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic(Of JiwaInventory.Inventory)(Nothing)

If inventory.Status = 4 ThenIf inventory.Status = JiwaInventory.Inventory.InventoryStatuses.e_InventoryStatusObsolete Then
Return to Technical and or Programming
Users browsing this forum: No registered users and 6 guests