GL Entries on sale of an asset (#11538)

This commit is contained in:
Nabin Hait
2017-11-13 15:06:35 +05:30
committed by GitHub
parent feeb47dbbe
commit 6605919ecd
4 changed files with 26 additions and 25 deletions

View File

@@ -177,7 +177,7 @@ def get_party_account(party_type, party, company):
frappe.throw(_("Please select a Company"))
if not party:
frappe.throw(_("Please select a Party"))
return
account = frappe.db.get_value("Party Account",
{"parenttype": party_type, "parent": party, "company": company}, "account")