Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XBRL italy #16

Open
simocheccoli opened this issue Mar 18, 2022 · 6 comments
Open

XBRL italy #16

simocheccoli opened this issue Mar 18, 2022 · 6 comments

Comments

@simocheccoli
Copy link

simocheccoli commented Mar 18, 2022

Hi! We are trying to use this library with XBRL files from Italian companies, but we have some trouble ..

        /** @var string $filename */
        $filename = $this->argument('filename');

        $report = new \XBRL_Report( $filename );
        $report->excludeDefaultDimensionMembers();
        $report->preparePresentation();

        $html = $report->toHtml();
        $date = date( "Y-m-d" );
        file_put_contents( "report_{$date}.html", $html );

Output:

[info] storage/bilanci/94101220211_28911915_14566012.xbrl
[info]     Files: itcc-ci-micr-2018-11-04.xsd
[info]  http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd

   Exception  : Error initialising the instance document. It may contain invalid XML.
@itajackass
Copy link

Ciao mi sto approcciando ora all' XBRL... ma non ho capito come si usa la libreria! Per caso hai un esempio pratico da indicarmi? (riferendomi alla tassonomia 2018-11-04)
Grazie mille

@bseddon
Copy link
Owner

bseddon commented Jan 10, 2023

Hi, in the wiki there is an example of creating a report. This example assumes you have opened an instance document. The code to open an instance document is shown on the readme page . Scroll down to the sub-title with the label: Example loading and validating an instance document

Please note this project is not designed to 'make XBRL easy'. It is designed to allow people who know about XBRL access the information in instance documents and taxonomies and use that information while using PHP. If you don't have a good understanding of XBRL and the specifications, this project may not be useful.

@itajackass
Copy link

ok thanks.
I'm new on XBRL... i'm italian and we request to create XBRL files for "BILANCIO IV CEE"... but i don't undestard how to create this file!
My data was read from mysql database of course... but i don't find documentation how XBRL is defined.... no example files founds...

@bseddon
Copy link
Owner

bseddon commented Jan 10, 2023

This project is not going to help create instance documents. The XBRL specifications are available from the XBRL II site. The good news is that most of the specifications are about creating taxonomies while it seems you need to create instance documents. This means there is much less to learn. The information you are likely to need starts in section 3.2 of the XBRL 2.1 specification.

XBRL instance documents are fairly simple XML documents. However, to be able to create one you will also need to know the "BILANCIO IV CEE" taxonomy. The instance document is really just a map between the concepts defined in the taxonomy and the values you need to report. It is extremely important that the correct concept is used to define each value that is being reported.

My recommendation is that you start by reviewing an existing instance document and the corresponding taxonomy.

@itajackass
Copy link

italian "BILANCIO CEE" taxonomy are located here: http://it.xbrl.org/wp-content/uploads/sites/5/2018/11/PCI-2018-11-04.zip but there are a lot of file and don't understand if there is a MAIN file to use...( maybe the "itcc-ci-2018-11-04.xsd" file? ) also i don't find any example of an existing instance document :(

@bseddon
Copy link
Owner

bseddon commented Jan 10, 2023

"itcc-ci-2018-11-04.xsd" may be the correct entry point but the only people who can answer this are the authors. They will have created documentation to explain the taxonomy and which entry point(s) to use. For example, the taxonomy for the US SEC has 7 entry points. All are 'correct' but are used for different reporting entities (commercial, small companies, banks, etc.).

There will be test instance documents on the it.xbrl.org site but they may be for members only. If you email them, I'm sure they will be able to tell you where to look. For example, ESMA have just released a conformance suite fore the 2022 ESEF taxonomy.
This is to help users test their instance documents. This is something ESMA have always done. There is likely to be a set of examples for the 2018 taxonomy. You will just need to find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants