Skip to content

Commit

Permalink
[IMP] Add possibility to add additional info in label
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Apr 3, 2024
1 parent 9e47aff commit 7a301e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roulier/carriers/dpd_fr_soap/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ def _to_address(self):
schema = super(DpdApi, self)._to_address()
# , 'description': """First name""",
schema["firstName"] = {"default": "", "coerce": "accents"}
schema["name3"] = {"default": ""}
schema["name4"] = {"default": ""}
schema["door1"] = {"default": ""} # 'description': """Door code 1"""
schema["door2"] = {"default": ""} # 'description': """Door code 2"""}
schema["intercom"] = {"default": ""} # 'description': """Intercom"""}
Expand Down
2 changes: 2 additions & 0 deletions roulier/carriers/dpd_fr_soap/templates/dpd_addressInfo.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<car:contact>{{ address.companyName }}</car:contact>
<car:name2>{{ address.firstName }}</car:name2>
<car:name3>{{ address.name3 }}</car:name3>
<car:name4>{{ address.name4 }}</car:name4>
<car:digicode1>{{ address.digicode1 }}</car:digicode1>
<car:digicode2>{{ address.digicode2 }}</car:digicode2>
<car:intercomid>{{ address.intercom }}</car:intercomid>
Expand Down

0 comments on commit 7a301e1

Please sign in to comment.