26. Oktober 2011 11:41
Artikel 20252 kann nicht geliefert werden, weil der Bestand an Lagerort “ZENTRAL“, Lagerplatz““, Variante““ nur 0 beträgt.
28. Oktober 2011 00:08
28. Oktober 2011 01:04
IF "Item Charge No." = '' THEN BEGIN
SalesSetup.GET;
IF SalesSetup."Block ship. when neg. invent." THEN BEGIN
IF ("Entry Type" = "Entry Type"::Sale) AND (Quantity <> 0) THEN BEGIN
Item.GET("Item No.");
Item.SETRANGE("Variant Filter","Variant Code");
Item.SETRANGE("Location Filter","Location Code");
Item.SETRANGE("Bin Filter","Bin Code");
Item.CALCFIELDS(Inventory,"Reserved Qty. on Inventory");
QtyAvailable := Item.Inventory - Item."Reserved Qty. on Inventory";
ResMgt.InitFilterAndSortingFor(ResEntry,TRUE);
ItemJnlReserve.FilterReservFor(ResEntry,ItemJnlLine);
IF ResEntry.FIND('-') THEN REPEAT
QtyAvailable := QtyAvailable - ResEntry."Quantity (Base)";
UNTIL ResEntry.NEXT = 0;
IF (QtyAvailable < "Quantity (Base)") THEN
ERROR(Text11500, // cannot be shipped because of inventory
"Item No.","Location Code","Bin Code","Variant Code",QtyAvailable);
END;
END;
END;
28. Oktober 2011 08:20
29. Oktober 2011 21:41
8. November 2011 13:20
IF ResEntry.FIND('-') THEN REPEAT
QtyAvailable := QtyAvailable - ResEntry."Quantity (Base)";
UNTIL ResEntry.NEXT = 0;
IF (QtyAvailable < "Quantity (Base)") THEN
ERROR(Text11500, // cannot be shipped because of inventory
"Item No.","Location Code","Bin Code","Variant Code",QtyAvailable);
IF (QtyAvailable < ResEntry."Quantity (Base)") THEN
ERROR(Text11500, // cannot be shipped because of inventory
"Item No.","Location Code","Bin Code","Variant Code",QtyAvailable);
8. November 2011 13:43
MJonas hat geschrieben:Damit liegt hier wohl ein Fehler im Queltext vor.
8. November 2011 15:06
8. November 2011 15:26
8. November 2011 15:27
IF ResEntry.FIND('-') THEN REPEAT
QtyAvailable := QtyAvailable - ResEntry."Quantity (Base)";
IF (QtyAvailable < ResEntry."Quantity (Base)") THEN
15. November 2011 11:27
15. November 2011 12:21
MJonas hat geschrieben:Der geänderte Code sieht somit folgendermaßen aus:
- Code:
IF (QtyAvailable < ResEntry."Quantity (Base)") THEN
ERROR(Text11500, // cannot be shipped because of inventory
"Item No.","Location Code","Bin Code","Variant Code",QtyAvailable);