test: fix test case

This commit is contained in:
Sagar Sharma 2022-11-05 16:18:31 +05:30
parent 760c26e9c0
commit 324bfa9fde
2 changed files with 3 additions and 2 deletions

View File

@ -815,6 +815,7 @@ def add_second_row_in_scr(scr):
"item_name", "item_name",
"qty", "qty",
"uom", "uom",
"bom",
"warehouse", "warehouse",
"stock_uom", "stock_uom",
"subcontracting_order", "subcontracting_order",

View File

@ -404,8 +404,8 @@ class TestSubcontractingReceipt(FrappeTestCase):
"stock_value_difference", "stock_value_difference",
) )
# Service Cost(100 * 10) + Raw Materials Cost(50 * 10) + Additional Costs(100) = 1600 # Service Cost(100 * 10) + Raw Materials Cost(100 * 10) + Additional Costs(10 * 10) = 2100
self.assertEqual(stock_value_difference, 1600) self.assertEqual(stock_value_difference, 2100)
self.assertFalse(get_gl_entries("Subcontracting Receipt", scr.name)) self.assertFalse(get_gl_entries("Subcontracting Receipt", scr.name))
def test_subcontracting_receipt_gl_entry(self): def test_subcontracting_receipt_gl_entry(self):