I am trying to rename the “Main” cost center on my new build of ERPNext (13.5.0) but I find that when I add my own cost center number, it duplicates the number in the name text field.
e.g. I rename the “Main” (default) cost center to “Primary”, and I give it the number “GB02/MA101”. I press the “Update” button, and the name becomes “GB02/MA101 - GB02/MA101 - Primary”.
I just want it to say “Primary” in the name field, nothing else. Can anyone help?
Use Update Cost Center Name / Number and set Cost Center Name to correct name and Cost Center Number to empty.
Update
Refresh page.
Use Update Cost Center Name / Number again and set Cost Center Number to correct number. → Update
STANDARD VARIANT
Use + Add Cost Center button and set up Cost Center with proper name and number.
Rename Cost Center with Update Cost Center Name / Number and set Cost Center Name to correct name (including number prefix, but not company suffix — IMPORTANT!) and Cost Center Number to empty and Merge with existing to true.
Update
(Might need to try the above several times due to random error messages.)
This is not a bug or Issue. I faced similar issue, and then found this solution.
You Can not use any character in the Cost Centre Number field. If you use any character in the Cost Centre Number field, then this line of code appends the number field back to the title.
All you need to do is use only numbers in Cost Centre Number.