[fix] fixed landed cost wizard for cancel_pr()

This commit is contained in:
Akhilesh Darjee 2013-11-06 16:59:38 +05:30
parent 04f65a0c56
commit e3af1eaf47

View File

@ -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)