web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Marking multiple invoices in vendor payment journal

(0) ShareShare
ReportReport
Posted on by 261

Hi all,

I’m working on automating vendor payment journal creation from a third‑party API. I’ve built a batch job that creates the journal based on the API status I receive.

While creating the journal, I also need to mark the transaction in the “Settle transactions” form. The requirement is to only mark the transaction (tick the checkbox), not settle it immediately.

This is a vendor‑to‑vendor journal creation scenario.

What I tried

  • With the code I wrote, when I pass one invoice into the journal, it works fine — the transaction is marked correctly.
  • But when I pass multiple invoices into the same journal:
    • The first invoice is marked correctly (checkbox ticked).
    • The subsequent invoices end up settled instead of just marked.
Once settled, the customer cannot manually unmark them, which is not correct.
ublic static void markVendOpenTrans(CustVendTransOpen _vendTransOpen, NoYes _markTrans,LedgerJournalTrans _ledgerTrans)
{
    CustVendOpenTransManager manager = CustVendOpenTransManager::construct(_ledgerTrans);
 
  
  
    manager.updateTransMarked(_vendTransOpen, _markTrans);
 

    if (TaxWithholdParameters_IN::checkTaxParameters())
    {
        manager.updateTransMarkedAdjustJournals_IN(_vendTransOpen, _markTrans);
    }
 
}

requirement

The customer needs the invoices to be marked only so that:

  • No one else can use those transactions.
  • Settlement is not needed.
  • They can manually unmark later if needed.

Issue

Right now, the first invoice is marked correctly, but the second one is settled automatically. This prevents the customer from unmarking it manually.

 
Note: After Running a batch job this LedgerJournaltrans  record get created in a loop and i am calling  inside that only .

If you need further clarification feel free to ask.
 
Thanks,
Ayushaman
 
Categories:
I have the same question (0)
  • Suggested answer
    Giorgio Bonacorsi Profile Picture
    871 on at
    Hello,
    I'm not a developer, but I can explain how we usually handle this by leveraging these data entities in data management:
    - Vendor payment journal: We create the journal.
    - Vendor payment journal line: We create the lines.
    - Vendor payment journal line settled invoice: This is where we perform the settlement. We simply specify the line number and the vendor invoice.
     
    Even if you use a different path, you can likely apply the same logic (and data entities).

    Thank you,
    Giorgio

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans