ipiranga-inovai-project-lib 4.7__py3-none-any.whl → 4.9__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 +31 -6
- {ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/METADATA +1 -1
- {ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/RECORD +6 -6
- {ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/LICENSE +0 -0
- {ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/WHEEL +0 -0
- {ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/top_level.txt +0 -0
inovai/entities.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from datetime import datetime
|
|
1
|
+
from datetime import datetime, date
|
|
2
2
|
from sqlalchemy import Column, String, Date, DateTime, ForeignKey, Integer, Text, Numeric, Boolean, JSON
|
|
3
3
|
from sqlalchemy.ext.declarative import declarative_base
|
|
4
4
|
from sqlalchemy.orm import relationship
|
|
@@ -76,21 +76,20 @@ class IntegrationObiBatch(Base):
|
|
|
76
76
|
__tablename__ = 'lote_integracao_obi'
|
|
77
77
|
__table_args__ = {'schema': 'fiscal'}
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
batch_id = Column('no_seq_lote', String(36), ForeignKey(INTEGRATION_BATCH_KEY),
|
|
80
80
|
primary_key=True, nullable=False)
|
|
81
81
|
integration_obi_id = Column('no_seq_integr_obi', Integer, ForeignKey('fiscal.integracao_obi'
|
|
82
82
|
'.no_seq_integr_obi'),
|
|
83
83
|
primary_key=True, nullable=False)
|
|
84
|
-
param_type_id = Column('cd_tipo_param_obi', Integer, primary_key=True, nullable=False)
|
|
85
84
|
created_at = Column('dt_incl', DateTime, nullable=False)
|
|
86
85
|
|
|
86
|
+
batch = relationship('Batch', back_populates='integration_obi_batch')
|
|
87
87
|
integration_obi = relationship('ObiIntegration', back_populates='integration_obi_batch')
|
|
88
88
|
|
|
89
|
-
def __init__(self,
|
|
89
|
+
def __init__(self, batch_id, integration_obi_id):
|
|
90
90
|
super().__init__()
|
|
91
|
+
self.batch_id = batch_id
|
|
91
92
|
self.integration_obi_id = integration_obi_id
|
|
92
|
-
self.integration_batch_id = integration_batch_id
|
|
93
|
-
self.param_type_id = param_type_id
|
|
94
93
|
self.created_at = datetime.now()
|
|
95
94
|
|
|
96
95
|
|
|
@@ -209,6 +208,8 @@ class Batch(Base):
|
|
|
209
208
|
status = Column('ds_safx_taxone', String(), nullable=False)
|
|
210
209
|
|
|
211
210
|
batch_processing = relationship('BatchProcessing', back_populates='batch')
|
|
211
|
+
integration_obi_batch = relationship('IntegrationObiBatch', back_populates='batch')
|
|
212
|
+
|
|
212
213
|
|
|
213
214
|
def __init__(self, batch_id, employer_number, first_date, last_date, status):
|
|
214
215
|
super().__init__()
|
|
@@ -432,3 +433,27 @@ class KitIntegrationDocumentStatus(Base):
|
|
|
432
433
|
|
|
433
434
|
def __str__(self):
|
|
434
435
|
return f'document_id: {self.document_id}, kit_id: {self.kit_id}, integration_status: {self.integration_status}'
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
class NatureOperation(Base):
|
|
439
|
+
__tablename__ = 'natureza_operacao'
|
|
440
|
+
__table_args__ = {'schema': 'fiscal'}
|
|
441
|
+
|
|
442
|
+
cd_natop_taxone = Column('cd_natop_taxone', String(3), primary_key=True, nullable=False)
|
|
443
|
+
cd_natop_orig = Column('cd_natop_orig', Numeric(precision=8, scale=0), nullable=False)
|
|
444
|
+
description = Column('ds_natop', String(200), nullable=False)
|
|
445
|
+
origin = Column('nm_sist_orig', String(100), nullable=False)
|
|
446
|
+
created_at = Column('dt_incl', Date, nullable=False)
|
|
447
|
+
|
|
448
|
+
def __init__(self, cd_natop_taxone, cd_natop_orig, description, origin):
|
|
449
|
+
super().__init__()
|
|
450
|
+
self.cd_natop_taxone = cd_natop_taxone
|
|
451
|
+
self.cd_natop_orig = cd_natop_orig
|
|
452
|
+
self.description = description
|
|
453
|
+
self.origin = origin
|
|
454
|
+
self.created_at = date.today()
|
|
455
|
+
|
|
456
|
+
def __str__(self):
|
|
457
|
+
return (f'cd_natop_taxone: {self.cd_natop_taxone}, cd_natop_orig: {self.cd_natop_orig}, '
|
|
458
|
+
f'description: {self.description}, origin: {self.origin}')
|
|
459
|
+
|
{ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ipiranga-inovai-project-lib
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.9
|
|
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-4.7.dist-info → ipiranga_inovai_project_lib-4.9.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=p2pJiCT_SaIpGgILZ4_wB5vt_oqSArnD3Eri7t0sdXw,21816
|
|
4
4
|
inovai/enums.py,sha256=hj6KZRzV_LZIEnpycCl1yrP2aQdm75pm8WN8CM3TBfI,2367
|
|
5
5
|
inovai/log.py,sha256=zQsNWzOdPMkEC6-LPfHtu7yvGAoDwADaQh0lR1hutWc,5202
|
|
6
6
|
inovai/models/Endereco.py,sha256=Vft20vMwYwTXtEuh5NH7O5FxXVahnLmgaXMDOVdBxY4,3519
|
|
@@ -35,8 +35,8 @@ inovai/models/NFeVolume.py,sha256=_cayb-rrz1mSxQ3wFFnB4KCi524jtAsdTTcS4WQTBOc,19
|
|
|
35
35
|
inovai/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
36
|
inovai/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
37
|
inovai/utils/util.py,sha256=CsxaZmeKWG8A4w_1XzVm_F9hdWkDVgmHDYL2XF8v5dQ,906
|
|
38
|
-
ipiranga_inovai_project_lib-4.
|
|
39
|
-
ipiranga_inovai_project_lib-4.
|
|
40
|
-
ipiranga_inovai_project_lib-4.
|
|
41
|
-
ipiranga_inovai_project_lib-4.
|
|
42
|
-
ipiranga_inovai_project_lib-4.
|
|
38
|
+
ipiranga_inovai_project_lib-4.9.dist-info/LICENSE,sha256=UJ3ql8eZec9Y1kER7QSHAuvdgFPuL47asePHYmdzG_o,198
|
|
39
|
+
ipiranga_inovai_project_lib-4.9.dist-info/METADATA,sha256=hiPiiIUw5Of-QLXvcMb7y5kaSBC1abf7yhkDwxJbtnI,518
|
|
40
|
+
ipiranga_inovai_project_lib-4.9.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
41
|
+
ipiranga_inovai_project_lib-4.9.dist-info/top_level.txt,sha256=BD-APH5oIEb_KDXwrfnZiu9QDsD9ttTEkYc32r9thqg,7
|
|
42
|
+
ipiranga_inovai_project_lib-4.9.dist-info/RECORD,,
|
{ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/LICENSE
RENAMED
|
File without changes
|
{ipiranga_inovai_project_lib-4.7.dist-info → ipiranga_inovai_project_lib-4.9.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|