...
SETRANGE("Cross-Dock Bin",FALSE);
IF PutAwayTemplLine."Find Empty Bin" THEN
SETRANGE(Empty,TRUE);
IF FIND('+') THEN BEGIN
// Delete the following lines.
IF NOT PutAwayTemplLine."Find Empty Bin" THEN
EXIT(TRUE);
REPEAT
WhseActivLine.SETCURRENTKEY("Bin Code","Location Code","Action Type");
WhseActivLine.SETRANGE("Bin Code",Code);
WhseActivLine.SETRANGE("Location Code",LocationCode);
WhseActivLine.SETRANGE("Action Type",WhseActivLine."Action Type"::Place);
IF NOT WhseActivLine.FIND('-') THEN
EXIT(TRUE);
// End of the deleted lines.
UNTIL NEXT(-1) = 0;
END;
END;
EXIT(FALSE)
...
...
SETRANGE("Cross-Dock Bin",FALSE);
IF PutAwayTemplLine."Find Empty Bin" THEN
SETRANGE(Empty,TRUE);
IF FIND('+') THEN BEGIN
// Add the following lines.
IF NOT (PutAwayTemplLine."Find Empty Bin" OR PutAwayTemplLine."Find Floating Bin") THEN
EXIT(TRUE);
REPEAT
IF PutAwayTemplLine."Find Empty Bin" THEN BEGIN
WhseActivLine.SETCURRENTKEY("Bin Code","Location Code","Action Type");
WhseActivLine.SETRANGE("Bin Code",Code);
WhseActivLine.SETRANGE("Location Code",LocationCode);
WhseActivLine.SETRANGE("Action Type",WhseActivLine."Action Type"::Place);
IF WhseActivLine.ISEMPTY THEN
IF NOT PutAwayTemplLine."Find Floating Bin" OR IsFloatingBin THEN
EXIT(TRUE);
END ELSE // Find Floating Bin
IF IsFloatingBin THEN
EXIT(TRUE);
// End of the added lines.
UNTIL NEXT(-1) = 0;
END;
END;
EXIT(FALSE)
...