31. Oktober 2007 14:57
IF WhseHandlingRequired THEN BEGIN
// Logistikposition -> Zu liefern = 0
IF "Document Type" = "Document Type"::"Return Order" THEN BEGIN
SalesLine."Return Qty. to Receive" := 0;
SalesLine."Return Qty. to Receive (Base)" := 0;
END ELSE BEGIN
SalesLine."Qty. to Ship" := 0;
SalesLine."Qty. to Ship (Base)" := 0;
END;
SalesLine.InitQtyToInvoice;
END ELSE BEGIN
// normale Position -> Berechnung von "Zu liefern"
IF "Document Type" = "Document Type"::"Return Order" THEN
SalesLine.InitQtyToReceive
ELSE
SalesLine.InitQtyToShip;
END;
31. Oktober 2007 15:58
31. Oktober 2007 16:06
2. November 2007 11:25