Skip to content

Commit

Permalink
fix(test): `test_backdated_stock_reco_cancellation_future_negative_st…
Browse files Browse the repository at this point in the history
…ock`

(cherry picked from commit 11c8503)
  • Loading branch information
s-aga-r authored and mergify[bot] committed Apr 20, 2023
1 parent 7cc0129 commit 2ad157b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,9 @@ def test_backdated_stock_reco_cancellation_future_negative_stock(self):
# check if cancellation of stock reco is blocked
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")

def test_intermediate_sr_bin_update(self):
Expand Down

0 comments on commit 2ad157b

Please sign in to comment.