test: fix flaky bin value test

(cherry picked from commit 5d85b35f41)
This commit is contained in:
Ankush Menat
2022-03-02 12:29:03 +05:30
committed by Ankush Menat
parent ab69cb7b76
commit cdafed1092

View File

@@ -162,6 +162,15 @@ class TestPurchaseReceipt(ERPNextTestCase):
qty=abs(existing_bin_qty)
)
existing_bin_qty, existing_bin_stock_value = frappe.db.get_value(
"Bin",
{
"item_code": "_Test Item",
"warehouse": "_Test Warehouse - _TC"
},
["actual_qty", "stock_value"]
)
pr = make_purchase_receipt()
stock_value_difference = frappe.db.get_value(