worker-automate-hub 0.5.827__py3-none-any.whl → 0.5.828__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/fidc_remessa_cobranca_cnab240.py +5 -7
 - {worker_automate_hub-0.5.827.dist-info → worker_automate_hub-0.5.828.dist-info}/METADATA +1 -1
 - {worker_automate_hub-0.5.827.dist-info → worker_automate_hub-0.5.828.dist-info}/RECORD +5 -5
 - {worker_automate_hub-0.5.827.dist-info → worker_automate_hub-0.5.828.dist-info}/WHEEL +0 -0
 - {worker_automate_hub-0.5.827.dist-info → worker_automate_hub-0.5.828.dist-info}/entry_points.txt +0 -0
 
| 
         @@ -61,6 +61,7 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       61 
61 
     | 
    
         
             
                    user_folder_login = await get_config_by_name("user_credentials")
         
     | 
| 
       62 
62 
     | 
    
         
             
                    user_folder_login = user_folder_login.conConfiguracao
         
     | 
| 
       63 
63 
     | 
    
         
             
                    folders_paths = await get_config_by_name("Folders_Fidc")
         
     | 
| 
      
 64 
     | 
    
         
            +
                    folders_paths = folders_paths.conConfiguracao
         
     | 
| 
       64 
65 
     | 
    
         | 
| 
       65 
66 
     | 
    
         
             
                    #Abre um novo emsys
         
     | 
| 
       66 
67 
     | 
    
         
             
                    await kill_all_emsys()
         
     | 
| 
         @@ -112,7 +113,6 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       112 
113 
     | 
    
         | 
| 
       113 
114 
     | 
    
         
             
                    field_arquivo.double_click_input()
         
     | 
| 
       114 
115 
     | 
    
         
             
                    field_arquivo.set_edit_text("")
         
     | 
| 
       115 
     | 
    
         
            -
                    # field_arquivo.type_keys(folders_paths.conConfiguracao['remessa_cobranca_path'] + new_text_field_arquivo, with_spaces=True)
         
     | 
| 
       116 
116 
     | 
    
         
             
                    field_arquivo.type_keys(temp_folder + new_text_field_arquivo, with_spaces=True)
         
     | 
| 
       117 
117 
     | 
    
         | 
| 
       118 
118 
     | 
    
         
             
                    await worker_sleep(2)   
         
     | 
| 
         @@ -232,9 +232,7 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       232 
232 
     | 
    
         
             
                            sucesso=False, retorno=log_msg, status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)])    
         
     | 
| 
       233 
233 
     | 
    
         | 
| 
       234 
234 
     | 
    
         
             
                    # # Substituindo arquivo original e fazedno upload (feito logo apos gerar para  garaintir que o arquivo não se perca)
         
     | 
| 
       235 
     | 
    
         
            -
                    # origem = folders_paths.conConfiguracao['remessa_cobranca_path'] + new_text_field_arquivo
         
     | 
| 
       236 
235 
     | 
    
         
             
                    origem = temp_folder + new_text_field_arquivo
         
     | 
| 
       237 
     | 
    
         
            -
                    
         
     | 
| 
       238 
236 
     | 
    
         
             
                    # Abrindo o arquivo original para leitura
         
     | 
| 
       239 
237 
     | 
    
         
             
                    file = open(origem, 'r')
         
     | 
| 
       240 
238 
     | 
    
         
             
                    file_text = file.read()
         
     | 
| 
         @@ -249,7 +247,9 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       249 
247 
     | 
    
         
             
                    file = open(origem, 'w')
         
     | 
| 
       250 
248 
     | 
    
         
             
                    file.write(file_text)
         
     | 
| 
       251 
249 
     | 
    
         
             
                    file.close()
         
     | 
| 
       252 
     | 
    
         
            -
             
     | 
| 
      
 250 
     | 
    
         
            +
                    
         
     | 
| 
      
 251 
     | 
    
         
            +
                    await worker_sleep(5)
         
     | 
| 
      
 252 
     | 
    
         
            +
                    
         
     | 
| 
       253 
253 
     | 
    
         
             
                    console.print(f"Substituições realizadas com sucesso no arquivo original: {origem}")
         
     | 
| 
       254 
254 
     | 
    
         
             
                    try:
         
     | 
| 
       255 
255 
     | 
    
         
             
                        with open(origem, 'rb') as file:
         
     | 
| 
         @@ -262,7 +262,6 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       262 
262 
     | 
    
         
             
                        return RpaRetornoProcessoDTO(
         
     | 
| 
       263 
263 
     | 
    
         
             
                        sucesso=False, retorno=log_msg, status=RpaHistoricoStatusEnum.Falha, tags=[RpaTagDTO(descricao=RpaTagEnum.Tecnico)])
         
     | 
| 
       264 
264 
     | 
    
         | 
| 
       265 
     | 
    
         
            -
             
     | 
| 
       266 
265 
     | 
    
         
             
                    # Clica em 'Yes' imprimir listagem
         
     | 
| 
       267 
266 
     | 
    
         
             
                    await worker_sleep(10)
         
     | 
| 
       268 
267 
     | 
    
         
             
                    try:
         
     | 
| 
         @@ -295,7 +294,6 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       295 
294 
     | 
    
         | 
| 
       296 
295 
     | 
    
         
             
                    await worker_sleep(10)
         
     | 
| 
       297 
296 
     | 
    
         | 
| 
       298 
     | 
    
         
            -
                    # await save_pdf_emsys(folders_paths.conConfiguracao['remessa_cobranca_path'] + new_text_field_arquivo +" (PDF)")
         
     | 
| 
       299 
297 
     | 
    
         
             
                    await save_pdf_emsys(temp_folder + new_text_field_arquivo + PDF_SUFFIX)
         
     | 
| 
       300 
298 
     | 
    
         | 
| 
       301 
299 
     | 
    
         
             
                    await worker_sleep(5) 
         
     | 
| 
         @@ -326,7 +324,7 @@ async def remessa_cobranca_cnab240(task: RpaProcessoEntradaDTO) -> RpaRetornoPro 
     | 
|
| 
       326 
324 
     | 
    
         | 
| 
       327 
325 
     | 
    
         
             
                    try:
         
     | 
| 
       328 
326 
     | 
    
         
             
                        #Mover para pasta correta
         
     | 
| 
       329 
     | 
    
         
            -
                        shutil.move(origem, folders_paths 
     | 
| 
      
 327 
     | 
    
         
            +
                        shutil.move(origem, folders_paths["remessa_cobranca_path_prod"])
         
     | 
| 
       330 
328 
     | 
    
         
             
                    except:
         
     | 
| 
       331 
329 
     | 
    
         
             
                        try:
         
     | 
| 
       332 
330 
     | 
    
         
             
                            win32wnet.WNetAddConnection2(0, None, folders_paths["remessa_cobranca_path_prod_ip"], None, user_folder_login.get("usuario"), user_folder_login.get("senha"))
         
     | 
| 
         @@ -77,7 +77,7 @@ worker_automate_hub/tasks/jobs/extracao_saldo_estoque_fiscal.py,sha256=_mAey2urQ 
     | 
|
| 
       77 
77 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/fechar_conexao_rdp.py,sha256=UWAKCS2dbfgDlSQOBdjmVJXfD1MMuUrOi3weDgB0CAc,5718
         
     | 
| 
       78 
78 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/fidc_exportacao_docs_portal_b2b.py,sha256=tWUmYy3Zhi3JEt8AoqTsWpU-wbf5-OxhCrTOooh1WH4,15616
         
     | 
| 
       79 
79 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/fidc_gerar_nosso_numero.py,sha256=FAmcCqKVjedf7wIped8XRLIZ9S3oWc6fakF-r1Zm0kg,12637
         
     | 
| 
       80 
     | 
    
         
            -
            worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256= 
     | 
| 
      
 80 
     | 
    
         
            +
            worker_automate_hub/tasks/jobs/fidc_remessa_cobranca_cnab240.py,sha256=yTlFHuyw0yR-4cZm8XCRRV5K9zESUiK4n_w9l9Vddfg,16348
         
     | 
| 
       81 
81 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/fidc_retorno_cobranca.py,sha256=mmBW7KetUeRjiZkjnrxMKGX32io3YLZ8KGaY5_o7new,11891
         
     | 
| 
       82 
82 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos.py,sha256=QzK2aG5d9pmFbb8cTaNm3LWf5NMkmCvBkgo70gcLu0c,14781
         
     | 
| 
       83 
83 
     | 
    
         
             
            worker_automate_hub/tasks/jobs/geracao_aprovacao_pedidos_novo.py,sha256=4Rtm2uCfA6tZ-KW6aunKug7reTqbBX69CCBZCBnwbYc,21856
         
     | 
| 
         @@ -104,7 +104,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV 
     | 
|
| 
       104 
104 
     | 
    
         
             
            worker_automate_hub/utils/util.py,sha256=p15z2pqyV-fPD8lL6ulurecsWQw9XpKPFf_xEr4U5lM,210781
         
     | 
| 
       105 
105 
     | 
    
         
             
            worker_automate_hub/utils/utils_nfe_entrada.py,sha256=F7jk95LpDwl5WfaQXahCA5yDdnySnWdctDqczHXwGqE,38195
         
     | 
| 
       106 
106 
     | 
    
         
             
            worker_automate_hub/worker.py,sha256=zEnYUrm5kY2cHbbee15QJkwkx4euD2SB2zRvUIbjS90,6850
         
     | 
| 
       107 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
       108 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
       109 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
       110 
     | 
    
         
            -
            worker_automate_hub-0.5. 
     | 
| 
      
 107 
     | 
    
         
            +
            worker_automate_hub-0.5.828.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
         
     | 
| 
      
 108 
     | 
    
         
            +
            worker_automate_hub-0.5.828.dist-info/METADATA,sha256=-wW3Y_qRH0X8e67XqLOyKOLS3YavPF2QYpMt-teVubQ,3142
         
     | 
| 
      
 109 
     | 
    
         
            +
            worker_automate_hub-0.5.828.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
         
     | 
| 
      
 110 
     | 
    
         
            +
            worker_automate_hub-0.5.828.dist-info/RECORD,,
         
     | 
| 
         
            File without changes
         
     | 
    
        {worker_automate_hub-0.5.827.dist-info → worker_automate_hub-0.5.828.dist-info}/entry_points.txt
    RENAMED
    
    | 
         
            File without changes
         
     |