worker-automate-hub 0.5.591__py3-none-any.whl → 0.5.593__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.
- worker_automate_hub/tasks/jobs/integracao_contabil_generica.py +21 -6
- {worker_automate_hub-0.5.591.dist-info → worker_automate_hub-0.5.593.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.591.dist-info → worker_automate_hub-0.5.593.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.591.dist-info → worker_automate_hub-0.5.593.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.591.dist-info → worker_automate_hub-0.5.593.dist-info}/entry_points.txt +0 -0
@@ -193,13 +193,11 @@ async def integracao_contabil_generica(
|
|
193
193
|
await worker_sleep(12)
|
194
194
|
# pyautogui.press("tab")
|
195
195
|
await worker_sleep(3)
|
196
|
-
|
197
|
-
|
196
|
+
|
198
197
|
# console.print("Selecionando item do campo origem...")
|
199
198
|
uuid_processo = task.uuidProcesso
|
200
199
|
caminho_imagem = f"assets\\integracao_contabil\\{uuid_processo}.png"
|
201
200
|
|
202
|
-
|
203
201
|
await metodo_selecao_origem_especial()
|
204
202
|
await localizar_e_clicar(caminho_imagem) # main_window.set_focus()
|
205
203
|
await worker_sleep(5)
|
@@ -278,7 +276,7 @@ async def integracao_contabil_generica(
|
|
278
276
|
while True:
|
279
277
|
try:
|
280
278
|
localizacao = pyautogui.locateOnScreen(
|
281
|
-
imagem_finalizada, confidence=0.
|
279
|
+
imagem_finalizada, confidence=0.85
|
282
280
|
)
|
283
281
|
print("Verificando imagem...")
|
284
282
|
if localizacao:
|
@@ -359,7 +357,7 @@ async def integracao_contabil_generica(
|
|
359
357
|
print("Total Débito:", total_debito)
|
360
358
|
print("Total Crédito:", total_credito)
|
361
359
|
|
362
|
-
if diferenca > 0
|
360
|
+
if diferenca > "0,00":
|
363
361
|
clicou = True
|
364
362
|
main_window_capture = main_window.capture_as_image()
|
365
363
|
return RpaRetornoProcessoDTO(
|
@@ -404,7 +402,24 @@ async def integracao_contabil_generica(
|
|
404
402
|
console.print("Botão '&Ok' clicado com sucesso.")
|
405
403
|
break
|
406
404
|
except ElementNotFoundError:
|
407
|
-
|
405
|
+
console.print("Janela MsgBox não encontrada ainda. Verificando existencia de erro de duplicidade...")
|
406
|
+
try:
|
407
|
+
duplicidade_err_img = "assets\\integracao_contabil\\erro_duplicidade.png"
|
408
|
+
duplicidade_err = pyautogui.locateOnScreen(
|
409
|
+
duplicidade_err_img, confidence=0.86
|
410
|
+
)
|
411
|
+
console.print("Verificando imagem...")
|
412
|
+
if duplicidade_err:
|
413
|
+
console.print("Erro de Duplicidade localizado.")
|
414
|
+
return RpaRetornoProcessoDTO(
|
415
|
+
sucesso=False,
|
416
|
+
retorno=f"Erro de Duplicidade localizado enquanto finalizava a integração.",
|
417
|
+
status=RpaHistoricoStatusEnum.Falha,
|
418
|
+
tags=[RpaTagDTO(descricao=RpaTagEnum.Negocio)],
|
419
|
+
)
|
420
|
+
console.print("Erro de Duplicidade não localizado.")
|
421
|
+
except Exception as err:
|
422
|
+
print(f"Sem erro de Duplicidade.\nDetalhe: {err}")
|
408
423
|
except Exception as e:
|
409
424
|
print(f"Erro ao tentar clicar no botão: {e}")
|
410
425
|
|
@@ -74,7 +74,7 @@ worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=XCbIZG1y7
|
|
74
74
|
worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py,sha256=6BtgiHZ8gLiKpOHwF3Tba4oVFZDUbUUwaHw7WK_5V2I,11879
|
75
75
|
worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py,sha256=QzK2aG5d9pmFbb8cTaNm3LWf5NMkmCvBkgo70gcLu0c,14781
|
76
76
|
worker_automate_hub/tasks/jobs/integracao_contabil.py,sha256=psoIU0tjtTJq2W8aGXjXrfkAOYlIpUtHZyNolI7dp-0,16263
|
77
|
-
worker_automate_hub/tasks/jobs/integracao_contabil_generica.py,sha256=
|
77
|
+
worker_automate_hub/tasks/jobs/integracao_contabil_generica.py,sha256=uyiktW67IL-r1jl_LtGk2Us0gz6rB3uW6u3MutF2NHU,18098
|
78
78
|
worker_automate_hub/tasks/jobs/lancamento_pis_cofins.py,sha256=9BePVw8AP42mRKRiWqZHxIah9rGOqoBXs_Vo-OQBioM,35679
|
79
79
|
worker_automate_hub/tasks/jobs/login_emsys.py,sha256=dO9S027qRTtjOfytF6IWO-m6hDld8kZqOVAsn91l1YA,5684
|
80
80
|
worker_automate_hub/tasks/jobs/login_emsys_versao_especifica.py,sha256=_6CFh79eaW9KdPGR6FMV01ASPjJzNzzBK1MvC_uiSOo,5625
|
@@ -93,7 +93,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
93
93
|
worker_automate_hub/utils/util.py,sha256=mFsEBbrIJBP_jyGj1bRbQjZuPH8LmXqgXQOuVZmx8aA,198280
|
94
94
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
|
95
95
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
96
|
-
worker_automate_hub-0.5.
|
97
|
-
worker_automate_hub-0.5.
|
98
|
-
worker_automate_hub-0.5.
|
99
|
-
worker_automate_hub-0.5.
|
96
|
+
worker_automate_hub-0.5.593.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
97
|
+
worker_automate_hub-0.5.593.dist-info/METADATA,sha256=8vKtiP28OVLjx1UrH5SpxshnbubWHt9LvWHX5fClJ1E,3012
|
98
|
+
worker_automate_hub-0.5.593.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
99
|
+
worker_automate_hub-0.5.593.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.591.dist-info → worker_automate_hub-0.5.593.dist-info}/entry_points.txt
RENAMED
File without changes
|