fix: check for split entries in stock entry test
This commit is contained in:
parent
262cafc430
commit
a56b79cc72
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user