Skip to content

Commit

Permalink
[REF] cooperator: Rename method
Browse files Browse the repository at this point in the history
Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Apr 29, 2024
1 parent 39bdd4d commit 5205fca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions cooperator/models/subscription_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def _compute_subscription_amount(self):

_order = "id desc"

def get_person_info(self, partner):
def set_person_info(self, partner):
self.firstname = partner.firstname
self.name = partner.name
self.lastname = partner.lastname
Expand Down Expand Up @@ -504,10 +504,10 @@ def onchange_partner(self):
self.company_email = partner.email
self.company_register_number = partner.company_register_number
representative = partner.get_representative()
self.get_person_info(representative)
self.set_person_info(representative)
self.contact_person_function = representative.function
else:
self.get_person_info(partner)
self.set_person_info(partner)

# fixme: this is very specific and should not be here.
# declare this function in order to be overriden
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def validate_subscription_request(self):
partner.update_belgian_national_number(self.national_number)
return invoice

def get_person_info(self, partner):
super().get_person_info(partner)
def set_person_info(self, partner):
super().set_person_info(partner)
self.national_number = self.get_national_number_from_partner(partner)
return True

0 comments on commit 5205fca

Please sign in to comment.