Add employee importer for CORE -> Rattail, and CORE cashier auth handler
This commit is contained in:
parent
fd5d3142ed
commit
117442f8db
9 changed files with 255 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue