
Atronics wrote:In the purchase order form, I want to populate UserdefinedFloat1 with IN_Main.Weight. How is this done?
public void Setup(JiwaFinancials.Jiwa.JiwaApplication.IJiwaBusinessLogic JiwaBusinessLogic, JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin)
{
var purchaseOrder = (JiwaFinancials.Jiwa.JiwaPurchaseOrders.PurchaseOrder)JiwaBusinessLogic;
purchaseOrder.Lines.Added += PurchaseOrder_Lines_Added;
}
private void PurchaseOrder_Lines_Added(JiwaFinancials.Jiwa.JiwaPurchaseOrders.Line item)
{
if (item.LineType == JiwaFinancials.Jiwa.JiwaPurchaseOrders.Line.OrderLineType.Inventory)
{
var inventory = new JiwaFinancials.Jiwa.JiwaApplication.Entities.Inventory.Inventory();
inventory.ReadRecord(item.InventoryID);
item.UserDefinedFloat1 = inventory.Weight;
}
}


Return to Technical and or Programming
Users browsing this forum: No registered users and 4 guests