Merge pull request #28308 from rohitwaghchaure/commision-rate-not-fetch-from-sales-person

fix: commission rate not fetch from sales person
This commit is contained in:
rohitwaghchaure
2021-11-11 19:11:31 +05:30
committed by GitHub
2 changed files with 89 additions and 235 deletions

View File

@@ -83,7 +83,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