Why Doctype "Customer" in module Selling have field "naming_series" wrong value when saved

When I added a new document to DocType Customer in Module Selling, it saved the wrong name field:

– There is an option for naming_series field as CUST-.YYYY.-

  • When adding new:

    – Why is it saved like that? Not the same as the selected naming_series field
    it is expected to have this value: CUST-2023-00001

  • Why save by customer_name field and not naming_series? Help me. thanks!

@LinhFrappe open selling settings and change customer naming by to naming series.

Thanks @bahaou, it worked!