21. Dezember 2012 16:47
IF (xRec.Default <> Default) AND Default THEN BEGIN
ChangeBinCode("Item No.","Variant Code","Location Code","Bin Code");
END;
SalesLine.RESET;
SalesLine.SETRANGE(Type,SalesLine.Type::Item);
SalesLine.SETRANGE("No.",ItemNo);
SalesLine.SETRANGE("Variant Code",Variant);
SalesLine.SETFILTER("Location Code",'%1|''''',Location);
IF SalesLine.FINDFIRST THEN BEGIN
REPEAT
ChangeBin.SetSalesLine(SalesLine);
IF NOT ChangeBin.RUN THEN
MESSAGE(Text50000,SalesLine."Document Type",SalesLine."Document No.",SalesLine."Line No.");
UNTIL SalesLine.NEXT = 0;
END;
PurchLine.RESET;
PurchLine.SETRANGE(Type,PurchLine.Type::Item);
PurchLine.SETRANGE("No.",ItemNo);
PurchLine.SETRANGE("Variant Code",Variant);
PurchLine.SETFILTER("Location Code",'%1|''''',Location);
IF PurchLine.FINDFIRST THEN BEGIN
REPEAT
ChangeBin.SetPurchLine(PurchLine);
IF NOT ChangeBin.RUN THEN
MESSAGE(Text50000,PurchLine."Document Type",PurchLine."Document No.",PurchLine."Line No.");
UNTIL PurchLine.NEXT = 0;
END;
21. Dezember 2012 17:03
28. Dezember 2012 09:06