[fix] get allocated_percentage from party's sales team
This commit is contained in:
parent
3b6a8af0da
commit
4b72d05793
@ -51,7 +51,8 @@ def _get_party_details(party=None, account=None, party_type="Customer", company=
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user