SBX - Search With Button

SBX - Forum Post Title

Item Rcpt Entry No.

Microsoft Dynamics NAV Forum

Lewishhh asked a question on 13 Sep 2017 5:10 AM
My Badges

Question Status

Verified

Hi All,

We were wondering why when you receipt something, it creates a Purch. Rcpt Line and populates the field "Item Rcpt Entry No.". However this doesn't always happen and sometimes sets this to 0. This has been causing issues when invoicing as it attempts to find records with this value.  Can anyone explain the reason for this, thanks. 

Codeunit 90 


InsertRcptEntryRelation(VAR PurchRcptLine : Record "Purch. Rcpt. Line") : Integer
TempTrackingSpecificationInv.RESET;
IF TempTrackingSpecificationInv.FINDSET THEN BEGIN
REPEAT
TempHandlingSpecification := TempTrackingSpecificationInv;
IF TempHandlingSpecification.INSERT THEN;
UNTIL TempTrackingSpecificationInv.NEXT = 0;
TempTrackingSpecificationInv.DELETEALL;
END;

TempHandlingSpecification.RESET;
IF TempHandlingSpecification.FINDSET THEN BEGIN
REPEAT
ItemEntryRelation.INIT;
ItemEntryRelation."Item Entry No." := TempHandlingSpecification."Entry No.";
ItemEntryRelation."Serial No." := TempHandlingSpecification."Serial No.";
ItemEntryRelation."Lot No." := TempHandlingSpecification."Lot No.";
ItemEntryRelation.TransferFieldsPurchRcptLine(PurchRcptLine);
ItemEntryRelation.INSERT;
UNTIL TempHandlingSpecification.NEXT = 0;
TempHandlingSpecification.DELETEALL;
EXIT(0);
END ELSE
EXIT(ItemLedgShptEntryNo);

Reply
Suresh Kulla responded on 13 Sep 2017 1:44 PM
Verified Answer

I believe it populates that value if the purchase order is related to the sales order. i.e. in drop shipment scenario it populates with shipment entry no.

Reply
Suresh Kulla responded on 13 Sep 2017 1:44 PM
Verified Answer

I believe it populates that value if the purchase order is related to the sales order. i.e. in drop shipment scenario it populates with shipment entry no.

Reply

SBX - Two Col Forum

SBX - Migrated JS