worker-automate-hub 0.5.315__tar.gz → 0.5.316__tar.gz
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.
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/PKG-INFO +1 -1
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/pyproject.toml +1 -1
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/transferencias.py +28 -26
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/README.md +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/ahead_service.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/client.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/datalake_service.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/helpers/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/helpers/api_helpers.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/rdp_service.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/rpa_fila_service.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/rpa_historico_service.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/webhook_service.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/cli.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/config/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/config/settings.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/config.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/core/so_manipulation.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/deprecation.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/rate_limit.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/repeat.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/retry.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/singleton.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/timeit.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dao/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dao/rpa_configuracao.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dao/rpa_fila.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dao/rpa_historico.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dao/rpa_processo.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dao/rpa_robo.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dto/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dto/rpa_historico_request_dto.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dto/rpa_processo_entrada_dto.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dto/rpa_processo_rdp_dto.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dto/rpa_sap_dto.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/models/dto/rpa_sistema_dto.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/coleta_dje_process.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/cte_manual.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/descartes.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/despesas_cte.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/devolucao_ctf.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/ecac_estadual_go.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/ecac_estadual_main.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/ecac_estadual_mt.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/ecac_estadual_sc.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/ecac_estadual_sp.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/ecac_federal.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_15.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_207.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_32.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_33.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_34.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_36.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_39.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_500.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_505.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/entrada_de_notas_9.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/exemplo_processo.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/integracao_contabil.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/login_emsys.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/notas_faturamento_sap.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/playground.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/jobs/sped_fiscal.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/task_definitions.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/tasks/task_executor.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/__init__.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/env.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/get_creds_gworkspace.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/logger.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/toast.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/updater.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/util.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/utils_nfe_entrada.py +0 -0
- {worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/worker.py +0 -0
@@ -46,6 +46,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
46
46
|
try:
|
47
47
|
# Inicializa variaveis
|
48
48
|
# pre_venda_message = None
|
49
|
+
itens_zero_qtd = [None]
|
49
50
|
nota_fiscal = [None]
|
50
51
|
log_msg = None
|
51
52
|
valor_nota = None
|
@@ -447,39 +448,40 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
447
448
|
retorno=error,
|
448
449
|
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
449
450
|
)
|
450
|
-
|
451
|
+
field_quantidade = (1047,606)
|
451
452
|
# Verifica se o saldo disponivel é valido para descartar
|
452
453
|
if int(amount_avaliable) > 0 and int(amount_avaliable) >= int(item["qtd"]):
|
453
|
-
field_quantidade = (
|
454
|
-
1047,
|
455
|
-
606,
|
456
|
-
) # find_target_position(screenshot_path, "Quantidade", 20, 0, 15)
|
457
454
|
pyautogui.doubleClick(field_quantidade)
|
458
455
|
pyautogui.hotkey("del")
|
459
456
|
pyautogui.write(str(item["qtd"]))
|
460
457
|
pyautogui.hotkey("tab")
|
461
458
|
await worker_sleep(2)
|
462
459
|
else:
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
460
|
+
if int(amount_avaliable) == 0:
|
461
|
+
itens_zero_qtd.append(f"DIVERGENCIA DE ESTOQUE - Item: {item["codigoProduto"]} Quantidade que deveria ser transferida: {item['qtd']} | Quantidade disponível: {amount_avaliable}")
|
462
|
+
#Clica cancelar
|
463
|
+
pyautogui.click((1194, 745))
|
464
|
+
await worker_sleep(5)
|
465
|
+
continue
|
466
|
+
else:
|
467
|
+
itens_zero_qtd.append(f"DIVERGENCIA DE ESTOQUE - Item: {item["codigoProduto"]} Quantidade que deveria ser transferida: {item['qtd']} | Quantidade disponível: {amount_avaliable}")
|
468
|
+
pyautogui.doubleClick(field_quantidade)
|
469
|
+
pyautogui.hotkey("del")
|
470
|
+
pyautogui.write(str(amount_avaliable))
|
471
|
+
pyautogui.hotkey("tab")
|
472
|
+
await worker_sleep(2)
|
473
|
+
# console.print(log_msg, style="bold red")
|
474
|
+
#Clica cancelar
|
475
|
+
# pyautogui.click((1194, 745))
|
476
|
+
# await worker_sleep(5)
|
477
|
+
# continue
|
478
|
+
# return RpaRetornoProcessoDTO(
|
479
|
+
# sucesso=False, retorno=log_msg, status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)]
|
480
|
+
# )
|
476
481
|
|
477
482
|
# Clica em incluir para adicionar o item na nota
|
478
483
|
console.print("Clicando em incluir para adicionar o item na nota...\n")
|
479
|
-
button_incluir_item = (
|
480
|
-
1007,
|
481
|
-
745,
|
482
|
-
) # find_target_position(screenshot_path, "Inlcuir", 0, 0, 15)
|
484
|
+
button_incluir_item = (1007,745) # find_target_position(screenshot_path, "Inlcuir", 0, 0, 15)
|
483
485
|
if button_incluir_item is not None:
|
484
486
|
pyautogui.click(button_incluir_item)
|
485
487
|
await worker_sleep(2)
|
@@ -865,7 +867,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
865
867
|
# Clica em fechar
|
866
868
|
await worker_sleep(3)
|
867
869
|
pyautogui.click(1200, 667)
|
868
|
-
log_msg = f"Nota lançada com sucesso! Número da nota: {nota_fiscal} | Valor: {valor_nota}"
|
870
|
+
log_msg = f"Nota lançada com sucesso! Número da nota: {nota_fiscal} | Valor: {valor_nota} | Itens com quantidade zerada: {itens_zero_qtd}"
|
869
871
|
await api_simplifica(
|
870
872
|
task.configEntrada.get("urlRetorno"),
|
871
873
|
"SUCESSO",
|
@@ -881,7 +883,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
881
883
|
)
|
882
884
|
|
883
885
|
else:
|
884
|
-
log_msg = f"{nf_ready['retorno']}. Número da nota: {nota_fiscal} | Valor: {valor_nota}"
|
886
|
+
log_msg = f"{nf_ready['retorno']}. Número da nota: {nota_fiscal} | Valor: {valor_nota} | Itens com quantidade zerada: {itens_zero_qtd}"
|
885
887
|
console.print(log_msg)
|
886
888
|
logger.error(log_msg)
|
887
889
|
await api_simplifica(
|
@@ -898,7 +900,7 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
898
900
|
)
|
899
901
|
|
900
902
|
except Exception as ex:
|
901
|
-
log_msg = f"Erro Processo Transferências: {ex} | Número da nota: {nota_fiscal} | Valor: {valor_nota}"
|
903
|
+
log_msg = f"Erro Processo Transferências: {ex} | Número da nota: {nota_fiscal} | Valor: {valor_nota} | Itens com quantidade zerada: {itens_zero_qtd}"
|
902
904
|
logger.error(log_msg)
|
903
905
|
console.print(log_msg, style="bold red")
|
904
906
|
await api_simplifica(
|
@@ -913,4 +915,4 @@ async def transferencias(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
913
915
|
sucesso=False,
|
914
916
|
retorno=log_msg,
|
915
917
|
status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)]
|
916
|
-
)
|
918
|
+
)
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/ahead_service.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/api/rdp_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/config/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/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.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/repeat.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/retry.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/decorators/timeit.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/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
|
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.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/__init__.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/env.py
RENAMED
File without changes
|
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/logger.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/toast.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/updater.py
RENAMED
File without changes
|
{worker_automate_hub-0.5.315 → worker_automate_hub-0.5.316}/worker_automate_hub/utils/util.py
RENAMED
File without changes
|
File without changes
|
File without changes
|