Add employee importer for CORE -> Rattail, and CORE cashier auth handler

This commit is contained in:
Lance Edgar 2023-10-01 19:40:46 -05:00
parent fd5d3142ed
commit 117442f8db
9 changed files with 255 additions and 1 deletions

View file

@ -92,6 +92,21 @@ class CoreHandler(GenericHandler):
# TODO: deprecate / remove this
get_office_customer_account_url = get_office_member_url
def get_office_employee_url(
self,
employee_number,
office_url=None,
require=False,
**kwargs):
"""
Returns the CORE Office URL for the employee with the given
number.
"""
if not office_url:
office_url = self.get_office_url(require=require)
if office_url:
return f'{office_url}/admin/Cashiers/CashierEditor.php?emp_no={employee_number}'
def get_office_product_url(
self,
upc,