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

feat(subcontracting): Added provision to create multiple Subcontracting Orders against a single Purchase Order (backport #44711) #44782

Merged

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Dec 18, 2024

Made changes to fulfil issue #43986

Current flow: Only a single Subcontracting Order could be made against a Subcontracted Purchase Order

New flow: User can now create multiple Subcontracting Orders against a single Purchase Order

  1. Checks for existing Subcontracting Order has been removed
  2. Upon creating a new Subcontracting Order, a new check has been added which will throw and error if user is trying to create a new SO against a PO which has been fully subcontracted

How to use: When creating a Subcontracting Order, user now has the ability to change the quantity of finished good item, hence enabling them to create a SO which partly fulfils the corresponding PO

Notes:

  1. An error will be thrown if quantity entered is higher than available subcontracting quantity (fetched from the PO)
  2. Upon creating a new Subcontracted Order, the line items will by default have the quantity as the remaining/available quantity to subcontract

https://docs.frappe.io/erpnext/user/manual/en/subcontracting


This is an automatic backport of pull request #44711 done by Mergify.

…ng Orders against a single Purchase Order (#44711)

* feat(subcontracting): Added provision to create multiple Subcontracting Orders from a single Subcontracted Purchase Order

* refactor(new_sc_flow_2): Fixed error thrown by semgrep

(cherry picked from commit 3eba6bf)

# Conflicts:
#	erpnext/buying/doctype/purchase_order/purchase_order.js
#	erpnext/buying/doctype/purchase_order/test_purchase_order.py
#	erpnext/buying/doctype/purchase_order_item/purchase_order_item.json
#	erpnext/subcontracting/doctype/subcontracting_order_item/subcontracting_order_item.json
#	erpnext/subcontracting/doctype/subcontracting_order_service_item/subcontracting_order_service_item.json
Copy link
Contributor Author

mergify bot commented Dec 18, 2024

Cherry-pick of 3eba6bf has failed:

On branch mergify/bp/version-15-hotfix/pr-44711
Your branch is up to date with 'origin/version-15-hotfix'.

You are currently cherry-picking commit 3eba6bf3dd.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   erpnext/buying/doctype/purchase_order/purchase_order.py
	modified:   erpnext/buying/doctype/purchase_order_item/purchase_order_item.py
	modified:   erpnext/controllers/subcontracting_controller.py
	modified:   erpnext/controllers/tests/test_subcontracting_controller.py
	modified:   erpnext/subcontracting/doctype/subcontracting_order/subcontracting_order.js
	modified:   erpnext/subcontracting/doctype/subcontracting_order/subcontracting_order.py
	modified:   erpnext/subcontracting/doctype/subcontracting_order/test_subcontracting_order.py
	modified:   erpnext/subcontracting/doctype/subcontracting_order_item/subcontracting_order_item.py
	modified:   erpnext/subcontracting/doctype/subcontracting_order_service_item/subcontracting_order_service_item.py

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   erpnext/buying/doctype/purchase_order/purchase_order.js
	both modified:   erpnext/buying/doctype/purchase_order/test_purchase_order.py
	both modified:   erpnext/buying/doctype/purchase_order_item/purchase_order_item.json
	both modified:   erpnext/subcontracting/doctype/subcontracting_order_item/subcontracting_order_item.json
	both modified:   erpnext/subcontracting/doctype/subcontracting_order_service_item/subcontracting_order_service_item.json

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

…ng Orders against a single Purchase Order (#44711)

* feat(subcontracting): Added provision to create multiple Subcontracting Orders from a single Subcontracted Purchase Order

* refactor(new_sc_flow_2): Fixed error thrown by semgrep
@mihir-kandoi mihir-kandoi force-pushed the mergify/bp/version-15-hotfix/pr-44711 branch 2 times, most recently from 463531d to 71e148f Compare December 19, 2024 07:48
@mihir-kandoi mihir-kandoi force-pushed the mergify/bp/version-15-hotfix/pr-44711 branch from 71e148f to e67d0b9 Compare December 19, 2024 07:51
@rohitwaghchaure rohitwaghchaure merged commit 8f81172 into version-15-hotfix Dec 20, 2024
11 checks passed
@rohitwaghchaure rohitwaghchaure deleted the mergify/bp/version-15-hotfix/pr-44711 branch December 20, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants