Use below code to mark customers open transaction from X++. static void MarkOpenTransaction() { custInvoiceJour custInvoiceJour; SalesTable salesTable; specTrans specTrans; custTrans custTrans; custTransOpen custTransOpen; TaxWithholdTrans taxWithHoldTrans; TaxWithhold_CustPaym taxWithhold; CustVendOpenTransManager manager; ExchangeRateHelper exch; AmountCur totalSettleAmount; ; select firstOnly custInvoiceJour where custInvoiceJour.InvoiceId == '004452' ; // && _custInvoiceJour.SalesId == xml_SalesID.text(); if (custInvoiceJour) { ttsBegin ; ...
Everything about Microsoft Dynamics 365 and Power Platform