#59659·erpnext

Document Naming Rule | Dynamic Prefix

Author: hpotabattiCreated Sep 30, 2026Updated Sep 30, 2026
Labelsfeature-request

Currently, the system either has the option to have dynamic prefix in Document Naming Settings, but you cannot set the specific Conditions in it. OR, the system has Document Naming Rule, where you can set the conditions BUT cannot set Dynamic Prefixes.

Having Dynamic Prefixes in Document Naming Rule would be a great addition to the feature pool in a lot of cases.

Eg:

User wants to have different Purchase Receipt naming, based on the type of transsaction like Domestic, Import, Internal Transfers etc along with the warehouse abbreviation prefix.

Eg: For Domestic: .{warehouse.abbr}.-PR-DOM-.{fy}.- For Import: .{warehouse.abbr}.-PR-IMP-.{fy}.- For Internal Transfer: .{warehouse.abbr}.-PR-INT-.{fy}.-

This cannot be handled with Document Naming Rule as it does not accept Dynamic Conditions.