while select forUpdate tmp
{
ttsbegin;
select firstonly generalJournalEntry where generalJournalEntry.recid == tmp.GeneralJournalEntry
join fiscalCalendarPeriod where fiscalCalendarPeriod.RecId == generalJournalEntry.FiscalCalendarPeriod;
select firstonly vendInvoiceJour where tmp.Voucher == vendInvoiceJour.LedgerVoucher
&& vendInvoiceJour.InvoiceAccount == tmp.AccountNum
&& vendInvoiceJour.InvoiceDate == tmp.TransDate;
tmp.PeriodName = fiscalCalendarPeriod.Name;
tmp.PurchId = vendInvoiceJour.PurchId;
tmp.update();
ttscommit;
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156