20. November 2019 13:48
WarehouseEntry.SETFILTER(Quantity,'>0');
IF WarehouseEntry.FINDSET THEN BEGIN
REPEAT
SourceNo := WarehouseEntry."Source No.";
BinCode := WarehouseEntry."Bin Code";
ItemLedgerEntry.SETFILTER("Root Document No.",'<>%1','');
IF ItemLedgerEntry.FINDSET THEN BEGIN
REPEAT
IF SourceNo = ItemLedgerEntry."Root Document No." THEN BEGIN
ItemJournalLine.RESET;
ItemJournalLine.SETRANGE("Item No.",ItemLedgerEntry."Item No.");
ItemJournalLine.SETRANGE("Document No.",ItemLedgerEntry."Document No.");
IF ItemJournalLine.FINDFIRST THEN BEGIN
ItemJournalLine."Bin Code" := BinCode;
ItemJournalLine.MODIFY;
END;
END;
UNTIL ItemLedgerEntry.NEXT = 0;
END;
UNTIL WarehouseEntry.NEXT = 0;
END;
MESSAGE('Fertig');
20. November 2019 14:22
20. November 2019 14:32
WarehouseEntry.SETFILTER(Quantity,'>0');
IF WarehouseEntry.FINDSET THEN BEGIN
REPEAT
ItemLedgerEntry.SETRANGE("Root Document No.",WarehouseEntry."Source No.");
IF ItemLedgerEntry.FINDSET THEN BEGIN
REPEAT
ItemJournalLine.RESET;
ItemJournalLine.SETRANGE("Item No.",ItemLedgerEntry."Item No.");
ItemJournalLine.SETRANGE("Document No.",ItemLedgerEntry."Document No.");
IF ItemJournalLine.FINDFIRST THEN BEGIN
ItemJournalLine."Bin Code" :=WarehouseEntry."Bin Code";
ItemJournalLine.MODIFY;
END;
UNTIL ItemLedgerEntry.NEXT = 0;
END;
UNTIL WarehouseEntry.NEXT = 0;
END;
MESSAGE('Fertig');
20. November 2019 14:39
20. November 2019 15:40
ItemLedgerEntry.SETFILTER("Remaining Quantity",'<>0');
20. November 2019 16:09
21. November 2019 08:52
6. Dezember 2019 16:13