worker-automate-hub 0.4.321__py3-none-any.whl → 0.4.322__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/entrada_de_notas_9.py +36 -3
- {worker_automate_hub-0.4.321.dist-info → worker_automate_hub-0.4.322.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.4.321.dist-info → worker_automate_hub-0.4.322.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.4.321.dist-info → worker_automate_hub-0.4.322.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.4.321.dist-info → worker_automate_hub-0.4.322.dist-info}/entry_points.txt +0 -0
@@ -547,7 +547,7 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
547
547
|
panel_TTabSheet.click()
|
548
548
|
send_keys("{DOWN " + ("2") + "}")
|
549
549
|
|
550
|
-
await worker_sleep(
|
550
|
+
await worker_sleep(4)
|
551
551
|
try:
|
552
552
|
panel_TPage = main_window.child_window(class_name="TPage", title="Formulario")
|
553
553
|
panel_TTabSheet = panel_TPage.child_window(class_name="TPageControl")
|
@@ -646,10 +646,43 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
|
|
646
646
|
|
647
647
|
await worker_sleep(2)
|
648
648
|
console.print(f"Removendo registro de parcelamento do pagamento... \n")
|
649
|
-
|
649
|
+
btn_remove = panel_TabParcelamento.child_window(
|
650
650
|
class_name="TDBIBitBtn", found_index=0
|
651
651
|
)
|
652
|
-
|
652
|
+
btn_remove.click()
|
653
|
+
await worker_sleep(3)
|
654
|
+
confirm_pop_up = await is_window_open_by_class("TMessageForm")
|
655
|
+
if confirm_pop_up["IsOpened"] == True:
|
656
|
+
app_confirm = Application().connect(
|
657
|
+
class_name="TMessageForm"
|
658
|
+
)
|
659
|
+
main_window_confirm = app_confirm["TMessageForm"]
|
660
|
+
|
661
|
+
btn_yes = main_window_confirm["&Yes"]
|
662
|
+
if btn_yes.exists():
|
663
|
+
try:
|
664
|
+
btn_yes.click()
|
665
|
+
await worker_sleep(3)
|
666
|
+
console.print("O botão Yes de remover parcelamento foi clicado com sucesso.", style="green")
|
667
|
+
except:
|
668
|
+
console.print("Falha ao clicar no botão Yes de faturar.", style="red")
|
669
|
+
else:
|
670
|
+
pyautogui.click(915, 562)
|
671
|
+
else:
|
672
|
+
return RpaRetornoProcessoDTO(
|
673
|
+
sucesso=False,
|
674
|
+
retorno=f"Pop de confirmação de remover parcelamento não foi encontrado.",
|
675
|
+
status=RpaHistoricoStatusEnum.Falha,
|
676
|
+
)
|
677
|
+
await worker_sleep(3)
|
678
|
+
confirm_pop_up = await is_window_open_by_class("TMessageForm")
|
679
|
+
if confirm_pop_up["IsOpened"] == True:
|
680
|
+
return RpaRetornoProcessoDTO(
|
681
|
+
sucesso=False,
|
682
|
+
retorno=f"Erro ao adicionar remover o parcelamento do pagamento.",
|
683
|
+
status=RpaHistoricoStatusEnum.Falha,
|
684
|
+
)
|
685
|
+
|
653
686
|
await worker_sleep(2)
|
654
687
|
console.print(f"Parcelamento de pagamento excluido, adicionando o novo... \n")
|
655
688
|
console.print(f"Inserindo a data de vencimento {data_vencimento} \n")
|
@@ -48,7 +48,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=v_cFb8DiHAIlBuyo-Nm
|
|
48
48
|
worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=Pls1zcdhgiU8csrtXGUq9m8rCZm2xmK45dld6N1MKdM,26598
|
49
49
|
worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=G2EwCtsltWOAVg5iUg0VSp88OBJeI5U4122QfZORyp4,14493
|
50
50
|
worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=Fp9hCyXqKY2o7Ijsd_tll5ZcR2KLxxlzdWeyGWnggcI,14187
|
51
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=
|
51
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=GlWsGD6vf1WH6Ey0xCQfA4-COyBdDPjV-eFxD4h3l5k,40550
|
52
52
|
worker_automate_hub/tasks/jobs/exemplo_processo.py,sha256=3-zxbb-9YHPmSA_K1Qgxp_FwSqg2QDjGBRCLxDZ8QoQ,3451
|
53
53
|
worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=Y-mKYcgX1kwcy_sOHvctn7clXnY3O3fohvOs7tKPMkM,9484
|
54
54
|
worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=QBGm6eS5JghgNWNqZlk1g2a2iV8LnBLiOTBBL3Giet0,4181
|
@@ -67,7 +67,7 @@ worker_automate_hub/utils/updater.py,sha256=0LR6Xpe3HZk-xu-trH7vKRhP5FXp0nhp1qxt
|
|
67
67
|
worker_automate_hub/utils/util.py,sha256=wSnFauksL-JhwrUethdBKw0Kv0fS-jmteKT_3ewpuXI,117596
|
68
68
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=VowHS7r3wRv3f-KAyJAqZLhe7Dkwj8CVaWGNNAQP9YY,27389
|
69
69
|
worker_automate_hub/worker.py,sha256=dJxc6AtA2wNac6tU3s_SVb0IWKjKPWVBPYpCmEZRZ90,4606
|
70
|
-
worker_automate_hub-0.4.
|
71
|
-
worker_automate_hub-0.4.
|
72
|
-
worker_automate_hub-0.4.
|
73
|
-
worker_automate_hub-0.4.
|
70
|
+
worker_automate_hub-0.4.322.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
71
|
+
worker_automate_hub-0.4.322.dist-info/METADATA,sha256=ugrliKXGddKn1iqKy_iSerfYJWzYhn8T5LfoLOFPWLY,2884
|
72
|
+
worker_automate_hub-0.4.322.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
73
|
+
worker_automate_hub-0.4.322.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.4.321.dist-info → worker_automate_hub-0.4.322.dist-info}/entry_points.txt
RENAMED
File without changes
|