Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: How to get check ledger entry related to a general journal line?

$
0
0
I need to get a check ledger entry related to a general journal line and set it Entry status to 'Printed'. Below is my code. I always get 'not found' message. checkLedgerEntryRec.SetRange("Document No.", GenJournalLine."Document No."); checkLedgerEntryRec.SetRange("Document Type", checkLedgerEntryRec."Document Type"::Payment); if (checkLedgerEntryRec.FindFirst()) then begin Message('found'); checkLedgerEntryRec."Entry Status" := checkLedgerEntryRec."Entry Status"::Printed; checkLedgerEntryRec.Modify(); end else Message('not found'); What is wrong with my code?

Viewing all articles
Browse latest Browse all 11285

Trending Articles