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: add missing fields to field_no_map array #43873

Merged

Conversation

NethminaHiker360
Copy link
Contributor

@NethminaHiker360 NethminaHiker360 commented Oct 28, 2024

In the make_purchase_order_for_default_supplier method in the Sales Order.py file, the field_no_map array lists fields that should not be copied to the Purchase Order. Currently, these two fields are missing from the array ( margin_type and margin_rate_or_amount ), leading to unintended field copies. Adding them to the field_no_map array resolves this issue.

closes #43865

backport version-15
backport version-14

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Oct 28, 2024
@NethminaHiker360 NethminaHiker360 changed the title fix: add "margin_type" and "margin_rate_or_amount" fields to 'field_no_map' array under make_purchase_order_for_default_supplier method in sales_order.py fix: add missing fields to field_no_map array Oct 28, 2024
@NethminaHiker360 NethminaHiker360 changed the title fix: add missing fields to field_no_map array fix: add missing fields to 'field_no_map' array Oct 28, 2024
@NethminaHiker360 NethminaHiker360 changed the title fix: add missing fields to 'field_no_map' array fix: add missing fields to field_no_map array Oct 28, 2024
@ruthra-kumar ruthra-kumar removed the request for review from deepeshgarg007 November 4, 2024 07:53
@ruthra-kumar ruthra-kumar self-assigned this Nov 4, 2024
@ruthra-kumar ruthra-kumar force-pushed the fix-43865-sales-order branch from ac176a7 to 70f090c Compare November 8, 2024 04:54
@ruthra-kumar ruthra-kumar merged commit dfe233f into frappe:develop Nov 8, 2024
13 checks passed
ruthra-kumar added a commit that referenced this pull request Nov 8, 2024
…-43873

fix: add missing fields to field_no_map array (backport #43873)
ruthra-kumar added a commit that referenced this pull request Nov 8, 2024
…-43873

fix: add missing fields to field_no_map array (backport #43873)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix needs-tests This PR needs automated unit-tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The discount applied to each Sales Order item is copied over to the corresponding Purchase Order item.
2 participants