Upgraded sqlservice to 2.0.x
This commit is contained in:
parent
229ea6fb5b
commit
6c1eb903f7
8 changed files with 95 additions and 91 deletions
|
|
@ -224,14 +224,6 @@ class Article(RawBaseModel):
|
|||
except TypeError:
|
||||
logger.debug("NoneType error, %s" % self.ArtNr)
|
||||
|
||||
# @classmethod
|
||||
# def _base_filters(self, obj):
|
||||
# return RawBaseModel._base_filters(
|
||||
# obj,
|
||||
# and_(obj.ItemStatusCode == 0)
|
||||
# )
|
||||
|
||||
|
||||
class ContactInformationType(RawBaseModel):
|
||||
__tablename__ = 'X4'
|
||||
__to_dict_only__ = ('ComKod', 'ComBeskr')
|
||||
|
|
@ -572,3 +564,24 @@ class ItemReplenishmentLevels(RawBaseModel):
|
|||
# "Table 'JAPP_EWMS_Item_Replenishment_Levels' does not have the identity property.
|
||||
# Cannot perform SET operation."
|
||||
ForetagKod = Column(Integer, primary_key=True, autoincrement=False)
|
||||
|
||||
|
||||
class SupplierInvoicePayment(RawBaseModel):
|
||||
__tablename__ = 'lrfb'
|
||||
# __column_map__ = {'AltEnhetKod': 'UnitCode', 'AltEnhetBeskr': 'UnitName',
|
||||
# 'AltEnhetOmrFaktor': 'DefaultUnitConv'}
|
||||
# __to_dict_only__ = ('AltEnhetBeskr', 'AltEnhetOmrFaktor')
|
||||
|
||||
|
||||
class SupplierInvoiceJournal(RawBaseModel):
|
||||
__tablename__ = 'jfbs'
|
||||
# __column_map__ = {'ArtNr': 'ArticleNumber',
|
||||
# 'AltEnhetKod': 'UnitCode', 'AltEnhetOmrFaktor': 'UnitConv',
|
||||
# 'AltEnhetOrderStd': 'DefaultSalesUnit'}
|
||||
# __to_dict_only__ = ('AltEnhetKod', 'AltEnhetOmrFaktor',
|
||||
# 'AltEnhetOrderStd', 'ArticleAlternativeUnit')
|
||||
|
||||
# ArtNr = Column(String, ForeignKey('ar.ArtNr'), primary_key=True)
|
||||
|
||||
# AltEnhetKod = Column(String, ForeignKey('xae.AltEnhetKod'), primary_key=True)
|
||||
# ArticleAlternativeUnit = relationship(ArticleAlternativeUnit, lazy='joined')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue