worker-automate-hub 0.4.385__py3-none-any.whl → 0.4.387__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.
@@ -594,10 +594,8 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
594
594
  valores_informado_text_transform = valores_informado_text_transform.replace(",",".")
595
595
 
596
596
  console.print(f"Pagamento informado valor:{valores_informado_text}... \n")
597
- vencimento = False
598
597
  if float(valores_informado_text_transform) <= 0.0:
599
598
  #if '0,00' in valores_informado_text and len(valores_informado_text) <= 4:
600
- vencimento = True
601
599
  console.print(f"Pagamento não informado, registrando... \n")
602
600
  dt_emissao = nota.get("dataEmissao")
603
601
  dt_emissao = datetime.strptime(dt_emissao, "%d/%m/%Y")
@@ -614,6 +612,12 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
614
612
  class_name="TDBIEditDate"
615
613
  )
616
614
  vencimento.set_edit_text(recebimento_fisico)
615
+ elif "sim dis" in nota.get("nomeFornecedor").lower():
616
+ vencimento = panel_TabParcelamento.child_window(
617
+ class_name="TDBIEditDate"
618
+ )
619
+ data_vencimento = nota.get("dataVencimento")
620
+ vencimento.set_edit_text(data_vencimento)
617
621
  else:
618
622
  #Senão adicionar 1 dia a emissao
619
623
  dt_emissao = nota.get("dataEmissao")
@@ -651,8 +655,21 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
651
655
  status=RpaHistoricoStatusEnum.Falha,
652
656
  )
653
657
  console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
654
- elif (not "vibra" in nota.get("nomeFornecedor").lower() and vencimento == False):
655
- data_vencimento = nota.get("dataVencimento")
658
+ else:
659
+ data_vencimento = ""
660
+ if "vibra" in nota.get("nomeFornecedor").lower() or "ipiranga" in nota.get("nomeFornecedor").lower() or "raizen" in nota.get("nomeFornecedor").lower() or "charrua" in nota.get("nomeFornecedor").lower():
661
+ if recebimento_fisico > dt_emissao + timedelta(days=2):
662
+ recebimento_fisico = recebimento_fisico.strftime("%d/%m/%Y")
663
+ console.print(f"Informando a data de vencimento, {recebimento_fisico}... \n")
664
+ data_vencimento = recebimento_fisico
665
+ else:
666
+ dt_emissao = nota.get("dataEmissao")
667
+ dt_emissao = datetime.strptime(dt_emissao, "%d/%m/%Y")
668
+ dt_emissao = dt_emissao + timedelta(days=1)
669
+ dt_emissao = dt_emissao.strftime("%d/%m/%Y")
670
+ data_vencimento = dt_emissao
671
+ else:
672
+ data_vencimento = nota.get("dataVencimento")
656
673
 
657
674
  await worker_sleep(2)
658
675
  console.print(f"Removendo registro de parcelamento do pagamento... \n")
@@ -752,9 +769,7 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
752
769
  retorno=f"Erro ao adicionar o pagamento, valor informado {valores_informado_text}.",
753
770
  status=RpaHistoricoStatusEnum.Falha,
754
771
  )
755
- console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
756
- else:
757
- console.print(f"Pagamento ja adicionado... \n")
772
+ console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
758
773
  except Exception as e:
759
774
  return RpaRetornoProcessoDTO(
760
775
  sucesso=False,
@@ -884,7 +884,6 @@ def select_model_capa() -> RpaRetornoProcessoDTO:
884
884
  status=RpaHistoricoStatusEnum.Falha,
885
885
  )
886
886
  pyautogui.click(field)
887
- worker_sleep(1)
888
887
  pyautogui.write("Nfe")
889
888
  pyautogui.hotkey("enter")
890
889
  # Procura o tipo de documento "NFe - NOTA FISCAL ELETRONICA PROPRIA - DANFE SERIE 077"
@@ -2202,7 +2201,7 @@ async def select_documento_type(document_type: str) -> RpaRetornoProcessoDTO:
2202
2201
  console.print(
2203
2202
  "Clique select box, Tipo de documento realizado com sucesso, selecionando o tipo de documento...\n"
2204
2203
  )
2205
- await worker_sleep(2)
2204
+ await worker_sleep(4)
2206
2205
  set_combobox("||List", document_type)
2207
2206
  console.print(
2208
2207
  f"Tipo de documento '{document_type}', selecionado com sucesso...\n"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: worker-automate-hub
3
- Version: 0.4.385
3
+ Version: 0.4.387
4
4
  Summary: Worker Automate HUB é uma aplicação para automatizar rotinas de RPA nos ambientes Argenta.
5
5
  Author: Joel Paim
6
6
  Requires-Python: >=3.12,<4.0
@@ -48,7 +48,7 @@ worker_automate_hub/tasks/jobs/entrada_de_notas_39.py,sha256=XkSEe6Y2S5Zf8Eq619d
48
48
  worker_automate_hub/tasks/jobs/entrada_de_notas_500.py,sha256=ryl5AZ2617aROSVcS-N5wQIBlFQ1Bp0khUH9fP4DOzU,26542
49
49
  worker_automate_hub/tasks/jobs/entrada_de_notas_505.py,sha256=jIml8gjXPdI6_x7S9VVV8IrKZRF7_PTNOMnhNmYMDTU,14490
50
50
  worker_automate_hub/tasks/jobs/entrada_de_notas_7139.py,sha256=8XP9G3n0PUeshbRWkWKOMnyUGRWspIolPZVqQTR3SMI,14184
51
- worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=MBPctnmZE6fqkoq11osRUvqkrEs0nE1ntl1i0vYc5qY,42362
51
+ worker_automate_hub/tasks/jobs/entrada_de_notas_9.py,sha256=ZlznKaTZUxcHpQEeTvDi2SKTu_mS8iw6b73_idzr1sU,43467
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
@@ -64,10 +64,10 @@ worker_automate_hub/utils/get_creds_gworkspace.py,sha256=ZJ0IIEjM4IXIV9rwfbOZ1V1
64
64
  worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1rzT_xs,671
65
65
  worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
66
66
  worker_automate_hub/utils/updater.py,sha256=0LR6Xpe3HZk-xu-trH7vKRhP5FXp0nhp1qxtygE2Jps,7280
67
- worker_automate_hub/utils/util.py,sha256=hUzQOnVYwvlrFzAv1p5Lt3s1dmW_77NZFuG77QQHKL4,119565
67
+ worker_automate_hub/utils/util.py,sha256=YCbgMMBwhp9LD6NUmE5S2K6S12TNEpGJm25FqfsIKPE,119544
68
68
  worker_automate_hub/utils/utils_nfe_entrada.py,sha256=GsvN7XMWAmCFHqC0YMZsjsb0myL-7ahuzHN4jPNn0zc,27623
69
69
  worker_automate_hub/worker.py,sha256=vkl_x7gSo6nQlhSBLwRkGx6LEONnYptfBaGxOy1ZLsE,4634
70
- worker_automate_hub-0.4.385.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
- worker_automate_hub-0.4.385.dist-info/METADATA,sha256=RutN_oREylF2R9BHz4P9bi87mDi5n7E59jgbB25NzTI,2895
72
- worker_automate_hub-0.4.385.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
- worker_automate_hub-0.4.385.dist-info/RECORD,,
70
+ worker_automate_hub-0.4.387.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
+ worker_automate_hub-0.4.387.dist-info/METADATA,sha256=Uma34T97hJN5Wq68Cefr-mTPEADQEQuShttNc4qwNDk,2895
72
+ worker_automate_hub-0.4.387.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
+ worker_automate_hub-0.4.387.dist-info/RECORD,,