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: download materials request plan in production plan #41886

Conversation

Kishan0330
Copy link
Contributor

Version: 15 & 14

fixes: #41862

Issue:
When the for_warehouse field in the form is not selected, the warehouses_data array incorrectly includes an object with warehouse: empty string(''). This results in displaying empty string('') in the UI, which is not the desired behavior.

Changes Made:
Updated the JavaScript code to check if frm.doc.for_warehouse is not an empty string before adding the warehouse property to the warehouses_data array.
If frm.doc.for_warehouse is an empty string, the array will not include the warehouse property, thus avoiding the display of empty string('') in the UI.

Before:
Before.webm

After:
After.webm

@rohitwaghchaure rohitwaghchaure merged commit 7996723 into frappe:develop Jun 13, 2024
11 checks passed
rohitwaghchaure added a commit that referenced this pull request Jun 13, 2024
…-41886

fix: download materials request plan in production plan (backport #41886)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants