Skip to content

Commit

Permalink
Merge pull request #1032 from acsone/bug/1030_ESEF_ERROR_MESSAGE_OUTD…
Browse files Browse the repository at this point in the history
…ATED
  • Loading branch information
austinmatherne-wk committed Jan 10, 2024
2 parents 0975615 + f781a48 commit 57ee40c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arelle/plugin/validate/ESEF/ESEF_Current/DTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,13 @@ def lc3wordAdjust(word: str) -> str:
_("Extension taxonomy MUST NOT define typed dimensions: %(concepts)s."),
modelObject=typedDimsInExtTxmy, concepts=", ".join(str(c.qname) for c in typedDimsInExtTxmy))
if domainMembersWrongType:
xbrlReference322 = "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd"
if getDisclosureSystemYear(val.modelXbrl) < 2023:
xbrlReference322 = "http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd"
val.modelXbrl.error("ESEF.3.2.2.domainMemberWrongDataType",
_("Domain members MUST have domainItemType data type as defined in \"http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd\": concept %(concepts)s."),
modelObject=domainMembersWrongType, concepts=", ".join(str(c.qname) for c in domainMembersWrongType))
_("Domain members MUST have domainItemType data type as defined in \"%(xbrlReference)s\": concept %(concepts)s."),
modelObject=domainMembersWrongType, xbrlReference=xbrlReference322,
concepts=", ".join(str(c.qname) for c in domainMembersWrongType))
# HF - think this is only about reported line items, not ext line items (?)
#if extLineItemsWithoutHypercube:
# val.modelXbrl.error("ESEF.3.4.2.extensionTaxonomyLineItemNotLinkedToAnyHypercube",
Expand Down

0 comments on commit 57ee40c

Please sign in to comment.