WITH ItemJnlLine DO BEGIN
IF "Entry Type" IN ["Entry Type"::Consumption,"Entry Type"::Output] THEN
EXIT;
Quantity := OriginalQuantity;
"Quantity (Base)" := OriginalQuantityBase;
GetLocation("Location Code");
IF Location."Bin Mandatory" THEN
IF WMSManagement.CreateWhseJnlLine(ItemJnlLine,0,WarehouseJournalLine,FALSE,FALSE) THEN BEGIN
TempTrackingSpecification.MODIFYALL("Source Type",DATABASE::"Job Journal Line");
ItemTrackingManagement.SplitWhseJnlLine(WarehouseJournalLine,TempWarehouseJournalLine,TempTrackingSpecification,FALSE);
IF TempWarehouseJournalLine.FIND('-') THEN
REPEAT
WMSManagement.CheckWhseJnlLine(TempWarehouseJournalLine,1,0,FALSE);
WhseJnlRegisterLine.RUN(TempWarehouseJournalLine);
UNTIL TempWarehouseJournalLine.NEXT = 0;
END;
END;