Employee naming by employee number

i test today to add new employee the naming does not work like before
as you see before today the naming was by employee number but now was by naming series?
how could i solve this ?
and how could i avoid it in future?


image
this is my apps verions
ERPNext: v15.38.4 (version-15)
Frappe Framework: v15.44.2 (version-15)
Frappe HR: v15.32.0 (version-15)

You will have to export your customizations through the “Customize” option in your custom app, and while exporting, check the “Sync on Migrate” checkbox.

does this mean that
the customization will not worked until i run two this command

bench export-fixtures
bench migrate

??
but what is the customize that is i must to apply now
i just set the hr setting no thing custom to export it?

I suggested you export your customization because you said it was working before, then stopped working. You changed the naming series, and it started working as expected. That’s why I suggested you export your naming series and other customization through the customize form, or you can directly export the property setter if you want to export it using the bench export-fixtures command.

Still not working now but to avoid it in the future I will do like your suggestion
what could i did to let them run as before?

If you change the naming series via the Customize Form, it will create a property setter. Export that property setter in your custom app and ensure your app migrates last, after all the Frappe apps. Only then will it apply the customizations; otherwise, there is a chance that Frappe apps will override them.

By “Frappe app,” I mean all Frappe applications, such as ERPNext and HRMS.


hr setting is employee number
and these is the doctype in two places


i try to impart data and to enter it manaually
but the naming still series not number like what i want to be??

Go to the property setter, apply the filter for the Employee doctype, select and open the naming record, and check what value is set there.

Hey @manal_erpnext
There is one option in HR settings for Employee Naming series, please check it

It’s working??

i create new site
then install frappe apps
all things worked well
then when i install my custom app the issue appear i try to know the matter from where came?

I removed the property setter JSON file from my app, and then I checked I had just 16 records in the property setter inside the system I did export fixtures that had the property setter, and then when I migrated they were up to 20 the 4 errors from where they came?

Are you getting errors in a property setter? What errors are you getting while migrating?

i fixed it
but still the error


there naming does not work as i want becuase this override i just add some new statuses just
when i commet this code its worked well and when i reorder the installed app it also worked well ?! @ejaaz


This function sets the naming in the Employee doctype. Your code looks the same as the Employee doctype; you have just added an extra status??

in validate method
yes and follow this video