fix: use serial batch fields for subcontracting receipt (#40311)
(cherry picked from commit cef6291311)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
* feat: provision to close SCO
(cherry picked from commit 5e2669f4b6)
* fix: don't allow to submit/cancel SCR against a closed SCO
(cherry picked from commit 9e973476b2)
* fix: don't allow to submit/cancel SE against a closed SCO
(cherry picked from commit 5bc2035bd0)
* fix(ux): filter closed SCO in `Get Items From` dialog
(cherry picked from commit bb839b2924)
* fix: don't close PO on SCO close
(cherry picked from commit 0d01bd8a5a)
* fix: update qty on SCO status change
(cherry picked from commit 245effcccd)
* fix: don't allow to reopen SCO if PO is closed
(cherry picked from commit 784b6dcfea)
* fix: auto close and reopen SCO based on PO status
(cherry picked from commit 0819675fce)
* fix(text): test_update_status
(cherry picked from commit cdd5441435)
---------
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
fix: not able to cancel SCR with Batch (backport #38817) (#38821)
* fix: not able to cancel SCR with Batch (#38817)
(cherry picked from commit fb5090fd3f)
# Conflicts:
# erpnext/subcontracting/doctype/subcontracting_receipt/test_subcontracting_receipt.py
* chore: fix test case
* chore: fix test case
* chore: fix test case
* chore: fix test case
---------
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
(cherry picked from commit 71e833c3f2)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
* feat: add field `Action on Purchase Order Submission`
(cherry picked from commit 628ea42b63)
# Conflicts:
# erpnext/buying/doctype/buying_settings/buying_settings.json
* feat: auto create SCO on PO submission
(cherry picked from commit 9ec6f1e1d6)
# Conflicts:
# erpnext/buying/doctype/buying_settings/buying_settings.json
* feat: add field `Action on Subcontracting Receipt Submission`
(cherry picked from commit 762906f240)
# Conflicts:
# erpnext/buying/doctype/buying_settings/buying_settings.json
* chore: notify user on SCO creation
(cherry picked from commit 745e3bfb73)
* feat: add field `Purchase Order Item` in SCO Service Item
(cherry picked from commit 45d5cff47d)
* fix: hold PO item ref in SCO Service Item
(cherry picked from commit 7e4dd33ab0)
* feat: add field `Purchase Order Item` in SCO Item
(cherry picked from commit a2ede7d6d5)
* fix: maintain PO and PO Item ref in SCR Item
(cherry picked from commit e1cea25781)
* feat: auto create PR on SCR submission
(cherry picked from commit 040cc8d22f)
* feat: add `Purchase Order` link in SCR connections
(cherry picked from commit ca8a5b45ba)
* feat: add `Subcontracting Receipt` link in PO connections
(cherry picked from commit 98cba5ed30)
* fix: dont show `View` button on cancelled SCR
(cherry picked from commit dd80d3b9b9)
* fix: use checkbox instead of select field
(cherry picked from commit d366a91d9e)
# Conflicts:
# erpnext/buying/doctype/buying_settings/buying_settings.json
* feat: Subcontracting Receipt ref in Purchase Receipt
(cherry picked from commit d891bd7fac)
* feat: SCR Item ref in PR Item
(cherry picked from commit 37b3ac7952)
* feat: provision to create PR from SCR
(cherry picked from commit 8052103197)
* chore: PR ref in SCR connections
(cherry picked from commit 096a2c8cd0)
* fix: map warehouses in return SCR
(cherry picked from commit 874766a82f)
* fix(ux): hide `Create Purchase Receipt` button for Subcontract Return
(cherry picked from commit 7145b040f1)
* chore: `linter`
(cherry picked from commit 857f2b5a01)
* test: auto create SCO on PO submit
(cherry picked from commit 68585f6f2b)
* test: auto create PR on SCR submit
(cherry picked from commit 7b0cd03f88)
* fix(test): `test_auto_create_purchase_receipt`
(cherry picked from commit 3da0aa6a0b)
* chore: `conflicts`
---------
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
fix: valuation rate for the subcontracting receipt supplied items with Serial and Batch Bundle (#38094)
fix: valuation rate for the subcontracting receipt supplied items with batch
(cherry picked from commit 3e77c0b564)
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
chore: refetch item images on transaction save (#38095)
chore: re fetch item images on transaction save
(cherry picked from commit e93a19ffb5)
Co-authored-by: Anand Baburajan <anandbaburajan@gmail.com>
* feat: allow return of components for SCO that don't have SCR created
(cherry picked from commit 8e3b9ec879)
* fix: consider returned qty while calculating unsupplied qty
(cherry picked from commit 3290df5593)
---------
Co-authored-by: s-aga-r <sagarsharma.s312@gmail.com>
* feat: new DocType `Service Item and Finished Good Map`
* fix(ux): filters for Service Item and Finished Good
* fix: validations for Service Item and Finished Good
* feat: set FG Item on Service Item selection in PO
* refactor: one-to-many mapping between service item and finished goods
* feat: auto set Service Item for finished good in PO created from PP
* feat: auto set Service Item on Finished Good selection in PO
* test: add test case for service item and finished goods map
* feat: `BOM` field in `Finished Good Detail`
* feat: new DocType `Subcontracting BOM`
* fix: filters and validations for Subcontracting BOM
* feat: auto select Service Item in PO created from PP
* test: add test case for PO service item auto pick
* feat: pick BOM from Subcontracting BOM in SCO
* feat: auto pick `Service Item` on FG select
* refactor: remove DocType `Service Item and Finished Goods Map` and `Finished Good Detail`
* feat: fetch FG for Service Item
* chore: `linter`
* refactor: update `Auto Name` expression for Subcontracting BOM