@t_gdb you could do that by tweaking the setup, but you'd have to manually update the 'suffix' (yyyy) at the end of every accounting period (and reset the 'initial number' at the same time) see: Set Up Auto-Generated Numbers. you could use the 'allow override' feature for the document#s and create a script to generate these, but it's a pretty big pain, and you'll run into issues if you have lots of concurrent transaction creation. it'd be easier (ie: safer) to use your script to populate a custom field imo.