fix: minor fix

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Nabin Hait
2026-07-01 19:18:17 +05:30
committed by GitHub
parent 7f44583a94
commit 116b7bf672

View File

@@ -67,7 +67,8 @@ class TestStockAndAccountValueComparison(ERPNextTestSuite):
rows = self.run_report(account=account)
row = next(r for r in rows if r["voucher_no"] == receipt.name)
row = next((r for r in rows if r["voucher_no"] == receipt.name), None)
self.assertIsNotNone(row, "Tampered GL entry should cause the voucher to appear in the report")
self.assertEqual(row["ledger_type"], "Stock Ledger Entry")
self.assertEqual(row["stock_value"], 1000) # unchanged stock ledger value
self.assertEqual(row["account_value"], 600) # tampered GL value