From e3af1eaf47810b86fa7b7ef4548cb5cd2c099a17 Mon Sep 17 00:00:00 2001 From: Akhilesh Darjee Date: Wed, 6 Nov 2013 16:59:38 +0530 Subject: [PATCH] [fix] fixed landed cost wizard for cancel_pr() --- stock/doctype/landed_cost_wizard/landed_cost_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/doctype/landed_cost_wizard/landed_cost_wizard.py b/stock/doctype/landed_cost_wizard/landed_cost_wizard.py index 89a3b81d57..071e1dda1f 100644 --- a/stock/doctype/landed_cost_wizard/landed_cost_wizard.py +++ b/stock/doctype/landed_cost_wizard/landed_cost_wizard.py @@ -84,7 +84,7 @@ class DocType: for pr in purchase_receipts: pr_bean = webnotes.bean("Purchase Receipt", pr) - pr_bean.run_method("update_ordered_qty", is_cancelled="Yes") + pr_bean.run_method("update_ordered_qty") webnotes.conn.sql("""delete from `tabStock Ledger Entry` where voucher_type='Purchase Receipt' and voucher_no=%s""", pr)