I inherited some OnPrem code that I need to adjust to Online, and there is a part that within Visual Studio has an error, and was hoping someone knew what this was doing/looking at, and what to adjust to online.
local procedure LockTables(var AssemblyLine: Record /Assembly Line/; var AssemblyHeader: Record /Assembly Header/)
var
GLSetup: Record /General Ledger Setup/;
begin
AssemblyLine.LockTable();
AssemblyHeader.LockTable();
GetGLSetup;
if not GLSetup.OptimGLEntLockForMultiuserEnv then begin
GLEntry.LockTable();
if GLEntry.FindLast then;
end;
end;
The part GLSetup.OptimGLEntLockForMultiuserEnv is where the error is and states, /Record General Ledger Setup does not contain a defnition for OptimGLEntLockForMultiuserEnv/. Any guidance or insight as to what this is attempting to do, and how to adjust for Online would be great.
Thanks,
Kevin