
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.
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);
}
}
The customer needs the invoices to be marked only so that:
Right now, the first invoice is marked correctly, but the second one is settled automatically. This prevents the customer from unmarking it manually.