mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: check for split entries in stock entry test
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user