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?
0
Answers
because
TransRcptLine."Item Rcpt. Entry No." : this number is NEGATIVE item ledger entry