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

fix: document naming rule not working for subscription invoices #27386

Merged

Conversation

nextchamp-saqib
Copy link
Member

Document Naming Rule on Sales Invoice

CleanShot 2021-09-08 at 13 46 37@2x

Created a Subscription for the Company associated with that Company GSTIN

Now clicking on Fetch Subscription Updates on the Subscription document creates a Sales Invoice with default naming instead of following the Document Naming Rule.

This is because the Company GSTIN is set in the validate method of Sales Invoice while the naming is set before validate, hence while setting the name, the Company GSTIN condition is false

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.009%) to 51.657% when pulling e363dd3 on nextchamp-saqib:sub-set-missing-values into 5596988 on frappe:develop.

@nextchamp-saqib nextchamp-saqib merged commit 9c27f9b into frappe:develop Sep 8, 2021
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Sep 8, 2021
…pe#27386)

(cherry picked from commit 9c27f9b)

# Conflicts:
#	erpnext/accounts/doctype/subscription/subscription.py
frappe-pr-bot pushed a commit to frappe-pr-bot/erpnext that referenced this pull request Sep 8, 2021
…pe#27386)

(cherry picked from commit 9c27f9b)

# Conflicts:
#	erpnext/accounts/doctype/subscription/subscription.py
asoral pushed a commit to asoral/erpnext that referenced this pull request Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants