mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 06:28:29 +00:00
refactor(test): make bom stock calculated deterministic
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
|
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
|
||||||
# For license information, please see license.txt
|
# For license information, please see license.txt
|
||||||
|
|
||||||
|
import frappe
|
||||||
|
|
||||||
from erpnext.manufacturing.doctype.production_plan.test_production_plan import make_bom
|
from erpnext.manufacturing.doctype.production_plan.test_production_plan import make_bom
|
||||||
from erpnext.manufacturing.report.bom_stock_calculated.bom_stock_calculated import (
|
from erpnext.manufacturing.report.bom_stock_calculated.bom_stock_calculated import (
|
||||||
execute as bom_stock_calculated_report,
|
execute as bom_stock_calculated_report,
|
||||||
@@ -56,6 +58,7 @@ def create_items():
|
|||||||
"standard_rate": 100,
|
"standard_rate": 100,
|
||||||
"opening_stock": 100,
|
"opening_stock": 100,
|
||||||
"last_purchase_rate": 100,
|
"last_purchase_rate": 100,
|
||||||
|
"item_defaults": [{"company": "_Test Company", "default_warehouse": "Stores - _TC"}],
|
||||||
}
|
}
|
||||||
).name
|
).name
|
||||||
rm_item2 = make_item(
|
rm_item2 = make_item(
|
||||||
@@ -64,6 +67,7 @@ def create_items():
|
|||||||
"standard_rate": 200,
|
"standard_rate": 200,
|
||||||
"opening_stock": 200,
|
"opening_stock": 200,
|
||||||
"last_purchase_rate": 200,
|
"last_purchase_rate": 200,
|
||||||
|
"item_defaults": [{"company": "_Test Company", "default_warehouse": "Stores - _TC"}],
|
||||||
}
|
}
|
||||||
).name
|
).name
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user