[fixes][patch] update valuation rate in purchase cycle and repost patch

This commit is contained in:
Nabin Hait 2013-05-20 15:30:02 +05:30
parent 9053cbc9f8
commit f8525fea06

View File

@ -20,8 +20,7 @@ def execute():
from stock.stock_ledger import update_entries_after
item_warehouse = []
# update valuation_rate in transaction
doctypes = {"Purchase Receipt": "purchase_receipt_details",
"Purchase Invoice": "entries"}
doctypes = {"Purchase Receipt": "purchase_receipt_details", "Purchase Invoice": "entries"}
for dt in doctypes:
for d in webnotes.conn.sql("""select name from `tab%s`