Below job will help to get the next voucher number for continuous number sequence marked.
static void _updateVoucher(Args _args)
{
NumberSeq numberSeq;
NumberSequenceTable numSeqTable;
Voucher voucher;
numberSeq = NumberSeq::newGetVoucherFromId(LedgerJournalName::find('JournalName').NumberSequenceTable, true, false, UnknownNoYes::No);
info(numberSeq.voucher());
numberSeq.used();
}
static void _updateVoucher(Args _args)
{
NumberSeq numberSeq;
NumberSequenceTable numSeqTable;
Voucher voucher;
numberSeq = NumberSeq::newGetVoucherFromId(LedgerJournalName::find('JournalName').NumberSequenceTable, true, false, UnknownNoYes::No);
info(numberSeq.voucher());
numberSeq.used();
}
Hi there, I enjoy reading through your article post. Thank you for sharing.
ReplyDeleteMS Dynamics Technical Online Training
MS Dynamics AX Technical Training in Hyderabad
MS Dynamics AX Online Training
D365 AX Online Training
d365 ax technical online training
d365 ax technical training