pull item_tax from item master while selecting item in purchase cycle

This commit is contained in:
Nabin Hait 2013-01-21 18:54:01 +05:30
parent d707e2b6b6
commit d98b65386e

View File

@ -56,7 +56,7 @@ def get_item_details(args):
"conversion_factor": 1,
"warehouse": args.warehouse or item.default_warehouse,
"item_tax_rate": json.dumps(dict(([d.tax_type, d.tax_rate] for d in
item_wrapper.doclist.get({"parentfield": "ref_rate_details"})))),
item_wrapper.doclist.get({"parentfield": "item_tax"})))),
"batch_no": None,
"expense_head": item.purchase_account,
"cost_center": item.cost_center