refactor(test): make sales payment summary deterministic

This commit is contained in:
ruthra kumar
2026-01-30 20:59:14 +05:30
parent 1689d6a9fc
commit 47cae808c5
2 changed files with 24 additions and 52 deletions

View File

@@ -2312,6 +2312,15 @@ class ERPNextTestSuite(unittest.TestCase):
"item_group": "All Item Groups",
"stock_uom": "Nos",
},
{
"doctype": "Item",
"item_code": "Consulting",
"item_name": "Consulting",
"is_stock_item": 0,
"item_group": "All Item Groups",
"stock_uom": "Nos",
"company": "_Test Company",
},
]
cls.item = []
for x in records:
@@ -2509,6 +2518,13 @@ class ERPNextTestSuite(unittest.TestCase):
"represents_company": cls.companies[6].name,
"companies": [{"company": cls.companies[6].name}],
},
{
"customer_group": "_Test Customer Group",
"customer_name": "Prestiga-Biz",
"customer_type": "Company",
"doctype": "Customer",
"territory": "_Test Territory",
},
]
cls.customer = []
for x in records:
@@ -2991,6 +3007,12 @@ class ERPNextTestSuite(unittest.TestCase):
"item_code": "Loyal Item",
"price_list_rate": 10000,
},
{
"doctype": "Item Price",
"item_code": "Consulting",
"price_list": "Standard Selling",
"price_list_rate": 10000,
},
]
cls.item_price = []
for x in records: