mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 03:35:43 +00:00
fix(test): test_backdated_stock_reco_cancellation_future_negative_stock
(cherry picked from commit 11c8503180)
This commit is contained in:
@@ -530,7 +530,9 @@ class TestStockReconciliation(FrappeTestCase, StockTestMixin):
|
|||||||
# check if cancellation of stock reco is blocked
|
# check if cancellation of stock reco is blocked
|
||||||
self.assertRaises(NegativeStockError, sr.cancel)
|
self.assertRaises(NegativeStockError, sr.cancel)
|
||||||
|
|
||||||
repost_exists = bool(frappe.db.exists("Repost Item Valuation", {"voucher_no": sr.name}))
|
repost_exists = bool(
|
||||||
|
frappe.db.exists("Repost Item Valuation", {"voucher_no": sr.name, "status": "Queued"})
|
||||||
|
)
|
||||||
self.assertFalse(repost_exists, msg="Negative stock validation not working on reco cancellation")
|
self.assertFalse(repost_exists, msg="Negative stock validation not working on reco cancellation")
|
||||||
|
|
||||||
def test_intermediate_sr_bin_update(self):
|
def test_intermediate_sr_bin_update(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user