commit | 4b72d0579329a4b7064860ff4ad24a5e34621075 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Mon Oct 12 16:15:52 2015 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Mon Oct 12 16:15:52 2015 +0530 |
tree | 3519bd4a13335a029388520359b6d90af91abaef | |
parent | 3b6a8af0da04487c5ad83adef65f5fc9419875f5 [diff] |
[fix] get allocated_percentage from party's sales team
diff --git a/erpnext/accounts/party.py b/erpnext/accounts/party.py index 1eaf8a7..381e4d4 100644 --- a/erpnext/accounts/party.py +++ b/erpnext/accounts/party.py
@@ -51,7 +51,8 @@ # sales team if party_type=="Customer": out["sales_team"] = [{ - "sales_person": d.sales_person + "sales_person": d.sales_person, + "allocated_percentage": d.allocated_percentage or None } for d in party.get("sales_team")] return out