ipiranga-inovai-project-lib 3.5__py3-none-any.whl → 3.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- inovai/entities.py +26 -0
- {ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/METADATA +1 -1
- {ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/RECORD +6 -6
- {ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/LICENSE +0 -0
- {ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/WHEEL +0 -0
- {ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/top_level.txt +0 -0
inovai/entities.py
CHANGED
|
@@ -7,6 +7,7 @@ from sqlalchemy.orm import relationship
|
|
|
7
7
|
Base = declarative_base()
|
|
8
8
|
DATETIME_NOW = 'NOW()'
|
|
9
9
|
INTEGRATION_BATCH_KEY = 'fiscal.lote_integracao.cd_integr'
|
|
10
|
+
BATCH_KEY = 'fiscal.lote.cd_seq_lote'
|
|
10
11
|
OBI_KIT_KEY = 'fiscal.kit_obi.no_seq_kit'
|
|
11
12
|
|
|
12
13
|
|
|
@@ -206,6 +207,8 @@ class Batch(Base):
|
|
|
206
207
|
last_date = Column('dt_fim', Date)
|
|
207
208
|
status = Column('ds_safx_taxone', String(), nullable=False)
|
|
208
209
|
|
|
210
|
+
batch_processing = relationship('BatchProcessing', back_populates='batch')
|
|
211
|
+
|
|
209
212
|
def __init__(self, batch_id, employer_number, first_date, last_date, status):
|
|
210
213
|
super().__init__()
|
|
211
214
|
self.batch_id = batch_id
|
|
@@ -334,6 +337,29 @@ class IntegrationProcessing(Base):
|
|
|
334
337
|
self.created_at = datetime.now()
|
|
335
338
|
|
|
336
339
|
|
|
340
|
+
class BatchProcessing(Base):
|
|
341
|
+
__tablename__ = 'processamento_lote'
|
|
342
|
+
__table_args__ = {'schema': 'fiscal'}
|
|
343
|
+
|
|
344
|
+
batch_id = Column('no_seq_lote', Integer, ForeignKey(BATCH_KEY),
|
|
345
|
+
primary_key=True, nullable=False)
|
|
346
|
+
param_processing_kit_id = Column('no_seq_proc', Numeric(precision=8, scale=0),
|
|
347
|
+
ForeignKey('fiscal.param_processamento_kit.no_seq_proc'),
|
|
348
|
+
primary_key=True, nullable=False)
|
|
349
|
+
created_at = Column('dt_incl', DateTime, nullable=False)
|
|
350
|
+
|
|
351
|
+
batch = relationship('Batch', back_populates='batch_processing')
|
|
352
|
+
param_processing_kit = relationship(ParamProcessingKit,
|
|
353
|
+
primaryjoin="BatchProcessing.param_processing_kit_id == "
|
|
354
|
+
"ParamProcessingKit.param_processing_kit_id")
|
|
355
|
+
|
|
356
|
+
def __init__(self, batch_id, param_processing_kit_id):
|
|
357
|
+
super().__init__()
|
|
358
|
+
self.param_processing_kit_id = param_processing_kit_id
|
|
359
|
+
self.batch_id = batch_id
|
|
360
|
+
self.created_at = datetime.now()
|
|
361
|
+
|
|
362
|
+
|
|
337
363
|
# @deprecated('Tabela "lote_documento_integracao" foi substituida pela tabela "lote_integracao_obi"')
|
|
338
364
|
class IntegrationDocumentBatch(Base):
|
|
339
365
|
__tablename__ = 'lote_documento_integracao'
|
{ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.6
|
|
4
4
|
Summary: Projeto criado para importação genérica de entidades
|
|
5
5
|
Home-page: https://gitlab.ipirangacloud.com/clayton.monteiro.ext/ipiranga-inovai-project-lib
|
|
6
6
|
Author: Clayton Sandes Monteiro
|
{ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
inovai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
inovai/dtos.py,sha256=qaWZB7n5SHcC58RP351IQ1HLjv7fx3VAdILj-GugVWs,1587
|
|
3
|
-
inovai/entities.py,sha256=
|
|
3
|
+
inovai/entities.py,sha256=sf0bPQ4pxURWtgcHkTDK4_zVgYEPYGKZva4z2u4vuZg,20766
|
|
4
4
|
inovai/enums.py,sha256=QvkbjJKKTkmgeNwwR33EfZDD6Bvr0fDqYUqdO8j5LRU,2326
|
|
5
5
|
inovai/models/Endereco.py,sha256=Vft20vMwYwTXtEuh5NH7O5FxXVahnLmgaXMDOVdBxY4,3519
|
|
6
6
|
inovai/models/NFe.py,sha256=3PiMvK6AODaagZU7KEpnjYfulz8PvcQYGChIa-QCvg0,13023
|
|
@@ -34,8 +34,8 @@ inovai/models/NFeVolume.py,sha256=_cayb-rrz1mSxQ3wFFnB4KCi524jtAsdTTcS4WQTBOc,19
|
|
|
34
34
|
inovai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
inovai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
inovai/utils/util.py,sha256=tEFFoYhtyZk2pxor2vb23NWr3otPzPXTiTIf-VrGik4,366
|
|
37
|
-
ipiranga_inovai_project_lib-3.
|
|
38
|
-
ipiranga_inovai_project_lib-3.
|
|
39
|
-
ipiranga_inovai_project_lib-3.
|
|
40
|
-
ipiranga_inovai_project_lib-3.
|
|
41
|
-
ipiranga_inovai_project_lib-3.
|
|
37
|
+
ipiranga_inovai_project_lib-3.6.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
|
|
38
|
+
ipiranga_inovai_project_lib-3.6.dist-info/METADATA,sha256=IttXvQcmFPwrtVpmEYXlkKbY7ynW8SFHtJNI32AsY4w,518
|
|
39
|
+
ipiranga_inovai_project_lib-3.6.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
40
|
+
ipiranga_inovai_project_lib-3.6.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
|
|
41
|
+
ipiranga_inovai_project_lib-3.6.dist-info/RECORD,,
|
{ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/LICENSE
RENAMED
|
File without changes
|
{ipiranga_inovai_project_lib-3.5.dist-info → ipiranga_inovai_project_lib-3.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|