mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 20:05:09 +00:00
@@ -3669,7 +3669,7 @@ class TestPurchaseReceipt(FrappeTestCase):
|
|||||||
|
|
||||||
columns, data = execute(
|
columns, data = execute(
|
||||||
filters=frappe._dict(
|
filters=frappe._dict(
|
||||||
{"item_code": item_code, "warehouse": pr.items[0].warehouse, "company": pr.company}
|
{"item_code": [item_code], "warehouse": [pr.items[0].warehouse], "company": pr.company}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ class TestStockBalance(FrappeTestCase):
|
|||||||
self.filters = _dict(
|
self.filters = _dict(
|
||||||
{
|
{
|
||||||
"company": "_Test Company",
|
"company": "_Test Company",
|
||||||
"item_code": self.item.name,
|
"item_code": [self.item.name],
|
||||||
"from_date": "2020-01-01",
|
"from_date": "2020-01-01",
|
||||||
"to_date": str(today()),
|
"to_date": str(today()),
|
||||||
}
|
}
|
||||||
@@ -165,6 +165,6 @@ class TestStockBalance(FrappeTestCase):
|
|||||||
variant.save()
|
variant.save()
|
||||||
|
|
||||||
self.generate_stock_ledger(variant.name, [_dict(qty=5, rate=10)])
|
self.generate_stock_ledger(variant.name, [_dict(qty=5, rate=10)])
|
||||||
rows = stock_balance(self.filters.update({"show_variant_attributes": 1, "item_code": variant.name}))
|
rows = stock_balance(self.filters.update({"show_variant_attributes": 1, "item_code": [variant.name]}))
|
||||||
self.assertPartialDictEq(attributes, rows[0])
|
self.assertPartialDictEq(attributes, rows[0])
|
||||||
self.assertInvariants(rows)
|
self.assertInvariants(rows)
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class TestStockLedgerReeport(FrappeTestCase):
|
|||||||
company="_Test Company",
|
company="_Test Company",
|
||||||
from_date=today(),
|
from_date=today(),
|
||||||
to_date=add_days(today(), 30),
|
to_date=add_days(today(), 30),
|
||||||
item_code="_Test Stock Report Serial Item",
|
item_code=["_Test Stock Report Serial Item"],
|
||||||
)
|
)
|
||||||
|
|
||||||
def tearDown(self) -> None:
|
def tearDown(self) -> None:
|
||||||
|
|||||||
@@ -17,8 +17,15 @@ batch = get_random("Batch")
|
|||||||
REPORT_FILTER_TEST_CASES: list[tuple[ReportName, ReportFilters]] = [
|
REPORT_FILTER_TEST_CASES: list[tuple[ReportName, ReportFilters]] = [
|
||||||
("Stock Ledger", {"_optional": True}),
|
("Stock Ledger", {"_optional": True}),
|
||||||
("Stock Ledger", {"batch_no": batch}),
|
("Stock Ledger", {"batch_no": batch}),
|
||||||
("Stock Ledger", {"item_code": "_Test Item", "warehouse": "_Test Warehouse - _TC"}),
|
("Stock Ledger", {"item_code": ["_Test Item"], "warehouse": ["_Test Warehouse - _TC"]}),
|
||||||
("Stock Balance", {"_optional": True}),
|
(
|
||||||
|
"Stock Balance",
|
||||||
|
{
|
||||||
|
"item_code": ["_Test Item"],
|
||||||
|
"warehouse": ["_Test Warehouse - _TC"],
|
||||||
|
"item_group": "_Test Item Group",
|
||||||
|
},
|
||||||
|
),
|
||||||
("Stock Projected Qty", {"_optional": True}),
|
("Stock Projected Qty", {"_optional": True}),
|
||||||
("Batch-Wise Balance History", {}),
|
("Batch-Wise Balance History", {}),
|
||||||
("Itemwise Recommended Reorder Level", {"item_group": "All Item Groups"}),
|
("Itemwise Recommended Reorder Level", {"item_group": "All Item Groups"}),
|
||||||
|
|||||||
Reference in New Issue
Block a user