Add links to CORE Office for each customer account associated with a person
for use in "view profile" page, to open account in CORE Office
This commit is contained in:
parent
79c6829f3c
commit
099783ce62
2 changed files with 17 additions and 2 deletions
|
@ -26,6 +26,8 @@ CORE POS customer views
|
|||
|
||||
from corepos.db.office_op import model as corepos
|
||||
|
||||
from rattail_corepos.config import core_office_customer_account_url
|
||||
|
||||
from .master import CoreOfficeMasterView
|
||||
|
||||
|
||||
|
@ -86,8 +88,9 @@ class CustomerView(CoreOfficeMasterView):
|
|||
f.remove_field('last_change')
|
||||
|
||||
def core_office_object_url(self, office_url, customer):
|
||||
return '{}/mem/MemberEditor.php?memNum={}'.format(
|
||||
office_url, customer.card_number)
|
||||
return core_office_customer_account_url(self.rattail_config,
|
||||
customer.card_number,
|
||||
office_url=office_url)
|
||||
|
||||
|
||||
def includeme(config):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue