fix: check for split entries in stock entry test

This commit is contained in:
Gursheen Anand 2023-12-05 12:46:22 +05:30
parent 262cafc430
commit a56b79cc72

View File

@ -504,7 +504,14 @@ class TestStockEntry(FrappeTestCase):
self.check_gl_entries( self.check_gl_entries(
"Stock Entry", "Stock Entry",
repack.name, repack.name,
sorted([[stock_in_hand_account, 1200, 0.0], ["Cost of Goods Sold - TCP1", 0.0, 1200.0]]), sorted(
[
["Cost of Goods Sold - TCP1", 0.0, 1200.0],
["Stock Adjustment - TCP1", 0.0, 1200.0],
["Stock Adjustment - TCP1", 1200.0, 0.0],
[stock_in_hand_account, 1200.0, 0.0],
]
),
) )
def check_stock_ledger_entries(self, voucher_type, voucher_no, expected_sle): def check_stock_ledger_entries(self, voucher_type, voucher_no, expected_sle):