worker-automate-hub 0.4.385__tar.gz → 0.4.387__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/PKG-INFO +1 -1
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/pyproject.toml +1 -1
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +22 -7
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/util.py +1 -2
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/README.md +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/jobs/transferencias.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/worker.py +0 -0
@@ -594,10 +594,8 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
594
594
|
valores_informado_text_transform = valores_informado_text_transform.replace(",",".")
|
595
595
|
|
596
596
|
console.print(f"Pagamento informado valor:{valores_informado_text}... \n")
|
597
|
-
vencimento = False
|
598
597
|
if float(valores_informado_text_transform) <= 0.0:
|
599
598
|
#if '0,00' in valores_informado_text and len(valores_informado_text) <= 4:
|
600
|
-
vencimento = True
|
601
599
|
console.print(f"Pagamento não informado, registrando... \n")
|
602
600
|
dt_emissao = nota.get("dataEmissao")
|
603
601
|
dt_emissao = datetime.strptime(dt_emissao, "%d/%m/%Y")
|
@@ -614,6 +612,12 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
614
612
|
class_name="TDBIEditDate"
|
615
613
|
)
|
616
614
|
vencimento.set_edit_text(recebimento_fisico)
|
615
|
+
elif "sim dis" in nota.get("nomeFornecedor").lower():
|
616
|
+
vencimento = panel_TabParcelamento.child_window(
|
617
|
+
class_name="TDBIEditDate"
|
618
|
+
)
|
619
|
+
data_vencimento = nota.get("dataVencimento")
|
620
|
+
vencimento.set_edit_text(data_vencimento)
|
617
621
|
else:
|
618
622
|
#Senão adicionar 1 dia a emissao
|
619
623
|
dt_emissao = nota.get("dataEmissao")
|
@@ -651,8 +655,21 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
651
655
|
status=RpaHistoricoStatusEnum.Falha,
|
652
656
|
)
|
653
657
|
console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
|
654
|
-
|
655
|
-
data_vencimento =
|
658
|
+
else:
|
659
|
+
data_vencimento = ""
|
660
|
+
if "vibra" in nota.get("nomeFornecedor").lower() or "ipiranga" in nota.get("nomeFornecedor").lower() or "raizen" in nota.get("nomeFornecedor").lower() or "charrua" in nota.get("nomeFornecedor").lower():
|
661
|
+
if recebimento_fisico > dt_emissao + timedelta(days=2):
|
662
|
+
recebimento_fisico = recebimento_fisico.strftime("%d/%m/%Y")
|
663
|
+
console.print(f"Informando a data de vencimento, {recebimento_fisico}... \n")
|
664
|
+
data_vencimento = recebimento_fisico
|
665
|
+
else:
|
666
|
+
dt_emissao = nota.get("dataEmissao")
|
667
|
+
dt_emissao = datetime.strptime(dt_emissao, "%d/%m/%Y")
|
668
|
+
dt_emissao = dt_emissao + timedelta(days=1)
|
669
|
+
dt_emissao = dt_emissao.strftime("%d/%m/%Y")
|
670
|
+
data_vencimento = dt_emissao
|
671
|
+
else:
|
672
|
+
data_vencimento = nota.get("dataVencimento")
|
656
673
|
|
657
674
|
await worker_sleep(2)
|
658
675
|
console.print(f"Removendo registro de parcelamento do pagamento... \n")
|
@@ -752,9 +769,7 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
752
769
|
retorno=f"Erro ao adicionar o pagamento, valor informado {valores_informado_text}.",
|
753
770
|
status=RpaHistoricoStatusEnum.Falha,
|
754
771
|
)
|
755
|
-
console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
|
756
|
-
else:
|
757
|
-
console.print(f"Pagamento ja adicionado... \n")
|
772
|
+
console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
|
758
773
|
except Exception as e:
|
759
774
|
return RpaRetornoProcessoDTO(
|
760
775
|
sucesso=False,
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/util.py
RENAMED
@@ -884,7 +884,6 @@ def select_model_capa() -> RpaRetornoProcessoDTO:
|
|
884
884
|
status=RpaHistoricoStatusEnum.Falha,
|
885
885
|
)
|
886
886
|
pyautogui.click(field)
|
887
|
-
worker_sleep(1)
|
888
887
|
pyautogui.write("Nfe")
|
889
888
|
pyautogui.hotkey("enter")
|
890
889
|
# Procura o tipo de documento "NFe - NOTA FISCAL ELETRONICA PROPRIA - DANFE SERIE 077"
|
@@ -2202,7 +2201,7 @@ async def select_documento_type(document_type: str) -> RpaRetornoProcessoDTO:
|
|
2202
2201
|
console.print(
|
2203
2202
|
"Clique select box, Tipo de documento realizado com sucesso, selecionando o tipo de documento...\n"
|
2204
2203
|
)
|
2205
|
-
await worker_sleep(
|
2204
|
+
await worker_sleep(4)
|
2206
2205
|
set_combobox("||List", document_type)
|
2207
2206
|
console.print(
|
2208
2207
|
f"Tipo de documento '{document_type}', selecionado com sucesso...\n"
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/config/settings.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/models/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/tasks/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.4.385 → worker_automate_hub-0.4.387}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
File without changes
|
File without changes
|