I am stuck, and in need of some assistance please.
Line 5 (
VAR_Tool_State)
if I understand correctly should return the newest entry that meets the two criteria stated.
However it is returning the FIRST entry made for the tool and serial number combination.
Any ideas?
Support has access.
- //ASSETS Current Location Lookup
- VAR_Location = Assets[(Part_Number == input.Part_Number && Serial_Number == input.Serial_Number)].Move_Asset_To;
- VAR_Assigned_To = Assets[(Part_Number == input.Part_Number && Serial_Number == input.Serial_Number)].Employee_ID;
- VAR_Tool_State = Assets[(Part_Number == input.Part_Number && Serial_Number == input.Serial_Number)].Checking_In_or_Out;
- if ((input.Checking_In_or_Out == "Check Out") && (VAR_Tool_State == "Check Out"))
- {
- input.CAT = VAR_Assigned_To;
- input.Tool_State = VAR_Tool_State;
- VAR_Whole_Name1 = Employee[Employee_ID == input.CAT].Whole_Name;
- input.Current_Location = VAR_Location;
- input.Assigned_to = VAR_Whole_Name1;
- }
- else
- {
- input.Assigned_to = null;
- input.Current_Location = null;
- input.CAT = null;
- }
Jason Rapp