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
|
|
||||||
|
|
||||||
try:
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError:
|
from enum import Enum
|
||||||
from ordereddict import OrderedDict
|
|
||||||
|
|
||||||
|
class CoreDbType(str, Enum):
|
||||||
|
office_op = 'office_op'
|
||||||
|
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