Add basic transaction importer for Square -> CORE-POS
This commit is contained in:
parent
810d4726c3
commit
4193503719
7 changed files with 233 additions and 2 deletions
|
@ -37,9 +37,15 @@ class RattailCOREPOSExtension(ConfigExtension):
|
|||
key = 'rattail-corepos'
|
||||
|
||||
def configure(self, config):
|
||||
from rattail_corepos.db import Session
|
||||
from corepos.db import Session as CoreSession
|
||||
from corepos.trans.db import Session as CoreTransSession
|
||||
|
||||
engines = get_engines(config, section='rattail_corepos.db')
|
||||
config.corepos_engines = engines
|
||||
config.corepos_engine = engines.get('default')
|
||||
Session.configure(bind=config.corepos_engine)
|
||||
CoreSession.configure(bind=config.corepos_engine)
|
||||
|
||||
engines = get_engines(config, section='rattail_coretrans.db')
|
||||
config.coretrans_engines = engines
|
||||
config.coretrans_engine = engines.get('default')
|
||||
CoreTransSession.configure(bind=config.coretrans_engine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue