worker-automate-hub 0.5.831__py3-none-any.whl → 0.5.832__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.
@@ -148,6 +148,7 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
148
148
  descricao_fornecedor = nota.get("descricaoFornecedor", "")
149
149
  historico_id = task.historico_id
150
150
  cod_fornecedor = descricao_fornecedor.split(" - ")[0]
151
+ fornecedor = descricao_fornecedor.split(" - ")[1]
151
152
  identificador = nota.get("identificador", "")
152
153
  url_retorno = nota.get("urlRetorno", "")
153
154
  multiplicador_timeout = int(float(task.sistemas[0].timeout))
@@ -885,7 +886,6 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
885
886
 
886
887
  # Inserir mensagem padrão
887
888
  console.print("Inserir mensagem...")
888
- fornecedor = "Disbal"
889
889
  lista_fornecedores = ["Disbal", "Pepsico", "Punta Balena"]
890
890
  mensagem = (
891
891
  "PRODUTOS VENCIDOS"
@@ -929,24 +929,34 @@ async def devolucao_produtos(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoD
929
929
  app = Application().connect(class_name="TFrmDadosTributacaoProdutoPreVenda")
930
930
  trib = app["TFrmDadosTributacaoProdutoPreVenda"]
931
931
 
932
- if estado == "RS":
932
+ if estado == "RS" and "pepsico" in fornecedor.lower():
933
933
  select_trib = trib.child_window(class_name="TDBIComboBox", found_index=4)
934
934
  select_trib.select("051 - 051 - ICMS 17% RED BC 29,4118% - TRIBUT.CORRETA")
935
935
  print("Selecionado: 051 - 051 - ICMS 17% RED BC 29,4118% - TRIBUT.CORRETA")
936
+
937
+ elif estado == "RS":
938
+ select_trib = trib.child_window(class_name="TDBIComboBox", found_index=4)
939
+ select_trib.select("051 - 051 - ICMS 17% RED BC 29,4118% - TRIBUT.CORRETA")
940
+ print("Selecionado: 051 - 051 - ICMS 17% RED BC 29,4118% - TRIBUT.CORRETA")
941
+
936
942
  elif estado == "SC":
937
943
  select_trib = trib.child_window(class_name="TDBIComboBox", found_index=4)
938
944
  select_trib.select("000 - 000 - ICMS - 12%")
939
945
  print("Selecionado: 000 - 000 - ICMS - 12%")
946
+
940
947
  else:
941
948
  print("Estado diferente dos mapeados")
942
949
 
943
- if fornecedor == "Disbal":
950
+ if "disbal" in fornecedor.lower():
944
951
  select_trib.select("020 - 020 - ICMS 12% RED. BASE 41,667")
945
- elif fornecedor == "Punta Balena":
952
+
953
+ elif "punta balena" in fornecedor.lower():
946
954
  select_trib.select("000 - 000 - ICMS - 12%")
947
- elif fornecedor == "Vitrola":
955
+
956
+ elif "vitrola" in fornecedor.lower():
948
957
  select_trib.select("041 - 041 - ICMS - NAO INCIDENTE ")
949
958
 
959
+
950
960
  await worker_sleep(2)
951
961
 
952
962
  trib.child_window(title="&OK", class_name="TBitBtn").click_input()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: worker-automate-hub
3
- Version: 0.5.831
3
+ Version: 0.5.832
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
@@ -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=vL-bSlfQkT860EfeHgeXl5bXo5pSMu8KAQhyy9LxYAg,43342
48
+ worker_automate_hub/tasks/jobs/devolucao_produtos.py,sha256=gUx0miB2XZ3vhQMT-CSP7nWfK8yYcvcd84FEhG9USzQ,43761
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.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,,
108
+ worker_automate_hub-0.5.832.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
109
+ worker_automate_hub-0.5.832.dist-info/METADATA,sha256=o7c3meCBfbiTklS6ae6PE0d79XpKLJ6LhARyObycFJQ,3142
110
+ worker_automate_hub-0.5.832.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
111
+ worker_automate_hub-0.5.832.dist-info/RECORD,,