ITK-dev-shared-components 2.14.1__tar.gz → 2.15.0__tar.gz
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.
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/PKG-INFO +1 -1
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/fmcacov.py +13 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/opret_kundekontakt.py +2 -1
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components.egg-info/PKG-INFO +1 -1
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/pyproject.toml +1 -1
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/LICENSE +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/README.md +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/eflyt/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/eflyt/eflyt_case.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/eflyt/eflyt_letter.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/eflyt/eflyt_login.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/eflyt/eflyt_search.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/eflyt/eflyt_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/getorganized/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/getorganized/go_api.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/graph/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/graph/authentication.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/graph/common.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/graph/file.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/graph/mail.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/graph/site.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/authentication.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/cpr.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/nova_cases.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/nova_documents.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/nova_notes.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/nova_objects.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/nova_tasks.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/kmd_nova/util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/misc/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/misc/address_lookup.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/misc/cpr_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/misc/cvr_lookup.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/misc/file_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/gridview_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/multi_session.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/sap_login.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/sap_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/sap/tree_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/smtp/__init__.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components/smtp/smtp_util.py +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components.egg-info/SOURCES.txt +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components.egg-info/dependency_links.txt +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components.egg-info/requires.txt +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/itk_dev_shared_components.egg-info/top_level.txt +0 -0
- {itk_dev_shared_components-2.14.1 → itk_dev_shared_components-2.15.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.15.0
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
"""This module contains functions to help with actions in the fmcacov transaction."""
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
class InvalidFPError(LookupError):
|
|
5
|
+
"""A subclass of LookupError
|
|
6
|
+
which indicates that an invalid FP number
|
|
7
|
+
has been entered.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
4
11
|
def open_forretningspartner(session, fp: str) -> None:
|
|
5
12
|
"""Start the transaction FMCACOV and open the given forretningspartner.
|
|
6
13
|
If the fp-number also matches a cvr-number the fp-number will be opened.
|
|
@@ -10,6 +17,7 @@ def open_forretningspartner(session, fp: str) -> None:
|
|
|
10
17
|
fp: The forretningspartner number.
|
|
11
18
|
|
|
12
19
|
Raises:
|
|
20
|
+
InvalidFPError: If the forretningpartner doesn't exist in the system.
|
|
13
21
|
LookupError: If the forretningspartner wasn't found.
|
|
14
22
|
"""
|
|
15
23
|
session.StartTransaction('fmcacov')
|
|
@@ -18,6 +26,11 @@ def open_forretningspartner(session, fp: str) -> None:
|
|
|
18
26
|
session.findById("wnd[0]/usr/ctxtGPART_DYN").text = fp
|
|
19
27
|
session.findById("wnd[0]").sendVKey(0)
|
|
20
28
|
|
|
29
|
+
# Check for lookup error
|
|
30
|
+
status_bar = session.findbyid("wnd[0]/sbar")
|
|
31
|
+
if status_bar.MessageType == 'E':
|
|
32
|
+
raise InvalidFPError(status_bar.text)
|
|
33
|
+
|
|
21
34
|
# Detect popup
|
|
22
35
|
popup = session.findById('wnd[1]', False)
|
|
23
36
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from typing import Literal
|
|
4
4
|
from datetime import date
|
|
5
|
+
import threading
|
|
5
6
|
|
|
6
7
|
import win32clipboard
|
|
7
8
|
|
|
@@ -10,7 +11,7 @@ from itk_dev_shared_components.sap import tree_util, fmcacov
|
|
|
10
11
|
|
|
11
12
|
def opret_kundekontakter(session, fp: str, aftaler: list[str] | None,
|
|
12
13
|
art: Literal[' ', 'Automatisk', 'Fakturagrundlag', 'Fuldmagt ifm. værge', 'Konverteret', 'Myndighedshenvend.', 'Orientering', 'Returpost', 'Ringeaktivitet', 'Skriftlig henvend.', 'Telefonisk henvend.'],
|
|
13
|
-
notat: str, lock=None) -> None:
|
|
14
|
+
notat: str, lock: threading.Lock = None) -> None:
|
|
14
15
|
"""Creates a kundekontakt on the given FP and aftaler.
|
|
15
16
|
|
|
16
17
|
Args:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: itk_dev_shared_components
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.15.0
|
|
4
4
|
Summary: Shared components to use in RPA projects
|
|
5
5
|
Author-email: ITK Development <itk-rpa@mkb.aarhus.dk>
|
|
6
6
|
Project-URL: Homepage, https://github.com/itk-dev-rpa/itk-dev-shared-components
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|