diff --git a/tailbone_corepos/views/members.py b/tailbone_corepos/views/members.py index 879873e..8678619 100644 --- a/tailbone_corepos/views/members.py +++ b/tailbone_corepos/views/members.py @@ -138,6 +138,13 @@ class MemberEquityPaymentViewSupplement(ViewSupplement): model = self.model return [model.CoreMemberEquityPayment] + def get_xref_buttons(self, payment): + if payment.corepos_transaction_number and payment.corepos_card_number: + url = core_office_url(self.rattail_config) + if url: + url = f'{url}/reports/Equity/EquityReport.php?memNum={payment.corepos_card_number}' + return [{'url': url, 'text': "View in CORE Office"}] + def includeme(config): MembershipTypeViewSupplement.defaults(config)