Add enum for CORE (Office) DB types
for use with typer commands
This commit is contained in:
parent
7cd89029ac
commit
df6f0d9793
|
@ -2,7 +2,7 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# pyCOREPOS -- Python Interface to CORE POS
|
# pyCOREPOS -- Python Interface to CORE POS
|
||||||
# Copyright © 2018-2019 Lance Edgar
|
# Copyright © 2018-2024 Lance Edgar
|
||||||
#
|
#
|
||||||
# This file is part of pyCOREPOS.
|
# This file is part of pyCOREPOS.
|
||||||
#
|
#
|
||||||
|
@ -24,12 +24,14 @@
|
||||||
CORE POS enumeration constants
|
CORE POS enumeration constants
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import unicode_literals, absolute_import
|
from collections import OrderedDict
|
||||||
|
from enum import Enum
|
||||||
|
|
||||||
try:
|
|
||||||
from collections import OrderedDict
|
class CoreDbType(str, Enum):
|
||||||
except ImportError:
|
office_op = 'office_op'
|
||||||
from ordereddict import OrderedDict
|
office_trans = 'office_trans'
|
||||||
|
office_arch = 'office_arch'
|
||||||
|
|
||||||
|
|
||||||
BATCH_DISCOUNT_TYPE_PRICE_CHANGE = 0
|
BATCH_DISCOUNT_TYPE_PRICE_CHANGE = 0
|
||||||
|
|
Loading…
Reference in a new issue