mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
Merge pull request #34225 from s-aga-r/fix-mr-warehouse
fix: set `from_warehouse` and `to_warehouse` while mapping SE
This commit is contained in:
@@ -587,6 +587,9 @@ def make_stock_entry(source_name, target_doc=None):
|
|||||||
|
|
||||||
def set_missing_values(source, target):
|
def set_missing_values(source, target):
|
||||||
target.purpose = source.material_request_type
|
target.purpose = source.material_request_type
|
||||||
|
target.from_warehouse = source.set_from_warehouse
|
||||||
|
target.to_warehouse = source.set_warehouse
|
||||||
|
|
||||||
if source.job_card:
|
if source.job_card:
|
||||||
target.purpose = "Material Transfer for Manufacture"
|
target.purpose = "Material Transfer for Manufacture"
|
||||||
|
|
||||||
@@ -722,6 +725,7 @@ def create_pick_list(source_name, target_doc=None):
|
|||||||
def make_in_transit_stock_entry(source_name, in_transit_warehouse):
|
def make_in_transit_stock_entry(source_name, in_transit_warehouse):
|
||||||
ste_doc = make_stock_entry(source_name)
|
ste_doc = make_stock_entry(source_name)
|
||||||
ste_doc.add_to_transit = 1
|
ste_doc.add_to_transit = 1
|
||||||
|
ste_doc.to_warehouse = in_transit_warehouse
|
||||||
|
|
||||||
for row in ste_doc.items:
|
for row in ste_doc.items:
|
||||||
row.t_warehouse = in_transit_warehouse
|
row.t_warehouse = in_transit_warehouse
|
||||||
|
|||||||
Reference in New Issue
Block a user