worker-automate-hub 0.5.609__py3-none-any.whl → 0.5.611__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_ctf.py +22 -5
- {worker_automate_hub-0.5.609.dist-info → worker_automate_hub-0.5.611.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.609.dist-info → worker_automate_hub-0.5.611.dist-info}/RECORD +5 -5
- {worker_automate_hub-0.5.609.dist-info → worker_automate_hub-0.5.611.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.609.dist-info → worker_automate_hub-0.5.611.dist-info}/entry_points.txt +0 -0
@@ -311,11 +311,19 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
311
311
|
console.print("INSERINDO CODIGO DO FORNECEDOR ...\n")
|
312
312
|
field_fornecedor = main_window.child_window(class_name="TDBIEditCode", found_index=0)
|
313
313
|
field_fornecedor.click()
|
314
|
-
|
314
|
+
|
315
|
+
if cod_cliente_incorreto != "140552":
|
316
|
+
field_fornecedor.set_edit_text(cod_cliente_incorreto)
|
317
|
+
else:
|
318
|
+
field_fornecedor.set_edit_text(cod_empresa)
|
315
319
|
field_fornecedor.click()
|
316
320
|
pyautogui.press("tab")
|
317
321
|
await worker_sleep(2)
|
318
322
|
|
323
|
+
|
324
|
+
itens = nota.get('itens', [])
|
325
|
+
itens_arla = [item for item in itens if item['descricao'].lower() == 'arla']
|
326
|
+
|
319
327
|
#SELECIONAO A NOP
|
320
328
|
console.print("SELECIONAO A NOP...\n")
|
321
329
|
select_box_nop_select = main_window.child_window(class_name="TDBIComboBox", found_index=0)
|
@@ -324,10 +332,19 @@ async def devolucao_ctf(task: RpaProcessoEntradaDTO) -> RpaRetornoProcessoDTO:
|
|
324
332
|
itens_to_select = select_box_nop_select.texts()
|
325
333
|
nop_to_be_select = ''
|
326
334
|
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
335
|
+
if len(itens_arla) == len(itens):
|
336
|
+
for item in itens_to_select:
|
337
|
+
if '1202' in item and (('s/ est' in item.lower() or 's/est' in item.lower())):
|
338
|
+
nop_to_be_select = item
|
339
|
+
break
|
340
|
+
elif '2202' in item and (('s/ est' in item.lower() or 's/est' in item.lower())):
|
341
|
+
nop_to_be_select = item
|
342
|
+
break
|
343
|
+
else:
|
344
|
+
for item in itens_to_select:
|
345
|
+
if '1662' in item and (('c/fi' in item.lower() or 'c /fi' in item.lower())):
|
346
|
+
nop_to_be_select = item
|
347
|
+
break
|
331
348
|
|
332
349
|
if nop_to_be_select != '':
|
333
350
|
set_combobox("||List", nop_to_be_select)
|
@@ -42,7 +42,7 @@ worker_automate_hub/tasks/jobs/conexao_rdp.py,sha256=S6QC4xhuo0pB5FjaUJZNMm1LIgE
|
|
42
42
|
worker_automate_hub/tasks/jobs/cte_manual.py,sha256=JucHpRMjMiy-QEJ0wtFnytLpN53tKXgCDI05nGLGclU,603
|
43
43
|
worker_automate_hub/tasks/jobs/cte_xml.py,sha256=CdDcDRjCJTU2DV0KAglqgCVb13ahMqzYdmaeJRKcR0o,15038
|
44
44
|
worker_automate_hub/tasks/jobs/descartes.py,sha256=E5kKef8j7e0PTm6NBeZAXkljUoAFEMjVWvHaJ8g2fv4,44451
|
45
|
-
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=
|
45
|
+
worker_automate_hub/tasks/jobs/devolucao_ctf.py,sha256=mtnnAYYD9mxOK83S4MkATqb9g3VUBVynJdpmgPf2DZM,252652
|
46
46
|
worker_automate_hub/tasks/jobs/devolucao_prazo_a_faturar.py,sha256=byIk02T4fWCVgKisf50ZAEY26d8FMTlX9S7RnQVtoEE,256763
|
47
47
|
worker_automate_hub/tasks/jobs/ecac_estadual_go.py,sha256=dKkf22nH5gp3RErq5u0UzRsKyJ81fc6ZZ4vLtUuMwHA,21002
|
48
48
|
worker_automate_hub/tasks/jobs/ecac_estadual_main.py,sha256=8WmKe4-MRtzHobXz2S4YBDNN8alfawkC-BBlRY-mn1g,1726
|
@@ -96,7 +96,7 @@ worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbV
|
|
96
96
|
worker_automate_hub/utils/util.py,sha256=_pgZOFWgXoov6WPbqyRTDVXJCRFfucYB3gb9swzU7bo,198281
|
97
97
|
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=wmnpuOesmPSryZszmapa37b9YNC0E2MkeDYnbwr-0rU,33315
|
98
98
|
worker_automate_hub/worker.py,sha256=axdrr1xLTjWEyWfcyH3OCSpPTsyzck_fL_0u1DBLjvw,6525
|
99
|
-
worker_automate_hub-0.5.
|
100
|
-
worker_automate_hub-0.5.
|
101
|
-
worker_automate_hub-0.5.
|
102
|
-
worker_automate_hub-0.5.
|
99
|
+
worker_automate_hub-0.5.611.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
100
|
+
worker_automate_hub-0.5.611.dist-info/METADATA,sha256=lYKyURFDX38z1y3Oa4DGWsSPQMqQMNamNE0WwqUVPYU,3049
|
101
|
+
worker_automate_hub-0.5.611.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
102
|
+
worker_automate_hub-0.5.611.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.609.dist-info → worker_automate_hub-0.5.611.dist-info}/entry_points.txt
RENAMED
File without changes
|