I want to update the vendor id across all the legal entities according to the custom number sequence defined. Can any one please share how one can fetch the number sequence of vendor ID via code?
Please check if number sequence for vendor account is setup in Account payable parameters.
Check the number sequence is setup properly, please try this code and debug where its failing. Also, please check if number sequence is working correctly when vendor is created manually from All vendors form.
_sequence = NumberSeq::newGetNum( VendParameters::numRefVendAccount());
sequence = NumberSeq::newGetNum( NumberSeqReference::findReference(extendedTypeNum(VendAccount))); info(sequence.num());
Hi Mohit,
I have used the following code to generate the number sequence, but its returning blank. Any suggestions?
Hi Harshal, Please check below article. There is a method numRefVendAccount in VendParameters table.
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156