![]() |
#2 |
MCTS
|
а для чего транзакция на внешнем уровне? Попробуйте написать так:
X++: static void LJ_VoucherRefresh(Args _args) { LedgerJournalTable ljt; LedgerJournalTrans ljtr; int num = 212; ; while select ljt where ljt.Posted == false { ttsbegin; while select forupdate ljtr where ljtr.JournalNum == ljt.JournalNum { num++; ljtr.Voucher = strfmt("V0000%1", num); ljtr.doUpdate(); } ttscommit; } } можно попробовать изменить присваивание: ljtr.Voucher = strfmt("V0000%1", num); и так ли нужно делать doUpdate (чем не катит update()) |
|