Help me in understanding this code

Hi Pioneers,

While going through the valuable & incredible resources at partnersource, I gone through the following piece of code :

<b>if (counter && ledgerJournalTable.journalType != LedgerJournalType::Periodic)
    {
    NumberSeq::release(ledgerJournalTable.voucherSeries, _voucher);
    }
    ttsCommit;
}</b>

Kindly help me in understanding, that what the above written code is telling ????

Hi Pioneers,

Awaiting your responce…

Hi,

NumberSeq::release() method is used to abort the number sequence generated. The same number sequence will be produced the next time.