worker-automate-hub 0.5.830__py3-none-any.whl → 0.5.831__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/devolucao_produtos.py +22 -13
 - {worker_automate_hub-0.5.830.dist-info → worker_automate_hub-0.5.831.dist-info}/METADATA +1 -1
 - {worker_automate_hub-0.5.830.dist-info → worker_automate_hub-0.5.831.dist-info}/RECORD +5 -5
 - {worker_automate_hub-0.5.830.dist-info → worker_automate_hub-0.5.831.dist-info}/WHEEL +0 -0
 - {worker_automate_hub-0.5.830.dist-info → worker_automate_hub-0.5.831.dist-info}/entry_points.txt +0 -0
 
| 
         @@ -330,7 +330,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       330 
330 
     | 
    
         
             
                    await worker_sleep(1)
         
     | 
| 
       331 
331 
     | 
    
         | 
| 
       332 
332 
     | 
    
         
             
                    # Abrir guia de itens (por imagem)
         
     | 
| 
       333 
     | 
    
         
            -
                    imagem_item = r"C:\Users\automatehub\Desktop\img_leo\itens.png"
         
     | 
| 
      
 333 
     | 
    
         
            +
                    # imagem_item = r"C:\Users\automatehub\Desktop\img_leo\itens.png"
         
     | 
| 
      
 334 
     | 
    
         
            +
                    imagem_item = "assets\\devolucao_produtos\\itens.png"
         
     | 
| 
       334 
335 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       335 
336 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_item, confidence=0.9)
         
     | 
| 
       336 
337 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -470,7 +471,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       470 
471 
     | 
    
         
             
                        had_saldo = True
         
     | 
| 
       471 
472 
     | 
    
         
             
                        try:
         
     | 
| 
       472 
473 
     | 
    
         
             
                            console.print("Verificar mensagem de saldo menor....")
         
     | 
| 
       473 
     | 
    
         
            -
                            img_saldo = r"C:\Users\automatehub\Documents\GitHub\worker-assets\emsys\saldo_menor.png"
         
     | 
| 
      
 474 
     | 
    
         
            +
                            # img_saldo = r"C:\Users\automatehub\Documents\GitHub\worker-assets\emsys\saldo_menor.png"
         
     | 
| 
      
 475 
     | 
    
         
            +
                            img_saldo = "assets\\devolucao_produtos\\saldo_menor.png"
         
     | 
| 
       474 
476 
     | 
    
         
             
                            img_saldo_bool = False
         
     | 
| 
       475 
477 
     | 
    
         | 
| 
       476 
478 
     | 
    
         
             
                            for _ in range(10):
         
     | 
| 
         @@ -567,7 +569,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       567 
569 
     | 
    
         | 
| 
       568 
570 
     | 
    
         
             
                    # Clicar em recebimentos
         
     | 
| 
       569 
571 
     | 
    
         
             
                    console.print("Clicar em recebimentos...")
         
     | 
| 
       570 
     | 
    
         
            -
                    imagem_item = r"C:\Users\automatehub\Desktop\img_leo\btn_recebimentos.png"
         
     | 
| 
      
 572 
     | 
    
         
            +
                    # imagem_item = r"C:\Users\automatehub\Desktop\img_leo\btn_recebimentos.png"
         
     | 
| 
      
 573 
     | 
    
         
            +
                    imagem_item = "assets\\devolucao_produtos\\btn_recebimentos.png"
         
     | 
| 
       571 
574 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       572 
575 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_item, confidence=0.9)
         
     | 
| 
       573 
576 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -581,7 +584,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       581 
584 
     | 
    
         | 
| 
       582 
585 
     | 
    
         
             
                    # Clicar em Parcelamento
         
     | 
| 
       583 
586 
     | 
    
         
             
                    console.print("Clicar em parcelamento...")
         
     | 
| 
       584 
     | 
    
         
            -
                    imagem_parc = r"C:\Users\automatehub\Desktop\img_leo\btn_parcelamento.png"
         
     | 
| 
      
 587 
     | 
    
         
            +
                    # imagem_parc = r"C:\Users\automatehub\Desktop\img_leo\btn_parcelamento.png"
         
     | 
| 
      
 588 
     | 
    
         
            +
                    imagem_parc = "assets\\devolucao_produtos\\btn_parcelamento.png"
         
     | 
| 
       585 
589 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       586 
590 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_parc, confidence=0.8)
         
     | 
| 
       587 
591 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -617,7 +621,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       617 
621 
     | 
    
         | 
| 
       618 
622 
     | 
    
         
             
                    # Clicar em Incluir
         
     | 
| 
       619 
623 
     | 
    
         
             
                    console.print("Incluir registro...")
         
     | 
| 
       620 
     | 
    
         
            -
                    imagem_incluir = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\entrada_notas\IncluirRegistro.png"
         
     | 
| 
      
 624 
     | 
    
         
            +
                    # imagem_incluir = r"C:\Users\automatehub\Documents\GitHub\worker-automate-hub\assets\entrada_notas\IncluirRegistro.png"
         
     | 
| 
      
 625 
     | 
    
         
            +
                    imagem_incluir = "assets\\devolucao_produtos\\IncluirRegistro.png"
         
     | 
| 
       621 
626 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       622 
627 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_incluir, confidence=0.8)
         
     | 
| 
       623 
628 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -759,9 +764,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       759 
764 
     | 
    
         | 
| 
       760 
765 
     | 
    
         
             
                    # Notas referenciadas
         
     | 
| 
       761 
766 
     | 
    
         
             
                    console.print("CLicar em notas referenciadas...")
         
     | 
| 
       762 
     | 
    
         
            -
                    imagem_notas_ref =  
     | 
| 
       763 
     | 
    
         
            -
             
     | 
| 
       764 
     | 
    
         
            -
                    )
         
     | 
| 
      
 767 
     | 
    
         
            +
                    # imagem_notas_ref = r"C:\Users\automatehub\Desktop\img_leo\notas_referenciadas.png"
         
     | 
| 
      
 768 
     | 
    
         
            +
                    imagem_notas_ref = "assets\\devolucao_produtos\\notas_referenciadas.png"
         
     | 
| 
       765 
769 
     | 
    
         
             
                    for _ in range(20):
         
     | 
| 
       766 
770 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_notas_ref, confidence=0.8)
         
     | 
| 
       767 
771 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -854,7 +858,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       854 
858 
     | 
    
         | 
| 
       855 
859 
     | 
    
         
             
                    # Aba mensagens
         
     | 
| 
       856 
860 
     | 
    
         
             
                    console.print("Clicar em mensagens...")
         
     | 
| 
       857 
     | 
    
         
            -
                    imagem_notas_ref = r"C:\Users\automatehub\Desktop\img_leo\aba_mensagem.png"
         
     | 
| 
      
 861 
     | 
    
         
            +
                    # imagem_notas_ref = r"C:\Users\automatehub\Desktop\img_leo\aba_mensagem.png"
         
     | 
| 
      
 862 
     | 
    
         
            +
                    imagem_notas_ref = "assets\\devolucao_produtos\\aba_mensagem.png"
         
     | 
| 
       858 
863 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       859 
864 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_notas_ref, confidence=0.9)
         
     | 
| 
       860 
865 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -866,7 +871,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       866 
871 
     | 
    
         
             
                    await worker_sleep(5)
         
     | 
| 
       867 
872 
     | 
    
         | 
| 
       868 
873 
     | 
    
         
             
                    # Mensagem interna
         
     | 
| 
       869 
     | 
    
         
            -
                    imagem_notas_ref = r"C:\Users\automatehub\Desktop\img_leo\mensagem_interna.png"
         
     | 
| 
      
 874 
     | 
    
         
            +
                    # imagem_notas_ref = r"C:\Users\automatehub\Desktop\img_leo\mensagem_interna.png"
         
     | 
| 
      
 875 
     | 
    
         
            +
                    imagem_notas_ref = "assets\\devolucao_produtos\\mensagem_interna.png"
         
     | 
| 
       870 
876 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       871 
877 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_notas_ref, confidence=0.8)
         
     | 
| 
       872 
878 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -890,7 +896,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       890 
896 
     | 
    
         
             
                    input_mensagem.type_keys(mensagem, with_spaces=True, set_foreground=True)
         
     | 
| 
       891 
897 
     | 
    
         | 
| 
       892 
898 
     | 
    
         
             
                    # Aba itens
         
     | 
| 
       893 
     | 
    
         
            -
                    imagem_itens = r"C:\Users\automatehub\Desktop\img_leo\aba_itens.png"
         
     | 
| 
      
 899 
     | 
    
         
            +
                    # imagem_itens = r"C:\Users\automatehub\Desktop\img_leo\aba_itens.png"
         
     | 
| 
      
 900 
     | 
    
         
            +
                    imagem_itens = "assets\\devolucao_produtos\\aba_itens.png"
         
     | 
| 
       894 
901 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       895 
902 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_itens, confidence=0.9)
         
     | 
| 
       896 
903 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -904,7 +911,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       904 
911 
     | 
    
         | 
| 
       905 
912 
     | 
    
         
             
                    # Corrige tributação
         
     | 
| 
       906 
913 
     | 
    
         
             
                    console.print("Corrigir tributação...")
         
     | 
| 
       907 
     | 
    
         
            -
                    imagem_itens = r"C:\Users\automatehub\Desktop\img_leo\corrige_tributacao.png"
         
     | 
| 
      
 914 
     | 
    
         
            +
                    # imagem_itens = r"C:\Users\automatehub\Desktop\img_leo\corrige_tributacao.png"
         
     | 
| 
      
 915 
     | 
    
         
            +
                    imagem_itens = "assets\\devolucao_produtos\\corrige_tributacao.png"
         
     | 
| 
       908 
916 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       909 
917 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_itens, confidence=0.9)
         
     | 
| 
       910 
918 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -946,7 +954,8 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD 
     | 
|
| 
       946 
954 
     | 
    
         
             
                    await worker_sleep(1)
         
     | 
| 
       947 
955 
     | 
    
         | 
| 
       948 
956 
     | 
    
         
             
                    # Aba principal
         
     | 
| 
       949 
     | 
    
         
            -
                    imagem_principal = r"C:\Users\automatehub\Desktop\img_leo\aba_principal.png"
         
     | 
| 
      
 957 
     | 
    
         
            +
                    # imagem_principal = r"C:\Users\automatehub\Desktop\img_leo\aba_principal.png"
         
     | 
| 
      
 958 
     | 
    
         
            +
                    imagem_principal = "assets\\devolucao_produtos\\aba_principal.png"
         
     | 
| 
       950 
959 
     | 
    
         
             
                    for _ in range(10):
         
     | 
| 
       951 
960 
     | 
    
         
             
                        pos = pyautogui.locateCenterOnScreen(imagem_principal, confidence=0.9)
         
     | 
| 
       952 
961 
     | 
    
         
             
                        if pos:
         
     | 
| 
         @@ -45,7 +45,7 @@ worker_automate_hub/tasks/jobs/descartes.py,sha256=wIi8n4vZrNE-03C5_lr4FmxuKoWSY 
     | 
|
| 
       45 
45 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=7tdUihaDqjIf7POjM79EqKG0w-qqXbhC6jq6hteavkw,250822
         
     | 
| 
       46 
46 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/devolucao_ctf_35.py,sha256=e9t5k2mtZcUcEGKPWysbWzsH_gqrK-6aBXjWe2jWfTg,253948
         
     | 
| 
       47 
47 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=kzPJazDRbz2CLn8tKja2Lg1N4UzTRF1V4Nc1elIqTGY,272145
         
     | 
| 
       48 
     | 
    
         
            -
            worker_automate_hub/tasks/jobs/devolucao_produtos.py,sha256= 
     | 
| 
      
 48 
     | 
    
         
            +
            worker_automate_hub/tasks/jobs/devolucao_produtos.py,sha256=vL-bSlfQkT860EfeHgeXl5bXo5pSMu8KAQhyy9LxYAg,43342
         
     | 
| 
       49 
49 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
         
     | 
| 
       50 
50 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
         
     | 
| 
       51 
51 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/ecac_estadual_mt.py,sha256=C26zmpGQGUq6sP9lU9nanM3Fje-rkyx5tjwmRy4lyL8,25300
         
     | 
| 
         @@ -105,7 +105,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV 
     | 
|
| 
       105 
105 
     | 
    
         
             
            worker_automate_hub/utils/util.py,sha256=rDp5h36I_kMfaCDD9xgcxibRXe5AYaImlXKhGbQ7DHE,211273
         
     | 
| 
       106 
106 
     | 
    
         
             
            worker_automate_hub/utils/utils_nfe_entrada.py,sha256=F7jk95LpDwl5WfaQXahCA5yDdnySnWdctDqczHXwGqE,38195
         
     | 
| 
       107 
107 
     | 
    
         
             
            worker_automate_hub/worker.py,sha256=zEnYUrm5kY2cHbbee15QJkwkx4euD2SB2zRvUIbjS90,6850
         
     | 
| 
       108 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
       109 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
       110 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
       111 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
      
 108 
     | 
    
         
            +
            worker_automate_hub-0.5.831.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
         
     | 
| 
      
 109 
     | 
    
         
            +
            worker_automate_hub-0.5.831.dist-info/METADATA,sha256=6pNtOIHZoutHosQh1yS12DN5KZpKB3sHCwqMMRFGTYg,3142
         
     | 
| 
      
 110 
     | 
    
         
            +
            worker_automate_hub-0.5.831.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
         
     | 
| 
      
 111 
     | 
    
         
            +
            worker_automate_hub-0.5.831.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
    
        {worker_automate_hub-0.5.830.dist-info → worker_automate_hub-0.5.831.dist-info}/entry_points.txt
    RENAMED
    
    | 
         
            File without changes
         
     |