Add custom POS batch handler, to push transactions to CORE
not complete but a reasonable start
This commit is contained in:
parent
b98b80d3c0
commit
3add006b7e
2 changed files with 164 additions and 0 deletions
|
@ -46,6 +46,22 @@ class CoreHandler(GenericHandler):
|
|||
Handler for CORE-POS integration.
|
||||
"""
|
||||
|
||||
def get_model_office_op(self, **kwargs):
|
||||
from corepos.db.office_op import model
|
||||
return model
|
||||
|
||||
def get_model_office_trans(self, **kwargs):
|
||||
from corepos.db.office_trans import model
|
||||
return model
|
||||
|
||||
def make_session_office_op(self, **kwargs):
|
||||
from corepos.db.office_op import Session
|
||||
return Session(**kwargs)
|
||||
|
||||
def make_session_office_trans(self, **kwargs):
|
||||
from corepos.db.office_trans import Session
|
||||
return Session(**kwargs)
|
||||
|
||||
def get_office_url(
|
||||
self,
|
||||
require=False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue