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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

NethminaHiker360
Copy link

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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