Merge branch '1310' of github.com:webnotes/erpnext

This commit is contained in:
Anand Doshi
2013-11-07 20:49:13 +05:30
3 changed files with 156 additions and 148 deletions

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)