mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-20 14:29:51 -04:00
Organisation billing details visible on organisation settings page
This commit is contained in:
@@ -46,6 +46,10 @@ class Organisation(JSONModel):
|
||||
'domains',
|
||||
'request_to_go_live_notes',
|
||||
'count_of_live_services',
|
||||
'billing_contact_email_addresses',
|
||||
'billing_contact_names',
|
||||
'billing_reference',
|
||||
'purchase_order_number',
|
||||
'notes'
|
||||
}
|
||||
|
||||
@@ -134,6 +138,19 @@ class Organisation(JSONModel):
|
||||
abort(404)
|
||||
return self.crown
|
||||
|
||||
@property
|
||||
def billing_details(self):
|
||||
billing_details = [
|
||||
self.billing_contact_email_addresses,
|
||||
self.billing_contact_names,
|
||||
self.billing_reference,
|
||||
self.purchase_order_number
|
||||
]
|
||||
if any(billing_details):
|
||||
return billing_details
|
||||
else:
|
||||
return None
|
||||
|
||||
@cached_property
|
||||
def services(self):
|
||||
return organisations_client.get_organisation_services(self.id)
|
||||
|
||||
Reference in New Issue
Block a user