Skip to content

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

Merged
nextchamp-saqib merged 1 commit intofrappe:developfrom
nextchamp-saqib:sub-set-missing-values
Sep 8, 2021
Merged

fix: document naming rule not working for subscription invoices#27386
nextchamp-saqib merged 1 commit intofrappe:developfrom
nextchamp-saqib:sub-set-missing-values

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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants