diff --git a/erpnext/stock/report/stock_ageing/test_stock_ageing.py b/erpnext/stock/report/stock_ageing/test_stock_ageing.py index d622a298ca9..bd46d3b9557 100644 --- a/erpnext/stock/report/stock_ageing/test_stock_ageing.py +++ b/erpnext/stock/report/stock_ageing/test_stock_ageing.py @@ -18,6 +18,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=30, qty_after_transaction=30, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Entry", @@ -29,6 +30,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=20, qty_after_transaction=50, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-02", voucher_type="Stock Entry", @@ -40,6 +42,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-10), qty_after_transaction=40, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -65,6 +68,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-30), qty_after_transaction=(-30), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Entry", @@ -76,6 +80,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=20, qty_after_transaction=(-10), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-02", voucher_type="Stock Entry", @@ -87,6 +92,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=20, qty_after_transaction=10, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -98,6 +104,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=10, qty_after_transaction=20, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -126,6 +133,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=30, qty_after_transaction=30, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Entry", @@ -137,6 +145,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=0, qty_after_transaction=50, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-02", voucher_type="Stock Reconciliation", @@ -148,6 +157,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-10), qty_after_transaction=40, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -178,7 +188,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=0, qty_after_transaction=1000, - stock_value_difference=2000, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Reconciliation", @@ -190,7 +200,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=0, qty_after_transaction=400, - stock_value_difference=(-1200), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-02", voucher_type="Stock Reconciliation", @@ -202,7 +212,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-10), qty_after_transaction=390, - stock_value_difference=(-20), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -237,6 +247,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=0, qty_after_transaction=1000, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Reconciliation", @@ -248,6 +259,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=0, qty_after_transaction=400, + stock_value_difference=0, warehouse="WH 2", posting_date="2021-12-02", voucher_type="Stock Reconciliation", @@ -259,6 +271,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-10), qty_after_transaction=990, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -305,6 +318,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=500, qty_after_transaction=500, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -316,6 +330,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=450, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -327,6 +342,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=400, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -338,6 +354,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=100, qty_after_transaction=500, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -374,6 +391,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=500, qty_after_transaction=500, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -385,6 +403,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-100), qty_after_transaction=400, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -396,6 +415,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=50, qty_after_transaction=450, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -430,6 +450,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=20, qty_after_transaction=20, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -441,6 +462,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=(-30), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -452,6 +474,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=(-80), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -463,6 +486,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=50, qty_after_transaction=(-30), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -500,6 +524,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=500, qty_after_transaction=500, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -511,6 +536,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=450, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -522,6 +548,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=100, qty_after_transaction=550, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -557,6 +584,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=20, qty_after_transaction=20, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-03", voucher_type="Stock Entry", @@ -568,6 +596,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=(-30), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -579,6 +608,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=50, qty_after_transaction=20, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -590,6 +620,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=50, qty_after_transaction=70, + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-04", voucher_type="Stock Entry", @@ -627,6 +658,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=(-50), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Entry", @@ -638,6 +670,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=(-50), qty_after_transaction=(-100), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Entry", @@ -649,6 +682,7 @@ class TestStockAgeing(IntegrationTestCase): name="Flask Item", actual_qty=30, qty_after_transaction=(-70), + stock_value_difference=0, warehouse="WH 1", posting_date="2021-12-01", voucher_type="Stock Entry",