Fixes in get_item_details and test cases

This commit is contained in:
Nabin Hait
2016-01-19 15:45:49 +05:30
parent 787e59c37e
commit 34d2822483
6 changed files with 49 additions and 24 deletions

View File

@@ -152,8 +152,8 @@ class AccountsController(TransactionBase):
args = parent_dict.copy()
args.update(item.as_dict())
args["doctype"] = parent_dict.get("doctype")
args["name"] = parent_dict.get("name")
args["doctype"] = self.doctype
args["name"] = self.name
if not args.get("transaction_date"):
args["transaction_date"] = args.get("posting_date")