﻿<?xml version="1.0" encoding="utf-16"?>
<JiwaDocument xmlns:jiwa="http://www.jiwa.com.au/xml/schemas" Type="JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin">
  <RecID>39b05243-765f-40b6-b204-3d80c9b6c2d7</RecID>
  <Name>HAB - Custom Fields combined</Name>
  <Description>This plugin builds multiple combo boxes, custom fields and custom field lookups. </Description>
  <IsEnabled>true</IsEnabled>
  <IsIsolatedToOwnAppDomain>false</IsIsolatedToOwnAppDomain>
  <ExecutionOrder>0</ExecutionOrder>
  <Author>Atronics Consulting</Author>
  <Version>7.0.175.0</Version>
  <Code>Imports JiwaFinancials.Jiwa
Imports Microsoft.VisualBasic
Imports System.Windows.Forms
Imports System.Data.SqlClient
Imports System.Drawing
Imports System.Data
Imports System.Collections.Generic

Public Class FormPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaFormPlugin

	Public Overrides Function InitializeLifetimeService() As Object
	' returning null here will prevent the lease manager
	' from deleting the Object.
		Return Nothing
	End Function

	Public Sub SetupBeforeHandlers(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.SetupBeforeHandlers
	End Sub

	Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
	End Sub
End Class

Public Class BusinessLogicPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaBusinessLogicPlugin

Private _InventoryObject As JiwaInventory.Inventory 
Private _DebtorObject As JiwaDebtors.Debtor 

Public Overrides Function InitializeLifetimeService() As Object
' returning null here will prevent the lease manager
' from deleting the Object.
Return Nothing
End Function


'************* from HAB end
	Public Sub Setup(ByVal JiwaBusinessLogic As JiwaApplication.IJiwaBusinessLogic, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaBusinessLogicPlugin.Setup
		_InventoryObject = DirectCast(JiwaBusinessLogic, JiwaInventory.Inventory)
		AddHandler _InventoryObject.CustomFieldValues.Changed, AddressOf CustomFieldValues_Changed
		_DebtorObject = DirectCast(JiwaBusinessLogic, JiwaDebtors.Debtor)
		AddHandler _DebtorObject.CustomFieldValues.Changed, AddressOf CustomFieldValues_Changed	
	End Sub
	'*******

Private Sub CustomFieldValues_Changed(item As JiwaApplication.CustomFields.CustomFieldValue, e As System.ComponentModel.PropertyChangedEventArgs)
	If item.CustomField.PluginCustomField.Name = "Arbitration" Then 
		If item.Contents Is Nothing Then
			item.Contents = "1"	
		End If	
	Else If item.CustomField.PluginCustomField.Name = "Insurance" Then 
		If item.Contents Is Nothing Then
			item.Contents = "1"	
		End If	
	Else If item.CustomField.PluginCustomField.Name = "Franchise" Then 
		If item.Contents Is Nothing Then
			item.Contents = "1"	
		End If	
	Else If item.CustomField.PluginCustomField.Name = "PrcingBasis" Then 
		If item.Contents Is Nothing Then
			item.Contents = "1"	
		End If	
	Else If item.CustomField.PluginCustomField.Name = "PriceType" Then 
		If item.Contents Is Nothing Then
			item.Contents = "1"	
		End If		
	Else If item.CustomField.PluginCustomField.Name = "WebCategory_Brand" Then 
		If item.Contents Is Nothing Then
			item.Contents = "1"	
		End If	
	End If
End Sub
End Class

Public Class ApplicationManagerPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaApplicationManagerPlugin

Public Overrides Function InitializeLifetimeService() As Object
' returning null here will prevent the lease manager
' from deleting the Object.
Return Nothing
End Function

Public Sub Setup(ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaApplicationManagerPlugin.Setup
End Sub

End Class

Public Class CustomFieldPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaCustomFieldPlugin

Public Overrides Function InitializeLifetimeService() As Object
' returning null here will prevent the lease manager
' from deleting the Object.
Return Nothing
End Function

Public Sub FormatCell(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal HostObject As JiwaApplication.IJiwaCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaCustomFieldPlugin.FormatCell
	If CustomField.PluginCustomField.Name = "Arbitration" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("Friendly")

		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("Friendly")

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
	Else If CustomField.PluginCustomField.Name = "Insurance" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("Buyers Care")
		MyDisplayItems.Add("Sellers Care")

		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("Buyers Care")
		MyUnderlyingValues.Add("Sellers Care")

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
	Else If CustomField.PluginCustomField.Name = "Franchise" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("Net Shipped Weight 0.5 Percent Franchise")
		MyDisplayItems.Add("Net Shipped Weight 1.0 Percent Franchise")

		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("Net Shipped Weight 0.5 Percent Franchise")
		MyUnderlyingValues.Add("Net Shipped Weight 1.0 Percent Franchise")

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
	Else If CustomField.PluginCustomField.Name = "PrcingBasis" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("DTS")
		MyDisplayItems.Add("Ex Store")

		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("DTS")
		MyUnderlyingValues.Add("Ex Store")

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
	Else If CustomField.PluginCustomField.Name = "PriceType" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("Lb")
		MyDisplayItems.Add("Ton")
		MyDisplayItems.Add("1")

		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("c/lb")
		MyUnderlyingValues.Add("PMT")
		MyUnderlyingValues.Add("P/Kg")		

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
'	Else If CustomField.PluginCustomField.Name = "Spare2" Then 
'		Dim MyDisplayItems As New List(Of String)
'		Dim MyUnderlyingValues As New List(Of String)
'
'		MyDisplayItems.Add("Not Set")
'		MyDisplayItems.Add("Net Shipped Weight 0.5 Percent Franchise")
'		MyDisplayItems.Add("Net Shipped Weight 1.0 Percent Franchise")
'
'		MyUnderlyingValues.Add("1")
'		MyUnderlyingValues.Add("2")
'		MyUnderlyingValues.Add("3")
'
'		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
'		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
'		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray		
	Else If CustomField.PluginCustomField.Name = "PaymentType" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("CAD Against 1st Presentation")
		MyDisplayItems.Add("Withinb 48 hours of receipt of documents")
		MyDisplayItems.Add("Payment on Receipt of Fax Documents")
		MyDisplayItems.Add("14 days from Receipt of Documents")
		MyDisplayItems.Add("30 days from Bill of Lading Date")
		MyDisplayItems.Add("45 days from Bill of Lading Date")		
		MyDisplayItems.Add("60 days from Bill of Lading Date")
		MyDisplayItems.Add("90 days from Bill of Lading Date")		
		MyDisplayItems.Add("120 days from Bill of Lading Date")
	

		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("CAD Against 1st Presentation")
		MyUnderlyingValues.Add("Withinb 48 hours of receipt of documents")
		MyUnderlyingValues.Add("Payment on Receipt of Fax Documents")
		MyUnderlyingValues.Add("14 days from Receipt of Documents")
		MyUnderlyingValues.Add("30 days from Bill of Lading Date")
		MyUnderlyingValues.Add("45 days from Bill of Lading Date")	
		MyUnderlyingValues.Add("60 days from Bill of Lading Date")	
		MyUnderlyingValues.Add("90 days from Bill of Lading Date")
		MyUnderlyingValues.Add("120 days from Bill of Lading Date")

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
	Else If CustomField.PluginCustomField.Name = "ShippingPeriod" Then 
		Dim MyDisplayItems As New List(Of String)
		Dim MyUnderlyingValues As New List(Of String)

		MyDisplayItems.Add("Not Set")
		MyDisplayItems.Add("1-15 Jan")
		MyDisplayItems.Add("16-31 Jan")
		MyDisplayItems.Add("1-31 Jan")		
		MyDisplayItems.Add("1-14 Feb")
		MyDisplayItems.Add("15-28 Feb")
		MyDisplayItems.Add("1-28 Feb")
		MyDisplayItems.Add("1-15 Mar")
		MyDisplayItems.Add("16-31 Mar")
		MyDisplayItems.Add("1-31 Mar")
		MyDisplayItems.Add("1-15 Apr")
		MyDisplayItems.Add("16-30 Apr")
		MyDisplayItems.Add("1-30 Apr")
		MyDisplayItems.Add("1-15 May")
		MyDisplayItems.Add("16-31 May")
		MyDisplayItems.Add("1-31 May")
		MyDisplayItems.Add("1-15 Jun")
		MyDisplayItems.Add("16-30 Jun")
		MyDisplayItems.Add("1-30 Jun")
		MyDisplayItems.Add("1-15 Jul")
		MyDisplayItems.Add("16-31 Jul")
		MyDisplayItems.Add("1-31 Jul")
		MyDisplayItems.Add("1-15 Aug")
		MyDisplayItems.Add("16-31 Aug")
		MyDisplayItems.Add("1-31 Aug")
		MyDisplayItems.Add("1-15 Sep")
		MyDisplayItems.Add("16-30 Sep")
		MyDisplayItems.Add("1-30 Sep")
		MyDisplayItems.Add("1-15 Oct")
		MyDisplayItems.Add("16-31 Oct")
		MyDisplayItems.Add("1-31 Oct")
		MyDisplayItems.Add("1-15 Nov")
		MyDisplayItems.Add("16-31 Nov")
		MyDisplayItems.Add("1-31 Nov")
		MyDisplayItems.Add("1-15 Dec")
		MyDisplayItems.Add("16-31 Dec")		
		MyDisplayItems.Add("1-31 Dec")	
		
		MyUnderlyingValues.Add("")
		MyUnderlyingValues.Add("1-15 Jan")
		MyUnderlyingValues.Add("16-31 Jan")
		MyUnderlyingValues.Add("1-31 Jan")		
		MyUnderlyingValues.Add("1-14 Feb")
		MyUnderlyingValues.Add("15-28 Feb")
		MyUnderlyingValues.Add("1-28 Feb")
		MyUnderlyingValues.Add("1-15 Mar")
		MyUnderlyingValues.Add("16-31 Mar")
		MyUnderlyingValues.Add("1-31 Mar")
		MyUnderlyingValues.Add("1-15 Apr")
		MyUnderlyingValues.Add("16-30 Apr")
		MyUnderlyingValues.Add("1-30 Apr")
		MyUnderlyingValues.Add("1-15 May")
		MyUnderlyingValues.Add("16-31 May")
		MyUnderlyingValues.Add("1-31 May")
		MyUnderlyingValues.Add("1-15 Jun")
		MyUnderlyingValues.Add("16-30 Jun")
		MyUnderlyingValues.Add("1-30 Jun")
		MyUnderlyingValues.Add("1-15 Jul")
		MyUnderlyingValues.Add("16-31 Jul")
		MyUnderlyingValues.Add("1-31 Jul")
		MyUnderlyingValues.Add("1-15 Aug")
		MyUnderlyingValues.Add("16-31 Aug")
		MyUnderlyingValues.Add("1-31 Aug")
		MyUnderlyingValues.Add("1-15 Sep")
		MyUnderlyingValues.Add("16-30 Sep")
		MyUnderlyingValues.Add("1-30 Sep")
		MyUnderlyingValues.Add("1-15 Oct")
		MyUnderlyingValues.Add("16-31 Oct")
		MyUnderlyingValues.Add("1-31 Oct")
		MyUnderlyingValues.Add("1-15 Nov")
		MyUnderlyingValues.Add("16-31 Nov")
		MyUnderlyingValues.Add("1-31 Nov")
		MyUnderlyingValues.Add("1-15 Dec")
		MyUnderlyingValues.Add("16-31 Dec")		
		MyUnderlyingValues.Add("1-31 Dec")

		

		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).EditorValue = FarPoint.Win.Spread.CellType.EditorValue.ItemData
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).Items = MyDisplayItems.ToArray
		DirectCast(GridObject.Activesheet.Cells(Row, Col).CellType, FarPoint.Win.Spread.CellType.ComboBoxCellType).ItemData = MyUnderlyingValues.ToArray
	End If
End Sub

Public Sub ReadData(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Row As Integer, ByVal HostObject As JiwaApplication.IJiwaCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaCustomFieldPlugin.ReadData
		Dim SQLParam As SqlClient.SqlParameter = Nothing
		Dim SQLReader As SqlDataReader = Nothing
		If CustomField.PluginCustomField.Name.Trim = "40-SalesPartNo" Then		
			
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT dbo.IN_Main.Partno, dbo.IN_Main.Description FROM dbo.IN_Main WHERE PartNo = @PartNo ORDER BY PartNo "
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@PartNo", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} / {1}", .Sanitise(SQLReader, "PartNo"), .Sanitise(SQLReader, "Description"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With
		ElseIf CustomField.PluginCustomField.Name.Trim = "43-Estate" Then
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT CR_Main.AccountNo, CR_Main.Name FROM CR_Main INNER JOIN CN_Main ON CR_Main.CreditorId=CN_Main.CreditorId "
					SQL += " INNER JOIN CN_GroupLink On CN_Main.ProspectId=CN_GroupLink.ProspectId And CN_GroupLink.GroupId='ESTATE' WHERE CR_Main.AccountNo = @CreditorAcct"
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@CreditorAcct", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} / {1}", .Sanitise(SQLReader, "AccountNo"), .Sanitise(SQLReader, "Name"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With
		ElseIf CustomField.PluginCustomField.Name.Trim = "FXContract" Then
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT TOP (100) PERCENT CR_ForwardCover.ContractNo, dbo.FX_Currency.ShortName, CR_ForwardCover.CurrencyRate, "
					SQL += "CR_ForwardCover.FXAmount - FXAmtValue As CoverRemaining FROM dbo.CR_ForwardCover As CR_ForwardCover "
					SQL += "INNER JOIN  dbo.FX_Currency On dbo.FX_Currency.RecID = CR_ForwardCover.FX_Main_RecID "
					SQL += "INNER JOIN  (Select CR_ForwardCover_RecID, SUM(FXAmount) As FXAmtValue From dbo.CR_ForwardCoverTransactions Group By CR_ForwardCover_RecID) As CTran "
					SQL += "On CR_ForwardCover.RecID = CTran.CR_ForwardCover_RecID WHERE (CR_ForwardCover.FXAmount - FXAmtValue) &gt; 0 AND CR_ForwardCover.ContractNo = @ContractNo "
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@ContractNo", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} / {1} / {2} / {3}", .Sanitise(SQLReader, "ContractNo"), .Sanitise(SQLReader, "ShortName"), .Sanitise(SQLReader, "CurrencyRate"), .Sanitise(SQLReader, "CoverRemaining"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With
''**** Inserted by JMI 07/12/16
		ElseIf CustomField.PluginCustomField.Name.Trim = "PO_No" Then
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT TOP (100) PERCENT CR_ForwardCover.ContractNo, dbo.FX_Currency.ShortName, CR_ForwardCover.CurrencyRate, "
					SQL += "CR_ForwardCover.FXAmount - FXAmtValue As CoverRemaining FROM dbo.CR_ForwardCover As CR_ForwardCover "
					SQL += "INNER JOIN  dbo.FX_Currency On dbo.FX_Currency.RecID = CR_ForwardCover.FX_Main_RecID "
					SQL += "INNER JOIN  (Select CR_ForwardCover_RecID, SUM(FXAmount) As FXAmtValue From dbo.CR_ForwardCoverTransactions Group By CR_ForwardCover_RecID) As CTran "
					SQL += "On CR_ForwardCover.RecID = CTran.CR_ForwardCover_RecID WHERE (CR_ForwardCover.FXAmount - FXAmtValue) &gt; 0 AND CR_ForwardCover.ContractNo = @ContractNo "
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@ContractNo", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} / {1} / {2} / {3}", .Sanitise(SQLReader, "ContractNo"), .Sanitise(SQLReader, "ShortName"), .Sanitise(SQLReader, "CurrencyRate"), .Sanitise(SQLReader, "CoverRemaining"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With
''****
		ElseIf CustomField.PluginCustomField.Name.Trim = "ContractApproval" Then
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT HR_Staff.FName, HR_Staff.SName FROM  HR_Staff "
					SQL += "INNER JOIN  HR_CustomSettingValues On HR_Staff.StaffID = HR_CustomSettingValues.StaffID "
					SQL += "INNER JOIN HR_CustomSetting On HR_CustomSettingValues.SettingID = HR_CustomSetting.SettingID "
					SQL+= "WHERE HR_CustomSetting.SettingName = 'AuthorisePurchaseOrders' AND HR_CustomSettingValues.Contents = '1' AND FName = @StaffName"
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@StaffName", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} {1}", .Sanitise(SQLReader, "FName"), .Sanitise(SQLReader, "SName"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With
		ElseIf CustomField.PluginCustomField.Name.Trim = "ContractApprovalSQ" Then
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT HR_Staff.FName, HR_Staff.SName FROM  HR_Staff "
					SQL += "INNER JOIN  HR_CustomSettingValues On HR_Staff.StaffID = HR_CustomSettingValues.StaffID "
					SQL += "INNER JOIN HR_CustomSetting On HR_CustomSettingValues.SettingID = HR_CustomSetting.SettingID "
					SQL+= "WHERE HR_CustomSetting.SettingName = 'AuthorisePurchaseOrders' AND HR_CustomSettingValues.Contents = '1' AND FName = @StaffName"
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@StaffName", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} {1}", .Sanitise(SQLReader, "FName"), .Sanitise(SQLReader, "SName"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With
		ElseIf CustomField.PluginCustomField.Name.Trim = "ContractApprovalSO" Then
			Dim SQL As String = ""			
			With JiwaApplication.Manager.Instance.Database 
				Try
					SQL = "SELECT HR_Staff.FName, HR_Staff.SName FROM  HR_Staff "
					SQL += "INNER JOIN  HR_CustomSettingValues On HR_Staff.StaffID = HR_CustomSettingValues.StaffID "
					SQL += "INNER JOIN HR_CustomSetting On HR_CustomSettingValues.SettingID = HR_CustomSetting.SettingID "
					SQL+= "WHERE HR_CustomSetting.SettingName = 'AuthoriseSalesOrders' AND HR_CustomSettingValues.Contents = '1' AND FName = @StaffName"
						
					Using SQLCmd As SqlCommand = New SqlCommand(SQL, .SQLConnection, .SQLTransaction)
						SQLParam = New SqlParameter("@StaffName", System.Data.SqlDbType.Char)
	                	SQLParam.Value = CustomFieldValue.Contents 
	                	SQLCmd.Parameters.Add(SQLParam)
						
						SQLReader = .ExecuteReader(SQLCmd)
							
						If SQLReader.Read = True Then
							CustomFieldValue.DisplayContents = String.Format("{0} {1}", .Sanitise(SQLReader, "FName"), .Sanitise(SQLReader, "SName"))
						End If
					End Using
						
					SQLReader.Close()
				Finally
					If Not SQLReader Is Nothing Then
						SQLReader.Close()
					End If
				End Try					

			End With

		End If
	
	
End Sub

Public Sub ButtonClicked(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal HostObject As JiwaApplication.IJiwaCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaCustomFieldPlugin.ButtonClicked
		If CustomField.PluginCustomField.Name = "40-SalesPartNo" Then
		
		Dim AOption As JiwaApplication.JiwaSearch.SearchOption
        With JiwaApplication.Manager.Instance.Search
            .Clear()

            .FilterNo = 1
            .UsePinBoard = False
            .Caption = "Sales PartNo"

            AOption = New JiwaApplication.JiwaSearch.SearchOption
            With AOption
                .Title = "Partno"
                .SQLStr = "SELECT dbo.IN_Main.InventoryId, dbo.IN_Main.Partno, dbo.IN_Main.Description FROM dbo.IN_Main "
                .OrderBy = "ORDER BY Partno"
                .AddColumn("IDInventoryId", vbString, "", 0, 1)
                .AddColumn("Partno", vbString, "", 50, 2)
                .AddColumn("Description", vbString, "", 50, 3)				
            End With
            .AddSearchOption(AOption)
			
            AOption = Nothing
			
            If .Show(FormObject) = DialogResult.OK Then
				CustomFieldValue.Contents = .Fields(2).FieldValue
				CustomFieldValue.DisplayContents = .Fields(2).FieldValue
				
            End If
        End With
	ElseIf CustomField.PluginCustomField.Name.Trim = "43-Estate" Then
		
		Dim AOption As JiwaApplication.JiwaSearch.SearchOption
        With JiwaApplication.Manager.Instance.Search
            .Clear()

            .FilterNo = 2
            .UsePinBoard = False
            .Caption = "Estate"

            AOption = New JiwaApplication.JiwaSearch.SearchOption
            With AOption
                .Title = "Estate"
                .SQLStr = "SELECT dbo.CR_Main.CreditorId, dbo.CR_Main.AccountNo, dbo.CR_Main.Name FROM dbo.CR_Main INNER JOIN [dbo].[CN_Main] ON CR_Main.CreditorId=CN_Main.CreditorId INNER JOIN [dbo].[CN_GroupLink] ON CN_Main.ProspectId=CN_GroupLink.ProspectId AND CN_GroupLink.GroupId='ESTATE' "
                .OrderBy = "ORDER BY AccountNo"
                .AddColumn("CreditorId", vbString, "", 0, 1)
                .AddColumn("AccountNo", vbString, "", 50, 2)
                .AddColumn("Name", vbString, "", 50, 3)				
            End With
            .AddSearchOption(AOption)
			
            AOption = Nothing
						
            If .Show(FormObject) = DialogResult.OK Then
				CustomFieldValue.Contents = .Fields(2).FieldValue
				CustomFieldValue.DisplayContents = .Fields(2).FieldValue
				
            End If
        End With
	ElseIf CustomField.PluginCustomField.Name.Trim = "FXContract" Then
		
		Dim AOption As JiwaApplication.JiwaSearch.SearchOption
        With JiwaApplication.Manager.Instance.Search
            .Clear()

            .FilterNo = 3
            .UsePinBoard = False
            .Caption = "FXContract"

            AOption = New JiwaApplication.JiwaSearch.SearchOption
            With AOption
                .Title = "FXContract"
                .SQLStr = "SELECT TOP (100) PERCENT CR_ForwardCover.RecID, CR_ForwardCover.ContractNo, dbo.FX_Currency.ShortName, CR_ForwardCover.CurrencyRate, CR_ForwardCover.FXAmount - FXAmtValue AS CoverRemaining FROM dbo.CR_ForwardCover AS CR_ForwardCover INNER JOIN  dbo.FX_Currency ON dbo.FX_Currency.RecID = CR_ForwardCover.FX_Main_RecID INNER JOIN  (Select CR_ForwardCover_RecID, SUM(FXAmount) as FXAmtValue From dbo.CR_ForwardCoverTransactions Group By CR_ForwardCover_RecID) as CTran ON CR_ForwardCover.RecID = CTran.CR_ForwardCover_RecID WHERE (CR_ForwardCover.FXAmount - FXAmtValue) &gt; 0 "
                .OrderBy = "ORDER BY ContractNo"
                .AddColumn("RecID", vbString, "", 0, 1)
                .AddColumn("ContractNo", vbString, "", 40, 2)
                .AddColumn("ShortName", vbString, "", 30, 3)				
				.AddColumn("CurrencyRate", vbString, "", 30, 4)				
            End With
            .AddSearchOption(AOption)
			
            AOption = Nothing
						
            If .Show(FormObject) = DialogResult.OK Then
				CustomFieldValue.Contents = .Fields(2).FieldValue
				CustomFieldValue.DisplayContents = .Fields(2).FieldValue
				
            End If
        End With
	ElseIf CustomField.PluginCustomField.Name.Trim = "ContractApproval" Then
		
		Dim AOption As JiwaApplication.JiwaSearch.SearchOption
        With JiwaApplication.Manager.Instance.Search
            .Clear()

            .FilterNo = 4
            .UsePinBoard = False
            .Caption = "ContractApproval"

            AOption = New JiwaApplication.JiwaSearch.SearchOption
            With AOption
                .Title = "ContractApproval"
                .SQLStr = "SELECT HR_Staff.StaffID, HR_Staff.FName, HR_Staff.SName FROM   HR_Staff INNER JOIN  HR_CustomSettingValues ON HR_Staff.StaffID = HR_CustomSettingValues.StaffID INNER JOIN HR_CustomSetting ON HR_CustomSettingValues.SettingID = HR_CustomSetting.SettingID WHERE HR_CustomSetting.SettingName = 'AuthorisePurchaseOrders' AND HR_CustomSettingValues.Contents = '1' "
                .OrderBy = "ORDER BY FName"
                .AddColumn("StaffID", vbString, "", 0, 1)
                .AddColumn("FName", vbString, "", 50, 2)
                .AddColumn("SName", vbString, "", 50, 3)				
            End With
            .AddSearchOption(AOption)
			
            AOption = Nothing
						
            If .Show(FormObject) = DialogResult.OK Then
				CustomFieldValue.Contents = .Fields(2).FieldValue
				CustomFieldValue.DisplayContents = .Fields(2).FieldValue
				
            End If
        End With
	ElseIf CustomField.PluginCustomField.Name.Trim = "ContractApprovalSQ" Then
		
		Dim AOption As JiwaApplication.JiwaSearch.SearchOption
        With JiwaApplication.Manager.Instance.Search
            .Clear()

            .FilterNo = 5
            .UsePinBoard = False
            .Caption = "ContractApproval"

            AOption = New JiwaApplication.JiwaSearch.SearchOption
            With AOption
                .Title = "ContractApproval"
                .SQLStr = "SELECT HR_Staff.StaffID, HR_Staff.FName, HR_Staff.SName FROM   HR_Staff INNER JOIN  HR_CustomSettingValues ON HR_Staff.StaffID = HR_CustomSettingValues.StaffID INNER JOIN HR_CustomSetting ON HR_CustomSettingValues.SettingID = HR_CustomSetting.SettingID WHERE HR_CustomSetting.SettingName = 'AuthorisePurchaseOrders' AND HR_CustomSettingValues.Contents = '1' "
                .OrderBy = "ORDER BY FName"
                .AddColumn("StaffID", vbString, "", 0, 1)
                .AddColumn("FName", vbString, "", 50, 2)
                .AddColumn("SName", vbString, "", 50, 3)				
            End With
            .AddSearchOption(AOption)
			
            AOption = Nothing
						
            If .Show(FormObject) = DialogResult.OK Then
				CustomFieldValue.Contents = .Fields(2).FieldValue
				CustomFieldValue.DisplayContents = .Fields(2).FieldValue
				
            End If
        End With
	ElseIf CustomField.PluginCustomField.Name.Trim = "ContractApprovalSO" Then
		
		Dim AOption As JiwaApplication.JiwaSearch.SearchOption
        With JiwaApplication.Manager.Instance.Search
            .Clear()

            .FilterNo = 6
            .UsePinBoard = False
            .Caption = "ContractApproval"

            AOption = New JiwaApplication.JiwaSearch.SearchOption
            With AOption
                .Title = "ContractApproval"
                .SQLStr = "SELECT HR_Staff.StaffID, HR_Staff.FName, HR_Staff.SName FROM   HR_Staff INNER JOIN  HR_CustomSettingValues ON HR_Staff.StaffID = HR_CustomSettingValues.StaffID INNER JOIN HR_CustomSetting ON HR_CustomSettingValues.SettingID = HR_CustomSetting.SettingID WHERE HR_CustomSetting.SettingName = 'AuthoriseSalesOrders' AND HR_CustomSettingValues.Contents = '1' "
                .OrderBy = "ORDER BY FName"
                .AddColumn("StaffID", vbString, "", 0, 1)
                .AddColumn("FName", vbString, "", 50, 2)
                .AddColumn("SName", vbString, "", 50, 3)				
            End With
            .AddSearchOption(AOption)
			
            AOption = Nothing
						
            If .Show(FormObject) = DialogResult.OK Then
				CustomFieldValue.Contents = .Fields(2).FieldValue
				CustomFieldValue.DisplayContents = .Fields(2).FieldValue
				
            End If
        End With
	End If

End Sub
'***** 1
End Class

Public Class LineCustomFieldPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaLineCustomFieldPlugin

Public Overrides Function InitializeLifetimeService() As Object
' returning null here will prevent the lease manager
' from deleting the Object.
Return Nothing
End Function

Public Sub FormatCell(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal HostItem As JiwaApplication.IJiwaLineCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaLineCustomFieldPlugin.FormatCell
End Sub

Public Sub ReadData(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Row As Integer, ByVal HostItem As JiwaApplication.IJiwaLineCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaLineCustomFieldPlugin.ReadData
End Sub

Public Sub ButtonClicked(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal HostItem As JiwaApplication.IJiwaLineCustomFieldValues, ByVal CustomField As JiwaApplication.CustomFields.CustomField, ByVal CustomFieldValue As JiwaApplication.CustomFields.CustomFieldValue) Implements JiwaApplication.IJiwaLineCustomFieldPlugin.ButtonClicked
End Sub

End Class

Public Class SystemSettingPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaSystemSettingPlugin

Public Overrides Function InitializeLifetimeService() As Object
' returning null here will prevent the lease manager
' from deleting the Object.
Return Nothing
End Function

Public Sub FormatCell(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal SystemSetting As JiwaApplication.SystemSettings.Setting) Implements JiwaApplication.IJiwaSystemSettingPlugin.FormatCell
End Sub

Public Sub ReadData(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Row As Integer, ByVal SystemSetting As JiwaApplication.SystemSettings.Setting) Implements JiwaApplication.IJiwaSystemSettingPlugin.ReadData
End Sub

Public Sub ButtonClicked(ByVal BusinessLogicHost As JiwaApplication.IJiwaBusinessLogic, ByVal GridObject As JiwaApplication.Controls.JiwaGrid, ByVal FormObject As JiwaApplication.IJiwaForm, ByVal Col As Integer, ByVal Row As Integer, ByVal SystemSetting As JiwaApplication.SystemSettings.Setting) Implements JiwaApplication.IJiwaSystemSettingPlugin.ButtonClicked
End Sub

End Class

Public Class ScheduledExecutionPlugin
Inherits System.MarshalByRefObject
Implements JiwaApplication.IJiwaScheduledExecutionPlugin

Public Sub Execute(ByVal Plugin As JiwaApplication.Plugin.Plugin, ByVal Schedule As JiwaApplication.Schedule.Schedule) Implements JiwaApplication.IJiwaScheduledExecutionPlugin.Execute

End Sub

Public Sub OnServiceStart(ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaScheduledExecutionPlugin.OnServiceStart

End Sub

Public Sub OnServiceStopping(ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaScheduledExecutionPlugin.OnServiceStopping

End Sub
End Class
</Code>
  <ExceptionPolicy>Report</ExceptionPolicy>
  <Language>VisualBasic</Language>
  <PluginFormCollection>
    <PluginForm>
      <RecID>a837ba6c-4575-45fe-bb44-c50866b51ee6</RecID>
      <Description>Inventory Maintenance</Description>
      <ClassName>JiwaFinancials.Jiwa.JiwaInventoryUI.InventoryMaintenanceForm</ClassName>
    </PluginForm>
    <PluginForm>
      <RecID>43140ef2-2369-49c9-b527-e6c554e8a0f9</RecID>
      <Description>Debtor Maintenance</Description>
      <ClassName>JiwaFinancials.Jiwa.JiwaDebtorsUI.frmDebtor</ClassName>
    </PluginForm>
  </PluginFormCollection>
  <ReferenceCollection>
    <Reference>
      <RecID>feb59440-471f-43e9-8b60-26812cdb50ae</RecID>
      <AssemblyFullName>JiwaApplication, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaApplication.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaApplication.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>81868dc9-1fcd-4f7c-86c3-2d499bea3c5f</RecID>
      <AssemblyFullName>mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>mscorlib.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>f16222f2-16e6-4e39-b338-4231d1366251</RecID>
      <AssemblyFullName>System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>c2021065-259c-4571-b4b7-259f5e61817c</RecID>
      <AssemblyFullName>System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Data.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>9c9b58fe-b388-40e3-adb6-3bd3c77ac279</RecID>
      <AssemblyFullName>JiwaODBC, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaODBC.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaODBC.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>6ed7630a-99a3-41c4-a223-70e22e186c0d</RecID>
      <AssemblyFullName>System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Xml.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>58edc0bc-04d7-4d93-bd10-71ed0975a446</RecID>
      <AssemblyFullName>System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Runtime.Serialization.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>07b9bf50-3866-4ff1-9916-02262c593d58</RecID>
      <AssemblyFullName>System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>System.Drawing.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>e6394949-2e95-4c58-a2ed-fe41444b8679</RecID>
      <AssemblyFullName>Microsoft.SqlServer.Smo, Version=13.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91</AssemblyFullName>
      <AssemblyName>Microsoft.SqlServer.Smo.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Microsoft.SqlServer.Smo.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>e960f489-76c2-4c77-a131-98ea508275ce</RecID>
      <AssemblyFullName>Microsoft.SqlServer.ConnectionInfo, Version=13.100.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91</AssemblyFullName>
      <AssemblyName>Microsoft.SqlServer.ConnectionInfo.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Microsoft.SqlServer.ConnectionInfo.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>bf1bae66-1335-4e44-84f1-fc28e2be324f</RecID>
      <AssemblyFullName>System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Windows.Forms.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>87a1f040-a25f-486d-aa6c-9439f4b6bc91</RecID>
      <AssemblyFullName>Infragistics4.Win.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>463af8b4-cc86-48c4-a2da-5b4c5d3d696c</RecID>
      <AssemblyFullName>Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>Microsoft.VisualBasic.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>54f70b82-f976-4ef9-874f-a322c1475dfc</RecID>
      <AssemblyFullName>Infragistics4.Win.Misc.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.Misc.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.Misc.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>c71fca2b-6ffa-4036-8dc0-892b38f0ffaf</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinEditors.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinEditors.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinEditors.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>fe8df9a7-9669-4bcf-9b01-2c45307e58f1</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinExplorerBar.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinExplorerBar.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinExplorerBar.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>56ed0395-0042-4337-a95a-e2a018eb0248</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinTree.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinTree.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinTree.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>758180ce-924d-43fa-b4d2-bb263873fa3d</RecID>
      <AssemblyFullName>FarPoint.Win.Spread, Version=8.35.20151.0, Culture=neutral, PublicKeyToken=327c3516b1b18457</AssemblyFullName>
      <AssemblyName>FarPoint.Win.Spread.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\FarPoint.Win.Spread.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>08e3d7b1-475b-4773-b570-5193253022bc</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinTabControl.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinTabControl.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinTabControl.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>249405d1-4b56-4586-8a56-d07f7a167ae9</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinToolbars.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinToolbars.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinToolbars.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>06582eeb-baf7-471b-bf33-3ef1cc3c4919</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinStatusBar.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinStatusBar.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinStatusBar.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>9e01059b-b7cf-4da4-a79d-0338a3773fc3</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinSchedule.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinSchedule.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinSchedule.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>48b62f0b-67f4-494d-9c18-451533b999e5</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinListView.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinListView.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinListView.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>2f66f9da-5bd5-4551-9317-6f1691e6f7cf</RecID>
      <AssemblyFullName>ServiceStack, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43</AssemblyFullName>
      <AssemblyName>ServiceStack.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ServiceStack.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>52d2602f-bcf2-4058-802c-c7caf05be576</RecID>
      <AssemblyFullName>ActiproSoftware.SyntaxEditor.WinForms, Version=12.1.304.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763</AssemblyFullName>
      <AssemblyName>ActiproSoftware.SyntaxEditor.WinForms.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ActiproSoftware.SyntaxEditor.WinForms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>d5adc539-9439-4756-bb96-3542dff6b251</RecID>
      <AssemblyFullName>ZetaHtmlEditControl, Version=1.1.0.3, Culture=neutral, PublicKeyToken=2e2e5ba5da72b6c0</AssemblyFullName>
      <AssemblyName>ZetaHtmlEditControl.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ZetaHtmlEditControl.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>e6d824f1-fbb5-44c5-b22a-f1d12c6533d4</RecID>
      <AssemblyFullName>ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms, Version=12.1.304.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763</AssemblyFullName>
      <AssemblyName>ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ActiproSoftware.SyntaxEditor.Addons.DotNet.WinForms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>805f26b4-a7d4-444c-9232-3927f6d360ab</RecID>
      <AssemblyFullName>JiwaEncryption, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaEncryption.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaEncryption.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>2161fbd3-076d-4a8f-9ce4-7efd44ea67f7</RecID>
      <AssemblyFullName>Microsoft.SqlServer.Dac, Version=13.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>Microsoft.SqlServer.Dac.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Microsoft.SqlServer.Dac.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>910d84a7-0e8e-4fa2-85a4-2dac1663d111</RecID>
      <AssemblyFullName>CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.CrystalReports.Engine.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>211945db-a1d2-4e7f-82d4-e6055511ca30</RecID>
      <AssemblyFullName>CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.Shared.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\CrystalDecisions.Shared\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Shared.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>054df80d-4dfe-4d9c-9e0b-7ee8b65b0d5c</RecID>
      <AssemblyFullName>CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.ReportAppServer.Controllers.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.Controllers\13.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.Controllers.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>2c9692c0-025a-4d42-81f1-33e9cba42b27</RecID>
      <AssemblyFullName>System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Core.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>0d643140-1930-4f00-b5de-9f86cf351829</RecID>
      <AssemblyFullName>Infragistics4.Win.AppStylistSupport.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.AppStylistSupport.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.AppStylistSupport.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>48fee762-f1c9-4a0e-ad20-1408f252d681</RecID>
      <AssemblyFullName>JiwaLib, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaLib.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaLib.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>3d30c91e-b226-4c8d-b09c-2dcf7f63d740</RecID>
      <AssemblyFullName>Microsoft.ApplicationInsights, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</AssemblyFullName>
      <AssemblyName>Microsoft.ApplicationInsights.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Microsoft.ApplicationInsights.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>51e5b072-8f63-49df-8b23-b40305cd9719</RecID>
      <AssemblyFullName>CrystalDecisions.Windows.Forms, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.Windows.Forms.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\CrystalDecisions.Windows.Forms\13.0.2000.0__692fbea5521e1304\CrystalDecisions.Windows.Forms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>b2fbaa35-7e9c-4742-8e63-65b88066e859</RecID>
      <AssemblyFullName>Infragistics4.Win.UltraWinGrid.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Win.UltraWinGrid.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Win.UltraWinGrid.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>4b342428-0657-49cf-b760-2c055e30d1a8</RecID>
      <AssemblyFullName>Infragistics4.Shared.v13.1, Version=13.1.20131.2060, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb</AssemblyFullName>
      <AssemblyName>Infragistics4.Shared.v13.1.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\Infragistics4.Shared.v13.1.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>206f8c12-f2f8-4e6b-8ffb-0c113f294122</RecID>
      <AssemblyFullName>Microsoft.Office.Interop.Outlook, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</AssemblyFullName>
      <AssemblyName>Microsoft.Office.Interop.Outlook.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Outlook\15.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Outlook.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>68f164cf-2310-412c-9d80-f72fedad472e</RecID>
      <AssemblyFullName>ActiproSoftware.Shared.WinForms, Version=12.1.304.0, Culture=neutral, PublicKeyToken=c27e062d3c1a4763</AssemblyFullName>
      <AssemblyName>ActiproSoftware.Shared.WinForms.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ActiproSoftware.Shared.WinForms.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>b933b203-7dc4-4255-84d8-f45445fec82e</RecID>
      <AssemblyFullName>FarPoint.Win, Version=8.35.20151.0, Culture=neutral, PublicKeyToken=327c3516b1b18457</AssemblyFullName>
      <AssemblyName>FarPoint.Win.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\FarPoint.Win.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>99614a12-fb2d-44f5-8fd4-197e6d2da28b</RecID>
      <AssemblyFullName>System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</AssemblyFullName>
      <AssemblyName>System.Security.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Security\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Security.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>70c084df-08bb-4d13-b263-525a4d188e87</RecID>
      <AssemblyFullName>CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.ReportAppServer.ClientDoc.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc\13.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.ClientDoc.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>c52dfb3b-147f-423d-a915-5c80e40d669c</RecID>
      <AssemblyFullName>CrystalDecisions.ReportAppServer.ReportDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304</AssemblyFullName>
      <AssemblyName>CrystalDecisions.ReportAppServer.ReportDefModel.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ReportDefModel\13.0.2000.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.ReportDefModel.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>a052f043-af35-4129-82c0-541e37271a2d</RecID>
      <AssemblyFullName>ServiceStack.Interfaces, Version=4.0.0.0, Culture=neutral, PublicKeyToken=e06fbc6124f57c43</AssemblyFullName>
      <AssemblyName>ServiceStack.Interfaces.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ServiceStack.Interfaces.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>cda6a591-c9df-4af1-8ec0-1cca48047f82</RecID>
      <AssemblyFullName>ServiceStack.Server, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = e06fbc6124f57c43</AssemblyFullName>
      <AssemblyName>ServiceStack.Server.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ServiceStack.Server.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>cbb852dd-3f46-4163-acad-198c325e3d1a</RecID>
      <AssemblyFullName>ServiceStack.OrmLite, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = e06fbc6124f57c43</AssemblyFullName>
      <AssemblyName>ServiceStack.OrmLite.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\ServiceStack.OrmLite.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>f5e01a28-a4ff-40ba-989c-66d85aaf63d8</RecID>
      <AssemblyFullName>JiwaInventoryUI, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaInventoryUI.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaInventoryUI.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>0d1a749f-cff6-404c-baf1-04279dfc0837</RecID>
      <AssemblyFullName>JiwaInventory, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaInventory.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaInventory.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>4a58e283-3748-41a8-9bc2-979495c0d50a</RecID>
      <AssemblyFullName>JiwaDebtorsUI, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaDebtorsUI.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaDebtorsUI.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>2db94cb3-5f8c-4935-91e4-6c3c1fb1ec9c</RecID>
      <AssemblyFullName>JiwaDebtors, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaDebtors.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaDebtors.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>06039449-12c9-47bd-b766-ce1640a748f0</RecID>
      <AssemblyFullName>JiwaDebtorAdjustments, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaDebtorAdjustments.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaDebtorAdjustments.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>e5c235f8-1b6e-477f-ad74-78ba2080be9d</RecID>
      <AssemblyFullName>JiwaDebtorInvoices, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaDebtorInvoices.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaDebtorInvoices.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>cc30b470-87f3-4999-b222-7122e080a8eb</RecID>
      <AssemblyFullName>JiwaCashBookUI, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaCashBookUI.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaCashBookUI.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>e074b314-f278-40e6-bada-5ea75db80648</RecID>
      <AssemblyFullName>JiwaDebtorAdjustmentsUI, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaDebtorAdjustmentsUI.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaDebtorAdjustmentsUI.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>4965b638-9f60-43dc-9baf-7e76838462eb</RecID>
      <AssemblyFullName>JiwaDebtorInvoicesUI, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaDebtorInvoicesUI.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaDebtorInvoicesUI.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>264be128-c9aa-481e-8e07-d04968e6ec22</RecID>
      <AssemblyFullName>JiwaCashBook, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaCashBook.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaCashBook.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>d304d780-0792-41ad-af6c-c2cad214277f</RecID>
      <AssemblyFullName>JiwaSalesUI, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>JiwaSalesUI.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\JiwaSalesUI.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>d50eda35-11b4-48b9-8e2d-8d3348839ea2</RecID>
      <AssemblyFullName>LumenWorks.Framework.IO, Version=7.0.175.0, Culture=neutral, PublicKeyToken=e30ce81e37f29c8c</AssemblyFullName>
      <AssemblyName>LumenWorks.Framework.IO.dll</AssemblyName>
      <AssemblyLocation>C:\Program Files (x86)\Jiwa Financials\Jiwa 7\LumenWorks.Framework.IO.dll</AssemblyLocation>
    </Reference>
    <Reference>
      <RecID>2b830849-f0b8-4311-9e0c-4ce50abf64df</RecID>
      <AssemblyFullName>System.Xml.Linq, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</AssemblyFullName>
      <AssemblyName>System.Xml.Linq.dll</AssemblyName>
      <AssemblyLocation>C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll</AssemblyLocation>
    </Reference>
  </ReferenceCollection>
  <CustomFieldCollection>
    <CustomField>
      <RecID>C2DC4BF0-58F3-4E22-B078-84DD56977FD9</RecID>
      <Name>Custom Field 1</Name>
      <Description>Custom Field 1</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>5D33BC06-BE52-49D6-ABDA-81717D02A71B</RecID>
      <Name>Custom Field 2</Name>
      <Description>Custom Field 2</Description>
      <DisplayOrder>2</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CD26940A-0406-4BDB-A712-71C148F9BB30</RecID>
      <Name>Custom Field 3</Name>
      <Description>Custom Field 3</Description>
      <DisplayOrder>3</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>FD27871D-5AA4-429A-9BB7-9F41ECFBA9C9</RecID>
      <Name>Custom Field 4</Name>
      <Description>Custom Field 4</Description>
      <DisplayOrder>4</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>FarmSize                            </RecID>
      <Name>FarmSize</Name>
      <Description>Farm Size (Hectares)</Description>
      <DisplayOrder>5</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Region                              </RecID>
      <Name>Region</Name>
      <Description>Region/Area</Description>
      <DisplayOrder>6</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Soil                                </RecID>
      <Name>Soil</Name>
      <Description>Soil</Description>
      <DisplayOrder>7</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>MinAltitude                         </RecID>
      <Name>MinAltitude</Name>
      <Description>Minimum Altitude (m)</Description>
      <DisplayOrder>8</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>MaxAltitude                         </RecID>
      <Name>MaxAltitude</Name>
      <Description>Maximum Altitude (m)</Description>
      <DisplayOrder>9</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ShowEstate                          </RecID>
      <Name>Show as Filter</Name>
      <Description>Show this Estate as a filter on the Neotek website</Description>
      <DisplayOrder>10</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Creditor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>2B66F015-1E26-4451-8036-E873B9110285</RecID>
      <Name>BankDetails</Name>
      <Description>To Include Credit card option on Invoice</Description>
      <DisplayOrder>4</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CAD57200-EE5D-4E17-97EB-331396F2DA11</RecID>
      <Name>AlternateDays</Name>
      <Description>Alternate Days of Payment for Tea</Description>
      <DisplayOrder>5</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Restricted                          </RecID>
      <Name>Restricted</Name>
      <Description>Restrict products which this Debtor sees on the Neotek website, to products which have a price defined on one of the following Pricing tabs on the inventory maintenance screen: Debtor Specific, Debtor Class Specific, Selling or Group Pricing.</Description>
      <DisplayOrder>6</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>FlowID                              </RecID>
      <Name>Flow ID</Name>
      <Description>Indicates the debtor is registered as a Fair Trade customer.</Description>
      <DisplayOrder>7</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>DefaultDeliveryDays                 </RecID>
      <Name>Default Delivery Days</Name>
      <Description>Lead time in days from order to delivery. Initial values set based on State, as follows: WA - 7, QLD - 5, TAS - 4, NSW, SA, ACT - 3</Description>
      <DisplayOrder>8</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>QuoteOnly                           </RecID>
      <Name>Quote Only</Name>
      <Description>Indicates if debtor can only request a quote or confirm delivery of reserved orders.</Description>
      <DisplayOrder>9</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>EnableDeliveryCutoff                </RecID>
      <Name>Enable Delivery Days</Name>
      <Description>Enable the use of specific delivery days</Description>
      <DisplayOrder>10</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>MondayCutoff                        </RecID>
      <Name>Monday</Name>
      <Description>Monday</Description>
      <DisplayOrder>11</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>TuesdayCutoff                       </RecID>
      <Name>Tuesday</Name>
      <Description>Tuesday</Description>
      <DisplayOrder>12</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>WednesdayCutoff                     </RecID>
      <Name>Wednesday</Name>
      <Description>Wednesday</Description>
      <DisplayOrder>13</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ThursdayCutoff                      </RecID>
      <Name>Thursday</Name>
      <Description>Thursday</Description>
      <DisplayOrder>14</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>FridayCutoff                        </RecID>
      <Name>Friday</Name>
      <Description>Friday</Description>
      <DisplayOrder>15</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>NeotekCallCode                      </RecID>
      <Name>NeotekCallCode</Name>
      <Description>Code used in the Neotek sales system to determine the call cycle an account is rostered on. A - 4 days, B - 6, C - 8.</Description>
      <DisplayOrder>16</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Debtor Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>284CB820-47A6-49EF-9C64-25BF4AA3B9F0</RecID>
      <Name>AuthoriseSalesOrders</Name>
      <Description>Able to Authorise Sales Orders</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Staff Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>5E1621BE-141C-440E-B084-32FB85D31945</RecID>
      <Name>AuthoriseSalesQuotes</Name>
      <Description>Able to Authorise Sales Quotes</Description>
      <DisplayOrder>2</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Staff Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>6633580B-CA5C-452E-8277-691BD5C68B80</RecID>
      <Name>AuthorisePurchaseOrders</Name>
      <Description>Able to Authorise Purchase Orders</Description>
      <DisplayOrder>3</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Staff Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>2                                   </RecID>
      <Name>01-PalletSize</Name>
      <Description>No of Bags or Cartons per Pallet</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>5                                   </RecID>
      <Name>10-InnerUnit</Name>
      <Description>InnerUnits</Description>
      <DisplayOrder>4</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>BagType                             </RecID>
      <Name>20-Packaging</Name>
      <Description>Packaging</Description>
      <DisplayOrder>5</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>PackSize                            </RecID>
      <Name>Carton Size</Name>
      <Description>Restrict the quantities this product may be ordered on the Neotek website (eg. if set to 5 then - this product may only be ordered in multiples of 5)</Description>
      <DisplayOrder>8</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Grade                               </RecID>
      <Name>21-Screen1</Name>
      <Description>Screen1</Description>
      <DisplayOrder>9</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Screen                              </RecID>
      <Name>22-Screen2</Name>
      <Description>Screen2</Description>
      <DisplayOrder>12</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Varietal                            </RecID>
      <Name>22-Varietal</Name>
      <Description>Varietal</Description>
      <DisplayOrder>13</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>476988ed-7af5-4ca6-a948-1adad8be0c28</RecID>
      <Name>WebSpecial</Name>
      <Description>Check this box for Web Special Items</Description>
      <DisplayOrder>14</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>4                                   </RecID>
      <Name>23-BlendComponents</Name>
      <Description>Components of the Blend</Description>
      <DisplayOrder>15</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>BeanAppearance                      </RecID>
      <Name>24-Appearance</Name>
      <Description>Appearance</Description>
      <DisplayOrder>16</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>LiquorColour                        </RecID>
      <Name>25-Liquor Colour</Name>
      <Description>Liquor Colour</Description>
      <DisplayOrder>17</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>HarvestDate                         </RecID>
      <Name>37-Grade</Name>
      <Description>Grade</Description>
      <DisplayOrder>18</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>PONumber                            </RecID>
      <Name>39-PONumber</Name>
      <Description>PO Number</Description>
      <DisplayOrder>19</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>SalesPartNo                         </RecID>
      <Name>40-SalesPartNo</Name>
      <Description>Sales Part No</Description>
      <DisplayOrder>20</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>LotNumber                           </RecID>
      <Name>40-LotNumber</Name>
      <Description>LotNumber</Description>
      <DisplayOrder>21</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Exporter                            </RecID>
      <Name>41-Exporter</Name>
      <Description>Exporter</Description>
      <DisplayOrder>22</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CropYear                            </RecID>
      <Name>42-CropYear</Name>
      <Description>Crop Year</Description>
      <DisplayOrder>23</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ESTATE                              </RecID>
      <Name>43-Estate</Name>
      <Description>Estate</Description>
      <DisplayOrder>24</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>BeanDensity                         </RecID>
      <Name>44-BeanDensity</Name>
      <Description>Bean Density (Kg/hl)</Description>
      <DisplayOrder>25</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>MoistureContent                     </RecID>
      <Name>45-MoistureContent</Name>
      <Description>Moisture Content (%)</Description>
      <DisplayOrder>26</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenType1                         </RecID>
      <Name>46-ScreenType1</Name>
      <Description>Screen Type 1</Description>
      <DisplayOrder>27</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenSize1                         </RecID>
      <Name>47-ScreenSize1</Name>
      <Description>Screen Size 1</Description>
      <DisplayOrder>28</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenPerc1                         </RecID>
      <Name>48-ScreenPerc1</Name>
      <Description>Screen % 1</Description>
      <DisplayOrder>29</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenType2                         </RecID>
      <Name>49-ScreenType2</Name>
      <Description>Screen Type 2</Description>
      <DisplayOrder>30</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenSize2                         </RecID>
      <Name>50-ScreenSize2</Name>
      <Description>Screen Size 2</Description>
      <DisplayOrder>31</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenPerc2                         </RecID>
      <Name>51-ScreenPerc2</Name>
      <Description>Screen % 2</Description>
      <DisplayOrder>32</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenType3                         </RecID>
      <Name>52-ScreenType3</Name>
      <Description>Screen Type 3</Description>
      <DisplayOrder>33</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenSize3                         </RecID>
      <Name>53-ScreenSize3</Name>
      <Description>Screen Size 3</Description>
      <DisplayOrder>34</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ScreenPerc3                         </RecID>
      <Name>54-ScreenPerc3</Name>
      <Description>Screen % 3</Description>
      <DisplayOrder>35</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Fragrance                           </RecID>
      <Name>60-Fragrance</Name>
      <Description>Fragrance / Aroma</Description>
      <DisplayOrder>36</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Flavour                             </RecID>
      <Name>61-Flavour</Name>
      <Description>Flavour</Description>
      <DisplayOrder>37</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Aftertaste                          </RecID>
      <Name>62-Aftertaste</Name>
      <Description>Aftertaste</Description>
      <DisplayOrder>38</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Acidity                             </RecID>
      <Name>63-Acidity</Name>
      <Description>Acidity</Description>
      <DisplayOrder>39</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Body                                </RecID>
      <Name>64-Body</Name>
      <Description>Body</Description>
      <DisplayOrder>40</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Balance                             </RecID>
      <Name>65-Balance</Name>
      <Description>Balance</Description>
      <DisplayOrder>41</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CuppingScore                        </RecID>
      <Name>71-CuppingScore</Name>
      <Description>Q Cupping Scores</Description>
      <DisplayOrder>42</DisplayOrder>
      <CellType>Float</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CuppingScoreDesc                    </RecID>
      <Name>72-CuppingScoreDesc</Name>
      <Description>Q Cupping Score Description</Description>
      <DisplayOrder>43</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CuppingNotes                        </RecID>
      <Name>73-TastingNotes</Name>
      <Description>Tasting Notes</Description>
      <DisplayOrder>44</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>OptimalRoastColour                  </RecID>
      <Name>74-OptimalRoastColour</Name>
      <Description>Optimal Roast Colour</Description>
      <DisplayOrder>45</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>LotCreated                          </RecID>
      <Name>80-LotCreated</Name>
      <Description>Lot Created Date</Description>
      <DisplayOrder>46</DisplayOrder>
      <CellType>Date</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Defects                             </RecID>
      <Name>99-Defects</Name>
      <Description>Defects</Description>
      <DisplayOrder>47</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>UntilDate                           </RecID>
      <Name>New Until</Name>
      <Description>Set the product to be marked as "New" on Neotek website until given date.</Description>
      <DisplayOrder>48</DisplayOrder>
      <CellType>Date</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>ETADate                             </RecID>
      <Name>ETA Date</Name>
      <Description>Set the product to be marked as "Coming Soon" on Neotek website until given date.</Description>
      <DisplayOrder>49</DisplayOrder>
      <CellType>Date</CellType>
      <CustomFieldModule>Inventory Maintenance</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>AEE51BC9-AE54-4082-BDA2-7E70F0C408DE</RecID>
      <Name>Arbitration</Name>
      <Description>Arbitration</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>7DCAE3CF-527C-4E41-A961-70370AE11987</RecID>
      <Name>Insurance</Name>
      <Description>Insurance</Description>
      <DisplayOrder>2</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>8582C3EC-235C-494F-988A-B61B03C72756</RecID>
      <Name>Container</Name>
      <Description>Container</Description>
      <DisplayOrder>3</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>DE50661B-0B0F-40AE-8EC4-286D979C4C0B</RecID>
      <Name>MonthYearofNYMarketContract</Name>
      <Description>Month Year of NY Market Contract</Description>
      <DisplayOrder>4</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>7BA7CFC7-A86A-4752-A1D4-44DD05A10D46</RecID>
      <Name>MonthYearofLondonMarketContract</Name>
      <Description>Month Year of London Market Contract</Description>
      <DisplayOrder>5</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>7BC9D714-8889-44FD-8A92-78A3FC14930A</RecID>
      <Name>Franchise</Name>
      <Description>Franchise</Description>
      <DisplayOrder>6</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CFA4965F-4C5B-4374-A15A-B2536D0C41F2</RecID>
      <Name>PaymentType</Name>
      <Description>Payment Type</Description>
      <DisplayOrder>7</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>EE675E97-1C26-4F9A-B89E-796677112C2D</RecID>
      <Name>DocumentaryRequirements</Name>
      <Description>Include Ususal Documentary Requirements</Description>
      <DisplayOrder>8</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>DE24EE00-D7C0-44BA-8127-6C418CCE04CF</RecID>
      <Name>AQIS Note</Name>
      <Description>Include AQIS Note on Contract</Description>
      <DisplayOrder>9</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>25AD7701-AC6D-48C0-AE89-2FF381268C8A</RecID>
      <Name>ShippingPeriod</Name>
      <Description>Shipping Period</Description>
      <DisplayOrder>10</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>3A9AB1DB-3B07-4B53-939E-9F53289CD6CE</RecID>
      <Name>YearOfShipment</Name>
      <Description>Year Of Shipment</Description>
      <DisplayOrder>11</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>0FD7A233-FBA9-49BC-B7D7-2C707CC14075</RecID>
      <Name>SupplierReference</Name>
      <Description>Supplier Reference</Description>
      <DisplayOrder>12</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>FC7BE7F3-2310-4359-B2E1-B8F21C50CF85</RecID>
      <Name>FXContract</Name>
      <Description>Select the Foreign Currency Contract To Use</Description>
      <DisplayOrder>13</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>92497DDF-C069-4248-828B-56D3CE33DB57</RecID>
      <Name>ContractApproval</Name>
      <Description>Who has approved the contract?</Description>
      <DisplayOrder>14</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>B0D9B13E-5B72-4350-8585-C883E9017EF4</RecID>
      <Name>PreShippingSample</Name>
      <Description>Is Pre Shipping Sample Required</Description>
      <DisplayOrder>15</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>582C0348-CD2D-42A8-AC3B-BD70E8F83026</RecID>
      <Name>PreShipmentSampleReceived</Name>
      <Description>Check if Pre Shipment Sample Has Been Received</Description>
      <DisplayOrder>16</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Purchase Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>EB0FA39CA8054773B7F9                </RecID>
      <Name>PricingBasis</Name>
      <Description>What is the basis for pricing?</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Sales Quote</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>99A5CFED55944F299578                </RecID>
      <Name>DTSLocation</Name>
      <Description>DTS Location</Description>
      <DisplayOrder>2</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Quote</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>CA9E0FA76FB34EF09D9E                </RecID>
      <Name>ContractApprovalSQ</Name>
      <Description>Who has approved this quote?</Description>
      <DisplayOrder>3</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Sales Quote</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>24E57E4EC8F54762BDFF                </RecID>
      <Name>ValidDays</Name>
      <Description>No of days the quote is valid for</Description>
      <DisplayOrder>4</DisplayOrder>
      <CellType>Integer</CellType>
      <CustomFieldModule>Sales Quote</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>4686B2D8604442E5AB84                </RecID>
      <Name>PrcingBasis</Name>
      <Description>Pricing Based On</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>80EA8068150343719241                </RecID>
      <Name>IncludeAQISNote</Name>
      <Description>Include AQIS Note on Contract</Description>
      <DisplayOrder>2</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>4EB99444B5284E8A8783                </RecID>
      <Name>ContractApprovalSO</Name>
      <Description>Who has approved this contract?</Description>
      <DisplayOrder>3</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>0405FE2379B54E61805F                </RecID>
      <Name>TickToIncludeOnContract</Name>
      <Description>Tick to include PO Ref on Contract</Description>
      <DisplayOrder>4</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>FF900E1AAE654B14B0F7                </RecID>
      <Name>HABPORef</Name>
      <Description>HAB PO Ref</Description>
      <DisplayOrder>5</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>733466BA-4405-460E-AA06-39B37AED83FF</RecID>
      <Name>25-LiquorColour </Name>
      <Description>LiquorColour </Description>
      <DisplayOrder>6</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>DateReleasedToWeb                   </RecID>
      <Name>DateReleasedToWeb</Name>
      <Description>Neotek Latest date the SO was released to web.</Description>
      <DisplayOrder>7</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>Email                               </RecID>
      <Name>Email</Name>
      <Description>Email address of person who placed order</Description>
      <DisplayOrder>8</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>PaymentRef                          </RecID>
      <Name>PaymentRef</Name>
      <Description>Payment Gateway Transaction Reference</Description>
      <DisplayOrder>9</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>WebRef                              </RecID>
      <Name>WebRef</Name>
      <Description>Neotek Website Order Number</Description>
      <DisplayOrder>10</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>13C7E435-6B64-4A56-A246-40CDC52B2F85</RecID>
      <Name>FlowID</Name>
      <Description>Flow ID</Description>
      <DisplayOrder>11</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>15930033-4d4c-42d2-a9a0-78a587147a33</RecID>
      <Name>Contract</Name>
      <Description>Tick if this is a Contract</Description>
      <DisplayOrder>11</DisplayOrder>
      <CellType>Checkbox</CellType>
      <CustomFieldModule>Sales Order</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>969b9538-4f5c-43e5-a554-11741b345b75</RecID>
      <Name>PO_No</Name>
      <Description>On Purchase Order Number</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Lookup</CellType>
      <CustomFieldModule>Sales Order Line</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>6CAEA658-7C5B-41C7-9C16-D653ACA349C0</RecID>
      <Name>Sundry 1</Name>
      <Description />
      <DisplayOrder>1</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>37E38311-12D8-4F29-9992-DC4B4E05815A</RecID>
      <Name>Sundry 2</Name>
      <Description />
      <DisplayOrder>2</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>60E765E7-FA3E-4A35-AE61-985C48295B2D</RecID>
      <Name>Sundry 3</Name>
      <Description />
      <DisplayOrder>3</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>C1641AFD-F9DA-4547-9919-941ED5DA466A</RecID>
      <Name>Sundry 4</Name>
      <Description />
      <DisplayOrder>4</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>E99F8A19-736F-4806-B588-15E73355C086</RecID>
      <Name>Sundry 5</Name>
      <Description />
      <DisplayOrder>5</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>DE06366E-01F1-42E5-A4DA-11A5651FC977</RecID>
      <Name>Sundry 6</Name>
      <Description />
      <DisplayOrder>6</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>0A94D4AC-0E16-4EB9-A45C-0E253FCC8664</RecID>
      <Name>Sundry 7</Name>
      <Description />
      <DisplayOrder>7</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>370F0A16-7592-46EA-9D89-37CDAEC8EADE</RecID>
      <Name>Sundry 8</Name>
      <Description />
      <DisplayOrder>8</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>4DF48EC8-B7AD-4500-887B-47246CC83F3A</RecID>
      <Name>Sundry 9</Name>
      <Description />
      <DisplayOrder>9</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>3EA04CE9-4910-428B-A4E2-5D0EAE22DAC5</RecID>
      <Name>Sundry 10</Name>
      <Description />
      <DisplayOrder>10</DisplayOrder>
      <CellType>Text</CellType>
      <CustomFieldModule>Shipments</CustomFieldModule>
    </CustomField>
    <CustomField>
      <RecID>eb7e79b9-c830-4c02-8657-810b7e36bd50</RecID>
      <Name>PriceType</Name>
      <Description>Price Type</Description>
      <DisplayOrder>1</DisplayOrder>
      <CellType>Combo</CellType>
      <CustomFieldModule>Purchase Order Lines</CustomFieldModule>
    </CustomField>
  </CustomFieldCollection>
</JiwaDocument>