Hi Suresh. I think this is a known bug in NAV. This was reported in NAV 2005 whereby partial picks DO NOT work properly for transfer lines. In our case, we are working with production orders and performing a warehouse pick on Released Production Order.
Anyway, I fixed the "bug" in codeunit 6500. For those that are interested below is my fix:
problem: when item lot tracking is turned on and users create warehouse pick on a released production order (Manufacturing module), partial picks do not work.
Resolution:
In the 6500 Item Tracking Management Codeunit, modify the ItemTrkgQtyPostedOnSource function. Add the code snippet from //Mbr 001 -start to //MBR 001 - end
IF NOT ReservEntry.ISEMPTY THEN BEGIN
ReservEntry.FINDSET;
REPEAT
Qty += ReservEntry."Qty. to Handle (Base)";
UNTIL ReservEntry.NEXT = 0;
END;
IF "Source Type" = DATABASE::"Transfer Line" THEN BEGIN
TransferLine.GET("Source ID","Source Ref. No.");
Qty -= TransferLine."Qty. Shipped (Base)";
END;
//MBR 001 - start
IF "Source Type" = DATABASE::"Prod. Order Component" THEN BEGIN
ProdComp.SETRANGE("Prod. Order No.",SourceTrackingSpec."Source ID");
ProdComp.SETRANGE("Prod. Order Line No.",SourceTrackingSpec."Source Prod. Order Line");
ProdComp.SETRANGE("Item No.",SourceTrackingSpec."Item No.");
IF ProdComp.FINDSET THEN
Qty += ProdComp."Expected Qty. (Base)";
END;
//MBR 001 - end