Create voucher number manually and assign it to Ledger journal trans table
Static void createVoucherManually(Args _args)
{
NumberSeq numberseq;
Voucher voucher;
AxLedgerJournalTrans trans
= new AxLedgerJournalTrans();
numberseq =
NumberSeq::newGetVoucherFromCode(LedgerJournalName::find(“LedgerJournalNameId”).VoucherSeries);
voucher = numberseq.voucher();
info(voucher);
/*
trans.parmVoucher(voucher);
//Assign mandatory parameters to ledgerjournaltrans (trans)
trans.save();
*/
}
No comments:
Post a Comment