mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
Merge branch 'master' into develop
This commit is contained in:
@@ -631,7 +631,8 @@ class StockEntry(StockController):
|
||||
fetch_exploded = self.use_multi_level_bom)
|
||||
|
||||
for item in item_dict.values():
|
||||
item.from_warehouse = self.from_warehouse or item.default_warehouse
|
||||
# if source warehouse presents in BOM set from_warehouse as bom source_warehouse
|
||||
item.from_warehouse = self.from_warehouse or item.source_warehouse or item.default_warehouse
|
||||
return item_dict
|
||||
|
||||
def get_bom_scrap_material(self, qty):
|
||||
|
||||
@@ -90,7 +90,7 @@ def get_item_details(args):
|
||||
item.lead_time_days)
|
||||
|
||||
if args.get("is_subcontracted") == "Yes":
|
||||
out.bom = get_default_bom(args.item_code)
|
||||
out.bom = args.get('bom') or get_default_bom(args.item_code)
|
||||
|
||||
get_gross_profit(out)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user