Merge pull request #1019 from akhileshdarjee/1310

[fix] [minor] fixed landed cost wizard for cancel_pr()
This commit is contained in:
Anand Doshi 2013-11-06 04:00:58 -08:00
commit d173379ca7

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)