How this work

RankerRanker Member Posts: 6
Microsoft Dynamics 365 Business Central
Version 14.0.40464
Cu 90 - "Purch.-Post"
has code
ItemApplnEntry.SETRANGE("Outbound Item Entry No.",TransRcptLine."Item Rcpt. Entry No.");
ItemApplnEntry.SETFILTER("Item Ledger Entry No.",'<>%1',TransRcptLine."Item Rcpt. Entry No.");
ItemApplnEntry.SETRANGE("Cost Application",TRUE);
IF ItemApplnEntry.FINDSET THEN

If I understand correctly, then
TransRcptLine."Item Rcpt. Entry No." : this number is POSITIVE item ledger entry
ItemApplnEntry."Outbound Item Entry No." : this number is NEGATIVE item ledger entry
therefore sfter statement
ItemApplnEntry.SETRANGE("Outbound Item Entry No.",TransRcptLine."Item Rcpt. Entry No.");
the statement
IF ItemApplnEntry.FINDSET THEN
will NEVER find ANYTHING

Where am I wrong?

Answers

  • RankerRanker Member Posts: 6
    It's work & fine work
    because
    TransRcptLine."Item Rcpt. Entry No." : this number is NEGATIVE item ledger entry
Sign In or Register to comment.