fix: commision rate not fetch from sales person

This commit is contained in:
Rohit Waghchaure
2021-11-10 00:00:38 +05:30
parent fb9e72cc8a
commit 4d4bfa2333
2 changed files with 89 additions and 235 deletions

View File

@@ -85,7 +85,8 @@ def _get_party_details(party=None, account=None, party_type="Customer", company=
if party_type=="Customer":
party_details["sales_team"] = [{
"sales_person": d.sales_person,
"allocated_percentage": d.allocated_percentage or None
"allocated_percentage": d.allocated_percentage or None,
"commission_rate": d.commission_rate
} for d in party.get("sales_team")]
# supplier tax withholding category