worker-automate-hub 0.5.682__py3-none-any.whl → 0.5.684__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/abertura_livros_fiscais.py +6 -6
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +12 -1
- {worker_automate_hub-0.5.682.dist-info → worker_automate_hub-0.5.684.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.682.dist-info → worker_automate_hub-0.5.684.dist-info}/RECORD +6 -6
- {worker_automate_hub-0.5.682.dist-info → worker_automate_hub-0.5.684.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.682.dist-info → worker_automate_hub-0.5.684.dist-info}/entry_points.txt +0 -0
@@ -589,7 +589,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
589
589
|
main_window.set_focus()
|
590
590
|
main_window.child_window(class_name="TButton", found_index=1).click_input()
|
591
591
|
|
592
|
-
await worker_sleep(
|
592
|
+
await worker_sleep(20)
|
593
593
|
|
594
594
|
# Clicar no aviso
|
595
595
|
try:
|
@@ -598,7 +598,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
598
598
|
print("Janela 'TMsgBox' encontrada.")
|
599
599
|
box.set_focus()
|
600
600
|
box.child_window(class_name="TBitBtn", found_index=0).click_input()
|
601
|
-
print("
|
601
|
+
print("1Clicou no botão 'TBitBtn'.")
|
602
602
|
await worker_sleep(5)
|
603
603
|
except:
|
604
604
|
pass
|
@@ -609,7 +609,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
609
609
|
console.print("Janela de confirmação 'TMessageForm' encontrada.")
|
610
610
|
form.set_focus()
|
611
611
|
form.child_window(class_name="TButton", found_index=1).click_input()
|
612
|
-
print("
|
612
|
+
print("2Clicou no botão de confirmação.")
|
613
613
|
await worker_sleep(5)
|
614
614
|
except:
|
615
615
|
pass
|
@@ -620,7 +620,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
620
620
|
console.print("Janela de confirmação 'TMessageForm' encontrada.")
|
621
621
|
form.set_focus()
|
622
622
|
form.child_window(class_name="TButton", found_index=0).click_input()
|
623
|
-
print("
|
623
|
+
print("3Clicou no botão de confirmação.")
|
624
624
|
await worker_sleep(5)
|
625
625
|
except:
|
626
626
|
pass
|
@@ -631,7 +631,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
631
631
|
console.print("Janela de confirmação 'TMessageForm' encontrada.")
|
632
632
|
form.set_focus()
|
633
633
|
form.child_window(class_name="TButton", found_index=1).click_input()
|
634
|
-
print("
|
634
|
+
print("4Clicou no botão de confirmação.")
|
635
635
|
await worker_sleep(5)
|
636
636
|
except:
|
637
637
|
pass
|
@@ -642,7 +642,7 @@ async def abertura_livros_fiscais(task: RpaProcessoEntradaDTO) -> RpaRetornoProc
|
|
642
642
|
console.print("Janela de confirmação 'TMessageForm' encontrada.")
|
643
643
|
form.set_focus()
|
644
644
|
form.child_window(class_name="TButton", found_index=0).click_input()
|
645
|
-
print("
|
645
|
+
print("5Clicou no botão de confirmação.")
|
646
646
|
await worker_sleep(5)
|
647
647
|
except:
|
648
648
|
pass
|
@@ -16,6 +16,9 @@ import pytesseract
|
|
16
16
|
from pywinauto.application import Application
|
17
17
|
from pywinauto_recorder.player import set_combobox
|
18
18
|
from rich.console import Console
|
19
|
+
import sys
|
20
|
+
|
21
|
+
# sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")))
|
19
22
|
|
20
23
|
from worker_automate_hub.api.ahead_service import save_xml_to_downloads
|
21
24
|
from worker_automate_hub.api.client import (
|
@@ -583,12 +586,20 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
|
|
583
586
|
await worker_sleep(10)
|
584
587
|
await emsys.percorrer_grid(cnpj)
|
585
588
|
await emsys.select_tipo_cobranca()
|
589
|
+
valor_str = nota.get("valorNota")
|
590
|
+
if valor_str:
|
591
|
+
valor_str = valor_str.replace('.', '').replace(',', '.')
|
592
|
+
valor_nota = float(valor_str)
|
593
|
+
else:
|
594
|
+
valor_nota = None
|
595
|
+
|
586
596
|
await emsys.inserir_vencimento_e_valor(
|
587
597
|
nota.get("nomeFornecedor"),
|
588
598
|
nota.get("dataEmissao"),
|
589
599
|
nota.get("dataVencimento"),
|
590
|
-
|
600
|
+
valor_nota,
|
591
601
|
)
|
602
|
+
|
592
603
|
await worker_sleep(5)
|
593
604
|
try:
|
594
605
|
retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
|
@@ -36,7 +36,7 @@ worker_automate_hub/models/dto/rpa_sap_dto.py,sha256=eovdvKCtVIhRct3PL98KjsdlngL
|
|
36
36
|
worker_automate_hub/models/dto/rpa_sistema_dto.py,sha256=sLkmJei8x6sl-1-IXUKDmYQuKx0sotYQREPyhQqPmRg,161
|
37
37
|
worker_automate_hub/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
38
|
worker_automate_hub/tasks/jobs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
39
|
-
worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py,sha256=
|
39
|
+
worker_automate_hub/tasks/jobs/abertura_livros_fiscais.py,sha256=jSNt8SQdZQ6Boe9GOl_1yQWdNjJ37GRl5ADqa6RlWcY,29789
|
40
40
|
worker_automate_hub/tasks/jobs/coleta_dje_process.py,sha256=UkLWTC5Ub2qBb0yY-8IZ0DLLOVJOfNTq_z9krx_t25Q,29476
|
41
41
|
worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgEjpjifReCTBDqxH-U,11719
|
42
42
|
worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53tKXgCDI05nGLGclU,603
|
@@ -54,7 +54,7 @@ worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYt
|
|
54
54
|
worker_automate_hub/tasks/jobs/entrada_cte_1353.py,sha256=knwPbjZZsnvHKurs7O7gv7bFpQIAmv4qPB1rZa3zBsY,12102
|
55
55
|
worker_automate_hub/tasks/jobs/entrada_cte_333.py,sha256=FvpU_bsdPB2ANQ_i63Jlkdo5yZM4zJdr2mm41KTrJtE,13285
|
56
56
|
worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=BYmdPLJFZEHD_lVSpuaTDLZrx33ox8Re7QDzXjXDiB8,29524
|
57
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=
|
57
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=CaYIgX7lO37-D9tr9NrUKJaAdebYi1Bn0VOZNpr4y3I,37159
|
58
58
|
worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQL9KiCWW95j8zX1v2MslgbDcUE,36871
|
59
59
|
worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
|
60
60
|
worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=ODp82BkWaiF40t6uZLJYxG2nGGnvDyeQBHhkkh9ZgPI,35994
|
@@ -98,7 +98,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
98
98
|
worker_automate_hub/utils/util.py,sha256=xA13nQqZglwkvfAKH18Unv4UoZUyvL58CacSrzUpYTw,206352
|
99
99
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=L_z1Aps6BFWl-6_Ibm45vDid1S4kFDz5O78N2uO1Rq0,36458
|
100
100
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
101
|
-
worker_automate_hub-0.5.
|
102
|
-
worker_automate_hub-0.5.
|
103
|
-
worker_automate_hub-0.5.
|
104
|
-
worker_automate_hub-0.5.
|
101
|
+
worker_automate_hub-0.5.684.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
102
|
+
worker_automate_hub-0.5.684.dist-info/METADATA,sha256=Fa2ILV0Q4EM8W8Mw-iSvRKb9YSS5kLQXnRYqQQjDA6g,3049
|
103
|
+
worker_automate_hub-0.5.684.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
104
|
+
worker_automate_hub-0.5.684.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.682.dist-info → worker_automate_hub-0.5.684.dist-info}/entry_points.txt
RENAMED
File without changes
|