From e3e7309cbf4ce28141407bf88faea2a3428ea29d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 18 May 2015 17:12:57 +0530 Subject: [PATCH] landed cost voucher fix --- erpnext/stock/doctype/bin/bin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/stock/doctype/bin/bin.py b/erpnext/stock/doctype/bin/bin.py index 242d4faad3e..45bfece116b 100644 --- a/erpnext/stock/doctype/bin/bin.py +++ b/erpnext/stock/doctype/bin/bin.py @@ -33,6 +33,8 @@ class Bin(Document): 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,