arelle-release 2.37.41__py3-none-any.whl → 2.37.42__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.

Potentially problematic release.


This version of arelle-release might be problematic. Click here for more details.

arelle/_version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '2.37.41'
21
- __version_tuple__ = version_tuple = (2, 37, 41)
20
+ __version__ = version = '2.37.42'
21
+ __version_tuple__ = version_tuple = (2, 37, 42)
@@ -9,7 +9,8 @@ from typing import Any, Iterable, cast
9
9
 
10
10
  import regex
11
11
 
12
- from arelle import XbrlConst
12
+ from arelle import XbrlConst, ValidateDuplicateFacts
13
+ from arelle.ValidateDuplicateFacts import DuplicateType
13
14
  from arelle.ValidateXbrl import ValidateXbrl
14
15
  from arelle.typing import TypeGetText
15
16
  from arelle.utils.PluginHooks import ValidationHook
@@ -64,6 +65,41 @@ def rule_EC5002E(
64
65
  )
65
66
 
66
67
 
68
+ @validation(
69
+ hook=ValidationHook.XBRL_FINALLY,
70
+ disclosureSystems=[DISCLOSURE_SYSTEM_EDINET],
71
+ )
72
+ def rule_EC8024E(
73
+ pluginData: PluginValidationDataExtension,
74
+ val: ValidateXbrl,
75
+ *args: Any,
76
+ **kwargs: Any,
77
+ ) -> Iterable[Validation]:
78
+ """
79
+ EDINET.EC8024E: Instance values of the same element, context, and unit may not
80
+ have different values or different decimals attributes.
81
+ Correct the element with the relevant context ID. For elements in an inline XBRL file that have
82
+ duplicate elements, context IDs, and unit IDs, set the same values for the value and
83
+ decimals attribute.
84
+ """
85
+ duplicateFactSets = ValidateDuplicateFacts.getDuplicateFactSetsWithType(val.modelXbrl.facts, DuplicateType.INCOMPLETE)
86
+ for duplicateFactSet in duplicateFactSets:
87
+ fact = duplicateFactSet.facts[0]
88
+ yield Validation.error(
89
+ codes='EDINET.EC8024E',
90
+ msg=_("Instance values of the same element, context, and unit may not "
91
+ "have different values or different decimals attributes. <element=%(concept)s> "
92
+ "<contextID=%(context)s> <unit=%(unit)s>. Correct the element with the relevant "
93
+ "context ID. For elements in an inline XBRL file that have duplicate "
94
+ "elements, context IDs, and unit IDs, set the same values for the value and "
95
+ "decimals attribute."),
96
+ concept=fact.qname,
97
+ context=fact.contextID,
98
+ unit=fact.unitID,
99
+ modelObject=duplicateFactSet.facts,
100
+ )
101
+
102
+
67
103
  @validation(
68
104
  hook=ValidationHook.XBRL_FINALLY,
69
105
  disclosureSystems=[DISCLOSURE_SYSTEM_EDINET],
@@ -315,7 +315,7 @@ def rule_ros19(
315
315
 
316
316
  if (largest_equity_fact is not None and
317
317
  largest_turnover_fact is not None and
318
- convertToDecimal(largest_turnover_fact.xValue)) > (10 * abs(convertToDecimal(largest_equity_fact.xValue))):
318
+ convertToDecimal(largest_turnover_fact.xValue) > (10 * abs(convertToDecimal(largest_equity_fact.xValue)))):
319
319
  yield Validation.error(
320
320
  "ROS.19",
321
321
  _("Turnover / Revenue (DPLTurnoverRevenue) may exceed the maximum expected value. Please review the submission and, if correct, test your submission with Revenue Online's iXBRL test facility."),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arelle-release
3
- Version: 2.37.41
3
+ Version: 2.37.42
4
4
  Summary: An open source XBRL platform.
5
5
  Author-email: "arelle.org" <support@arelle.org>
6
6
  License-Expression: Apache-2.0
@@ -123,7 +123,7 @@ arelle/XmlValidateConst.py,sha256=U_wN0Q-nWKwf6dKJtcu_83FXPn9c6P8JjzGA5b0w7P0,33
123
123
  arelle/XmlValidateParticles.py,sha256=Mn6vhFl0ZKC_vag1mBwn1rH_x2jmlusJYqOOuxFPO2k,9231
124
124
  arelle/XmlValidateSchema.py,sha256=6frtZOc1Yrx_5yYF6V6oHbScnglWrVbWr6xW4EHtLQI,7428
125
125
  arelle/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
126
- arelle/_version.py,sha256=U62S37dJhYrPn2KWdnBMMwXbtf-OhmJZIBOKZhfOI58,515
126
+ arelle/_version.py,sha256=ksGS-4a5qZTGFbhhxaUO_PlhVGdAJc3Vdh01X5jVPGA,515
127
127
  arelle/typing.py,sha256=PRe-Fxwr2SBqYYUVPCJ3E7ddDX0_oOISNdT5Q97EbRM,1246
128
128
  arelle/api/Session.py,sha256=27HVuK3Bz1_21l4_RLn1IQg6v0MNsUEYrHajymyWwxI,7429
129
129
  arelle/archive/CustomLogger.py,sha256=v_JXOCQLDZcfaFWzxC9FRcEf9tQi4rCI4Sx7jCuAVQI,1231
@@ -402,7 +402,7 @@ arelle/plugin/validate/EDINET/__init__.py,sha256=ew9Rc2qJe5d3XvOOFzhX6MfzxNUtxIY
402
402
  arelle/plugin/validate/EDINET/resources/config.xml,sha256=7uT4GcRgk5veMLpFhPPQJxbGKiQvM52P8EMrjn0qd0g,646
403
403
  arelle/plugin/validate/EDINET/resources/edinet-taxonomies.xml,sha256=997I3RGTLg5OY3vn5hQxVFAAxOmDSOYpuyQe6VnWSY0,16285
404
404
  arelle/plugin/validate/EDINET/rules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
405
- arelle/plugin/validate/EDINET/rules/edinet.py,sha256=_qrGBV667MfExFpeIygrfWbBuLFw2zrMZGNyzQNRjqA,6826
405
+ arelle/plugin/validate/EDINET/rules/edinet.py,sha256=DTSQY1iEeJ6TTgLFRwi99Pxu8hUdZd51M398RILhf8c,8494
406
406
  arelle/plugin/validate/EDINET/rules/frta.py,sha256=N0YglHYZuLD2IuwE26viR2ViwUYjneBuMFU9vlrS0aQ,7616
407
407
  arelle/plugin/validate/EDINET/rules/gfm.py,sha256=4EKMho6eX-Ygl8yMBVabHQpbC-wxMvi067ubN9mp27U,21982
408
408
  arelle/plugin/validate/EDINET/rules/upload.py,sha256=HZ-9Gk6WtIichTGcSsSGIrMXNgsgJYQYwfUKeLs1XWU,20369
@@ -441,7 +441,7 @@ arelle/plugin/validate/ROS/__init__.py,sha256=KuWg1MHVzA2S6eaHFptvP3Vu_5gQWf3OUY
441
441
  arelle/plugin/validate/ROS/config.xml,sha256=ZCpCFgr1ZAjoUuhb1eRpDnmKrae-sXA9yl6SOWnrfm8,654
442
442
  arelle/plugin/validate/ROS/resources/config.xml,sha256=HXWume5HlrAqOx5AtiWWqgADbRatA8YSfm_JvZGwdgQ,657
443
443
  arelle/plugin/validate/ROS/rules/__init__.py,sha256=wW7BUAIb7sRkOxC1Amc_ZKrz03FM-Qh1TyZe6wxYaAU,1567
444
- arelle/plugin/validate/ROS/rules/ros.py,sha256=EcPY2tQTFICNtTSR_95pdFoBRg0K7yGLlZNVYoHGpn4,19870
444
+ arelle/plugin/validate/ROS/rules/ros.py,sha256=Dk5BkfKQYItImdx5FcFvkMWT5BlJ1r_L7Vn-EsCG85A,19870
445
445
  arelle/plugin/validate/UK/ValidateUK.py,sha256=0UhSwsY1lrY-EAEBJJR9QY38YXGBZ6PEgmuC5gQfBlI,57813
446
446
  arelle/plugin/validate/UK/__init__.py,sha256=KE6s_B-EvrHDCtWQz2N_wQwyx_ZbWhYNV2GfQnluxMw,30655
447
447
  arelle/plugin/validate/UK/config.xml,sha256=mUFhWDfBzGTn7v0ZSmf4HaweQTMJh_4ZcJmD9mzCHrA,1547
@@ -759,9 +759,9 @@ arelle/utils/validate/ValidationUtil.py,sha256=9vmSvShn-EdQy56dfesyV8JjSRVPj7txr
759
759
  arelle/utils/validate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
760
760
  arelle/webserver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
761
761
  arelle/webserver/bottle.py,sha256=P-JECd9MCTNcxCnKoDUvGcoi03ezYVOgoWgv2_uH-6M,362
762
- arelle_release-2.37.41.dist-info/licenses/LICENSE.md,sha256=Q0tn6q0VUbr-NM8916513NCIG8MNzo24Ev-sxMUBRZc,3959
763
- arelle_release-2.37.41.dist-info/METADATA,sha256=35ud-2G1jCFZ1rgVkMj7AQIZ8CcLkQ5z4mNH49402-E,9137
764
- arelle_release-2.37.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
765
- arelle_release-2.37.41.dist-info/entry_points.txt,sha256=Uj5niwfwVsx3vaQ3fYj8hrZ1xpfCJyTUA09tYKWbzpo,111
766
- arelle_release-2.37.41.dist-info/top_level.txt,sha256=fwU7SYawL4_r-sUMRg7r1nYVGjFMSDvRWx8VGAXEw7w,7
767
- arelle_release-2.37.41.dist-info/RECORD,,
762
+ arelle_release-2.37.42.dist-info/licenses/LICENSE.md,sha256=Q0tn6q0VUbr-NM8916513NCIG8MNzo24Ev-sxMUBRZc,3959
763
+ arelle_release-2.37.42.dist-info/METADATA,sha256=y-aLY_rzUkLN5s8wSNwDLgALr5YnSDDGAqVHrP1lRnI,9137
764
+ arelle_release-2.37.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
765
+ arelle_release-2.37.42.dist-info/entry_points.txt,sha256=Uj5niwfwVsx3vaQ3fYj8hrZ1xpfCJyTUA09tYKWbzpo,111
766
+ arelle_release-2.37.42.dist-info/top_level.txt,sha256=fwU7SYawL4_r-sUMRg7r1nYVGjFMSDvRWx8VGAXEw7w,7
767
+ arelle_release-2.37.42.dist-info/RECORD,,