Set Custom Series for Address ERPNEXT14

Hi,
Is there any way to customize the addresses with customer Id like ADD-CUS-0001? this “CUS-0001” is customer ID/ customer series.

Thank you.

@Vasana_Wijewardena There may be a possible cases that 1 address can be linked with multiple customer, supplier etc.

in your cases every time you will have 1 customer 1 address always ?

Because if same customer is having another address then as per your series logic, the new address will also have ADD-CUS-0001 and this will result into duplicate document naming error

@Hardik_Gadesha , in My scenario It may have multiple, but it will append address type as well. One customer can have multiple address types but one address per address type. So Example will be ADD-CUS-0001-Bill / ADD-CUS-0001-ship etc.

Thank you.

So if the Same Address will not attach to other then Customer then you can just simply go with Custom Naming Series Code

@Hardik_Gadesha , Thank you, could you please tell how should I do it? because the customer is linked to the address and how can I get customer ID here? Do you think I have to write a script? Because First I think I have to check Address has Linked Customer, if yes then I have to append it.

@Vasana_Wijewardena Customer ID will be present in Child table at bottom on address