field(50015; "DirectUnitCost"; Text[100]){Caption = 'Direct Unit Cost';FieldClass = FlowField;Editable = False;CalcFormula = Lookup("Purchase Price"."Direct Unit Cost" where("Item No_" = field("Item No."),("Vendor No_" = field("Buy-From Vendor No."), Current Date >=field("Ending Date")));
}