Referring to the standard plugin that ships with Jiwa.
I am changing it so that the creditor warehouse is something different from the default.
Just after the line
- Code: Select all
PurchaseOrderUIObject.PurchaseOrder.CreateNew(JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder.SupplierType.Creditor, JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder.NewOrderSeedTypes.CreditorID, supplier.CreditorID, If(salesOrderForm.SalesOrder.SalesOrderType = JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder.SalesOrderTypes.e_SalesOrderNormalSalesOrder, JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder.PurchaseOrderType.DefaultOrderType, JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder.PurchaseOrderType.BackToBack))
I am getting a valid warehouseID.
- Code: Select all
Dim WarehouseID As String = ""
WarehouseID = GetCR_WarehouseID(salesOrderForm.SalesOrder.Debtor.AccountNo, PurchaseOrderUIObject.Manager)
If WarehouseID <> "" Then
PurchaseOrderUIObject.PurchaseOrder.Creditor.ReadWarehouseAddress(WarehouseID)
End If
My problem is that Creditor.ReadWarehouseAddress isn't doing anything. I thought it would read in the details from the WarehouseID and change the screen display to read the selected warehouse but nope. Nothing.
Is there something else I need to be doing?