Hi guys,
I have a requirement to add a new purchase order line item picklist column, to lookup a GL account, and to save the result with the line item ...
I have not been able to solve this trawling through existing posts.
Thanks in advance,
Neil.


Private purchaseOrderForm As JiwaFinancials.Jiwa.JiwaPurchaseOrdersUI.PurchaseOrders
Public Sub Setup(ByVal JiwaForm As JiwaApplication.IJiwaForm, ByVal Plugin As JiwaApplication.Plugin.Plugin) Implements JiwaApplication.IJiwaFormPlugin.Setup
purchaseOrderForm = DirectCast(JiwaForm, JiwaFinancials.Jiwa.JiwaPurchaseOrdersUI.PurchaseOrders)
' ...
AddHandler purchaseOrderForm.LinesJiwaGrid.CellClick, AddressOf PurchaseOrderForm_LinesJiwaGrid_CellClick
End Sub
Private Sub PurchaseOrderForm_LinesJiwaGrid_CellClick(sender As Object, e As CellClickEventArgs)
If e.ColumnHeader Or e.RowHeader Then Return
Dim col = DirectCast(sender, FarPoint.Win.Spread.FpSpread).ActiveSheet.Columns(e.Column)
If col.Tag <> "UserDefinedString1" Then Return
Dim ledger As New JiwaApplication.Entities.GeneralLedger.Account()
ledger.Search(purchaseOrderForm)
purchaseOrderForm.PurchaseOrder.Lines.Item(e.Row + 1).UserDefinedString1 = ledger.AccountNo
End Sub
Return to Technical and or Programming
Users browsing this forum: No registered users and 4 guests