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 #44711

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

mihir-kandoi
Copy link
Contributor

@mihir-kandoi mihir-kandoi commented Dec 16, 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

@rohitwaghchaure rohitwaghchaure marked this pull request as ready for review December 18, 2024 15:05
@rohitwaghchaure rohitwaghchaure merged commit 3eba6bf into develop Dec 18, 2024
20 of 24 checks passed
@rohitwaghchaure rohitwaghchaure deleted the new_sc_flow_2 branch December 18, 2024 15:08
mergify bot pushed a commit that referenced this pull request Dec 18, 2024
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants