Add enum for CORE (Office) DB types

for use with typer commands
This commit is contained in:
Lance Edgar 2024-05-16 19:13:35 -05:00
parent 7cd89029ac
commit df6f0d9793

View file

@ -2,7 +2,7 @@
################################################################################
#
# pyCOREPOS -- Python Interface to CORE POS
# Copyright © 2018-2019 Lance Edgar
# Copyright © 2018-2024 Lance Edgar
#
# This file is part of pyCOREPOS.
#
@ -24,12 +24,14 @@
CORE POS enumeration constants
"""
from __future__ import unicode_literals, absolute_import
try:
from collections import OrderedDict
except ImportError:
from ordereddict import OrderedDict
from enum import Enum
class CoreDbType(str, Enum):
office_op = 'office_op'
office_trans = 'office_trans'
office_arch = 'office_arch'
BATCH_DISCOUNT_TYPE_PRICE_CHANGE = 0