Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add 'ABBR' variable to support company abbreviation in naming series #43260

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

KhaledBinAmir
Copy link

Summary:

This pull request adds support for the .ABBR. variable in naming series, allowing users to include the company abbreviation in document names.

Changes Made:

Modified erpnext/accounts/utils.py to handle the .ABBR. variable in the parse_naming_series_variable function.
Updated hooks.py to register the .ABBR. variable in naming_series_variables.

Usage:

Users can now include .ABBR. in their naming series patterns, which will be replaced with the company abbreviation.

Example:
INV-.YYYY.-.ABBR.-.#####

Related Pull Request:
frappe#27809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accounts needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant