worker-automate-hub 0.4.384__py3-none-any.whl → 0.4.386__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,10 +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
- pattern = r"Vcto:\s*(\d{2}/\d{2}/\d{4})"
656
- match = re.search(pattern, nota.get("observacoes"))
657
- data_vencimento = match.group(1) if match else None
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")
658
673
 
659
674
  await worker_sleep(2)
660
675
  console.print(f"Removendo registro de parcelamento do pagamento... \n")
@@ -754,9 +769,7 @@ async def entrada_de_notas_9(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
754
769
  retorno=f"Erro ao adicionar o pagamento, valor informado {valores_informado_text}.",
755
770
  status=RpaHistoricoStatusEnum.Falha,
756
771
  )
757
- console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
758
- else:
759
- console.print(f"Pagamento ja adicionado... \n")
772
+ console.print(f"Processo de incluir pagamento realizado com sucesso... \n")
760
773
  except Exception as e:
761
774
  return RpaRetornoProcessoDTO(
762
775
  sucesso=False,
@@ -2202,7 +2202,7 @@ async def select_documento_type(document_type: str) -> RpaRetornoProcessoDTO:
2202
2202
  console.print(
2203
2203
  "Clique select box, Tipo de documento realizado com sucesso, selecionando o tipo de documento...\n"
2204
2204
  )
2205
- await worker_sleep(2)
2205
+ await worker_sleep(4)
2206
2206
  set_combobox("||List", document_type)
2207
2207
  console.print(
2208
2208
  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.384
3
+ Version: 0.4.386
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=q9ORkSt9YuyKO-_xnq4kKQIqXfYTZkOUd-zSReM8Csg,42496
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=yMh37iiZ56YAN8QKlwTxSS-blsOhVjCLrD46cp7_EVI,119565
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.384.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
- worker_automate_hub-0.4.384.dist-info/METADATA,sha256=md1JJTr3CaP0-4VSyViPLrz6uzMdJddGjSTL17lZlpA,2895
72
- worker_automate_hub-0.4.384.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
- worker_automate_hub-0.4.384.dist-info/RECORD,,
70
+ worker_automate_hub-0.4.386.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
71
+ worker_automate_hub-0.4.386.dist-info/METADATA,sha256=LhZ4Mh_Jrd2HHEvoFe0wDaPEaA8wSvnbnoiXwKNbfGc,2895
72
+ worker_automate_hub-0.4.386.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
73
+ worker_automate_hub-0.4.386.dist-info/RECORD,,