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: Work order creation from sales order #28388

Merged
merged 2 commits into from
Nov 15, 2021

Conversation

s-aga-r
Copy link
Contributor

@s-aga-r s-aga-r commented Nov 15, 2021

Source/Reference : (FR-ISS-318344)

Screenshots :

Before :

After :
Screenshot 2021-11-15 at 2 19 56 PM
Screenshot 2021-11-15 at 2 20 05 PM

Changes :
Get selected items using "get_selected_children()" and pass them to the "make_work_orders" method.

@ankush ankush requested review from ankush and removed request for nextchamp-saqib and deepeshgarg007 November 15, 2021 09:48
@ankush ankush added the CI-failing Unit tests or patch tests are failing. label Nov 15, 2021
@ankush ankush merged commit 2eccb7a into frappe:develop Nov 15, 2021
@ankush ankush removed the CI-failing Unit tests or patch tests are failing. label Nov 15, 2021
mergify bot pushed a commit that referenced this pull request Nov 15, 2021
* fix: Work order creation from sales order

* chore: formatting

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit 2eccb7a)
ankush pushed a commit that referenced this pull request Nov 15, 2021
* fix: Work order creation from sales order

* chore: formatting

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit 2eccb7a)

Co-authored-by: Sagar Sharma <63660334+s-aga-r@users.noreply.github.com>
@s-aga-r s-aga-r deleted the work-order-from-sales-order branch November 18, 2021 15:32
@sharmanakul sharmanakul added this to In progress in ERPNext Roadmap via automation Nov 24, 2021
@sharmanakul sharmanakul added this to the v13.16 milestone Nov 24, 2021
@ankush ankush moved this from In progress to Done in ERPNext Roadmap Dec 3, 2021
conncampbell pushed a commit to conncampbell/erpnext that referenced this pull request Jan 9, 2022
* fix: Work order creation from sales order

* chore: formatting

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
fproldan added a commit to fproldan/erpnext that referenced this pull request Aug 29, 2022
ValentinaPruvost pushed a commit to fproldan/erpnext that referenced this pull request Sep 21, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
github-actions bot pushed a commit to fproldan/erpnext that referenced this pull request Sep 21, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
fproldan added a commit to fproldan/erpnext that referenced this pull request Sep 21, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
fproldan added a commit to fproldan/erpnext that referenced this pull request Sep 21, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
fproldan added a commit to fproldan/erpnext that referenced this pull request Oct 18, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
fproldan added a commit to fproldan/erpnext that referenced this pull request Oct 18, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
ValentinaPruvost pushed a commit to fproldan/erpnext that referenced this pull request Dec 15, 2022
* perf(minor): general ledger report (backport frappe#27987)

* fix: replaced "=" with "in" for multiple statuses in query (backport frappe#28193)

* fix: Serial Nos not set in the row after scanning in popup

- Avoid whitspaces while calculating length of serial nos

(cherry picked from commit 734b57d)

* fix: don't make naming series mandatory for items (backport frappe#28394)

* fix: Work order creation from sales order (backport frappe#28388)

* fix: currency wise pricing rule not working

(cherry picked from commit 43aeb54)

* fix: remove item-item group name validation (backport frappe#28392)

* fix: Default party account getting overriden in invoices

(cherry picked from commit 8864857)

* fix: Remove warehouse filter on Batch field for Material Receipt

(cherry picked from commit 048210a)

* fix: Dispatch address details not displayed in v13

* fix: Unable to edit supplier scorecard criteria name once created (backport frappe#28348)

* fix: performance to submit the JV

(cherry picked from commit 7472760)

* fix: Pricing Rule not created against the Promotional Scheme

(cherry picked from commit d82910b)

* fix: sum of components in salary register (backport frappe#28237)

* fix: auto update price list rate

* fix: Pull Items that are in JC in Stock Entry against JC

- Check if items pulled in stock entry are present in Job Card
- Code cleanup and removed redundant checks

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit 3da0302)

* test: Stock Entry from JC correctness (items mapping and qty)

(cherry picked from commit 0aa237f)

* fix: Partial Trabsfers against JC

- Fixed transferred qty not back updating on JC if partial transfer
- Partial transfer not mapping pending qty from JC correctly in SE
- tests for above cases
- minor code cleanup

(cherry picked from commit e8d0c25)

* fix: (travis) Production Plan Summary Report breaks if no WO

- `get_cached_value` throws a DoesNotExistError if non-existent value, used `get_value` instead
- accomodate production plan items that dont have WO/PO against them as well (blank values)
- added some None value handling to avoid AttributeError

(cherry picked from commit 1eb3ca2)

* fix: Server side test

- make `tests_that_skip_setup` a tuple (added comma)
- remove manual teardown in `test_job_card_material_transfer_correctness` to avoid premature committing
- transfer_material_against = "Job Card" while making BOM with mulitple operations

(cherry picked from commit bb561ba)

* fix: `test_job_card_partial_material_transfer` test

- Use a specific BOM for JC tests
- Utility to create said BOM
- Sider: unused variable

(cherry picked from commit a5f8274)

Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>

Co-authored-by: Francisco Roldán <franciscoproldan@gmail.com>
Co-authored-by: marination <maricadsouza221197@gmail.com>
Co-authored-by: Rohit Waghchaure <rohitw1991@gmail.com>
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
Co-authored-by: Subin Tom <subintom2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants