Sunday, December 10, 2023

Update

internal final class RunnableClass1

{

   /// <summary>

   /// Class entry point. The system will call this method when a designated menu

   /// is selected or when execution starts and this class is set as the startup class.

   /// </summary>

   /// <param name = "_args">The specified arguments.</param>

   public static void main(Args _args)

   {

       LedgerJournalTrans          ledgerJournalTrans;

       GeneralJournalEntry         generalJournalEntry;

       GeneralJournalAccountEntry  generalJournalAccountEntry;

       select forupdate ledgerJournalTrans

        where   ledgerJournalTrans.Voucher == 'APPM000001'

           && ledgerJournalTrans.DataAreaId == 'USMF' ;

       ttsbegin;

       ledgerJournalTrans.PaymReference = 'Kotamma';

       ledgerJournalTrans.update();

       ttscommit;

 

       while select forUpdate generalJournalAccountEntry

    where generalJournalAccountEntry.GeneralJournalEntry == 5637189675

       {

           ttsbegin;

           generalJournalAccountEntry.PaymentReference = 'Kotamma';

           generalJournalAccountEntry.update();

           ttscommit;

       }

 

   }

 

}

AP--->Vendor Payments:-


Voucher Tab:-





No comments:

Post a Comment

Automating Consolidate Account Updates for New Voucher Transactions in D365 Finance and Operations

  Ensure the  Consolidate Account  field is automatically updated for all new voucher transactions based on the  Consolidate MainAccount set...