Don't repost future sle while cancelling PR via landed cost voucher
diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py
index 2b1ac94..1682686 100644
--- a/erpnext/stock/doctype/bin/bin.py
+++ b/erpnext/stock/doctype/bin/bin.py
@@ -33,6 +33,8 @@
args["posting_date"] = nowdate()
# update valuation and qty after transaction for post dated entry
+ if args.get("is_cancelled") == "Yes" and via_landed_cost_voucher:
+ return
update_entries_after({
"item_code": self.item_code,
"warehouse": self.warehouse,