aboutsummaryrefslogtreecommitdiffstats
path: root/templates/extract-actual.html
blob: 1a08996ad7d6fc1110d9e59b325a3a50f2347bce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
{% include 'header.html' %}

{% for row in results %}

{% set insolvency_notes = [] %}
{% for elem in row.insolvence %}
    {% set insolvency_notes = insolvency_notes.append(elem.insolvency_event) %}
{% endfor %}

{% set predmety_podnikani_notes = [] %}
{% for i in range (row.predmet_podnikani|length) %}
    {% if row.predmet_podnikani[i].vymaz_datum == 0 %}
        {% set predmety_podnikani_notes = predmety_podnikani_notes.append(row.predmet_podnikani[i].predmet_podnikani.predmet_podnikani) %}
    {% endif %}
{% endfor %}

{% set predmety_cinnosti_notes = [] %}
{% for i in range (row.predmet_cinnosti|length) %}
    {% if row.predmet_cinnosti[i].vymaz_datum == 0 %}
        {% set predmety_cinnosti_notes = predmety_cinnosti_notes.append(row.predmet_cinnosti[i].predmet_cinnosti.predmet_cinnosti) %}
    {% endif %}
{% endfor %}

{% set zakladni_kapital_notes = [] %}
{% for i in range (row.zakladni_kapital|length) %}
    {% if row.zakladni_kapital[i].vymaz_datum == 0 %}
        {% set zakladni_kapital_notes = zakladni_kapital_notes.append(row.zakladni_kapital[i]) %}
    {% endif %}
{% endfor %}

{% set sole_shareholder_notes = [] %}
{% for i in range (row.jediny_akcionar|length) %}
    {% if row.jediny_akcionar[i].vymaz_datum == 0 %}
        {% set sole_shareholder_notes = sole_shareholder_notes.append(row.jediny_akcionar[i]) %}
    {% endif %}
{% endfor %}

{% set shares_notes = [] %}
{% for i in range (row.akcie|length) %}
    {% if row.akcie[i].vymaz_datum == 0 %}
        {% set shares_notes = shares_notes.append(row.akcie[i]) %}
    {% endif %}
{% endfor %}

{% set prokurist_notes = [] %}
{% for i in range (row.prokurista|length) %}
    {% if row.prokurista[i].vymaz_datum == 0 %}
        {% set prokurist_notes = prokurist_notes.append(row.prokurista[i]) %}
    {% endif %}
{% endfor %}

{% set prokurist_common_text_notes = [] %}
{% for i in range (row.prokura_common_text|length) %}
    {% if row.prokura_common_text[i].vymaz_datum == 0 %}
        {% set prokurist_common_text_notes = prokurist_common_text_notes.append(row.prokura_common_text[i]) %}
    {% endif %}
{% endfor %}

{% set ostatni_skutecnosti_notes = [] %}
{% for i in range (row.ostatni_skutecnosti|length) %}
    {% if row.ostatni_skutecnosti[i].vymaz_datum == 0 %}
        {% set ostatni_skutecnosti_notes = ostatni_skutecnosti_notes.append(row.ostatni_skutecnosti[i]) %}
    {% endif %}
{% endfor %}

{% set insolvency_notes = [] %}
{% for i in range (row.insolvence|length) %}
    {% if row.insolvence[i].vymaz_datum == 0 %}
        {% set insolvency_notes = insolvency_notes.append(row.insolvence[i].insolvency_event) %}
    {% endif %}
{% endfor %}

{% set konkurz_notes = [] %}
{% for i in range (row.konkurz|length) %}
    {% if row.konkurz[i].vymaz_datum == 0 %}
        {% set konkurz_notes = konkurz_notes.append(row.konkurz[i].konkurz_event) %}
    {% endif %}
{% endfor %}

{% if row.soud == "MSPH" %}
    {% set soud = "Městského soudu v Praze" %}
{% elif row.soud == "KSCB" %}
    {% set soud = "Krajského soudu v Českých Budějovicích" %}
{% elif row.soud == "KSOS" %}
    {% set soud = "Krajského soudu v Ostravě" %}
{% elif row.soud == "KSPL" %}
    {% set soud = "Krajského soudu v Plzni" %}
{% elif row.soud == "KSBR" %}
    {% set soud = "Krajského soudu v Brně" %}
{% elif row.soud == "KSHK" %}
    {% set soud = "Krajského soudu v Hradci Králové" %}
{% elif row.soud == "KSUL" %}
    {% set soud = "Krajského soudu v Ústí nad Labem" %}
{% endif %}

{% if insolvency_notes|length > 0 %}
    {% set table_style = "table table-danger" %}
{% elif loop.index % 2 == 0 %}
    {% set table_style = "table table-light" %}
{% else %}
    {% set table_style = "table table-secondary" %}
{% endif %}

{% if row.ico|length != 8 %}            
    {% set ico_buffer = [] %}
    {% for i in range (8 - row.ico|length) %}
        {% set ico_buffer = ico_buffer.append("0") %}
    {% endfor %}
    
{% else %}
    {% set ico_buffer = "" %}
{% endif %}

<h1>Výpis z obchodního rejstříku</h1>
{% for i in range (row.soudni_zapis|length) %}
    {% if row.soudni_zapis[i].vymaz_datum == 0 %}
<h2>{{ row.nazev }}, {{ row.soudni_zapis[i].oddil }} {{ row.soudni_zapis[i].vlozka }} vedená u {{ row.soudni_zapis[i].soud }}</h2>
{% endif %}
{% endfor %}
<p><a href="/">Zpět na vyhledání</a></p>

<table class= "table" style="width: 100%">
    <!-- Display registration date -->
    <tr>
        <td style="width:15%">Datum vzniku a zápisu:</td>
        <td style="width:85%">{{row.zapis}}</td>
    </tr>
    <!-- END Display registration date -->
    
    <!-- Display court registration -->
    <tr>
        <td>Spisová značka:</td>
        {% for i in range (row.soudni_zapis|length) %}
            {% if row.soudni_zapis[i].vymaz_datum == 0 %}
            <td>{{ row.soudni_zapis[i].oddil }} {{ row.soudni_zapis[i].vlozka }} vedená u {{ row.soudni_zapis[i].soud }}</td>
            {% endif %}
        {% endfor %}
    </tr>
    <!-- END Display court registrations -->

    <!-- Display business names -->
    <tr>
        <td>Obchodní firma:</td>
        {% for i in range (row.obchodni_firma|length) %}
            {% if row.obchodni_firma[i].vymaz_datum == 0 %}
            <td>{{ row.obchodni_firma[i].nazev_text }}</td>
            {% endif %}
        {% endfor %}
    </tr>
    <!-- END Display business names -->

    <!-- Display registered office -->
    <tr>
        <td>Sídlo:{{ row.sidlo_text[0]}}</td>
        {% for i in range (row.sidlo_text|length) %}
            {% if row.sidlo_text[i].vymaz_datum == 0 %}
            <td>{{ row.sidlo_text[i].sidlo_text.adresa_text }}</td>
            {% endif %}
        {% endfor %}
    </tr>
    <!-- END Display registered office -->

    <!-- Display ICO -->
    <tr>
        <td>Identifikační číslo:</td>
        <td>{{ ico_buffer|join("") }}{{ row.ico }}</td>
    </tr>
    <!-- END Display ICO -->

    <!-- Display legal form -->
    <tr>
        <td>Právní forma:</td>
        {% for i in range (row.pravni_forma_text|length) %}
            {% if row.pravni_forma_text[i].vymaz_datum == 0 %}
            <td>{{ row.pravni_forma_text[i].pravni_forma_text.pravni_forma }}</td>
            {% endif %}
        {% endfor %}
    </tr>
    <!-- END Display legal form -->

    <!-- Display registered capital -->
    {% if zakladni_kapital_notes|length > 0 %}
    <tr>
        {% if zakladni_kapital_notes[0].vklad_typ == "KORUNY" %}
            {% set vklad_typ_symbol = "Kč" %}
            {% set vklad_typ_description = zakladni_kapital_notes[0].vklad_hodnota %}
        {% elif zakladni_kapital_notes[0].vklad_typ == "EURA" %}
            {% set vklad_typ_symbol = "euro" %}
            {% set vklad_typ_description = zakladni_kapital_notes[0].vklad_hodnota %}
        {% else %}
            {% set vklad_typ_symbol = "" %}
            {% set vklad_typ_description = zakladni_kapital_notes[0].vklad_hodnota %}
        {% endif %}           

        {% if zakladni_kapital_notes[0].splaceni_typ == "KORUNY" %}
            {% set splaceni_typ_symbol = "Kč" %}
            {% set splaceni_typ_description = zakladni_kapital_notes[0].splaceni_hodnota %}
        {% elif zakladni_kapital_notes[0].splaceni_typ == "PROCENTA" %}
            {% set splaceni_typ_symbol = "%" %}
            {% set splaceni_typ_description = zakladni_kapital_notes[0].splaceni_hodnota %}
        {% elif zakladni_kapital_notes[0].splaceni_typ == "EURA" %}
            {% set splaceni_typ_symbol = "euro" %}
            {% set splaceni_typ_description = zakladni_kapital_notes[0].splaceni_hodnota %}
        {% else %}
            {% set splaceni_typ_symbol = "" %}
            {% set splaceni_typ_description = zakladni_kapital_notes[0].splaceni_hodnota %}
        {% endif %}  

        <td>Základní kapitál:</td>
        <td>{{ underlne_style_open|safe }} {{ vklad_typ_description }} {{ vklad_typ_symbol }} {% if splaceni_typ_description != "0" %} <br> Splaceno: {{ splaceni_typ_description }} {{ splaceni_typ_symbol }} {% endif %}  {{ underlne_style_close|safe }}</td>
    </tr>
    {% endif %}
    <!-- END Display registered capital -->

    <!-- Display area of business -->
    {% if predmety_podnikani_notes|length > 0 %}
    {% for i in range (predmety_podnikani_notes|length) %}
    <tr>
        <td>{% if i == 0%}Předmět podnikání:{% endif %}</td>
        <td>{{ predmety_podnikani_notes[i] }}</td>
    </tr>    
    {% endfor %}
    {% endif %}
    <!-- END Display area of business -->

    <!-- Display areas of activities -->
    {% if predmety_cinnosti_notes|length > 0 %}
    {% for i in range (predmety_cinnosti_notes|length) %}
    <tr>
        <td>{% if i == 0%}Předmět činnosti:{% endif %}</td>
        <td>{{ predmety_cinnosti_notes[i] }}</td>
    </tr>    
    {% endfor %}
    {% endif %}
    <!-- END Display areas of activities -->

    <!-- Display statutory bodies -->
    <!-- END Display statutory bodies -->

    <!-- Display supervisory board-->
    <!-- END Display supervisory board-->

    <!-- Display prokurist -->
    {% if prokurist_notes|length > 0 %}
    {% for i in range (prokurist_notes|length) %}
    <tr>
        <td>{% if i == 0%}Prokura:{% endif %}</td>
        <td>{{ prokurist_notes[i].jmeno.jmeno }} {{ prokurist_notes[i].jmeno.prijmeni }}{% if prokurist_notes[i].jmeno.datum_naroz != "" %}, nar. {{ prokurist_notes[i].jmeno.datum_naroz }}{% endif %}<br> 
            {{ prokurist_notes[i].adresa.adresa_text }}{% if prokurist_notes[i].text_prokurista != "0" %}<br>{{ prokurist_notes[i].text_prokurista }}{% endif %}</td>
    </tr>    
    {% endfor %}
    {% if prokurist_common_text_notes|length > 0 %}
    <tr>
        {% for i in range (prokurist_common_text_notes|length) %}
        <td></td>
        <td>{{ prokurist_common_text_notes[i].prokura_text }}</td>
        {% endfor %}
    </tr>    
    {% endif %}
    {% endif %}
    <!-- END Display prokurist -->

    <!-- Display sole shareholder -->
    {% if sole_shareholder_notes|length > 0 %}
        {% for i in range (sole_shareholder_notes|length) %}
        <tr>
            <td>{% if i == 0%}Jediný akcionář:{% endif %}</td>
            <td>{% if sole_shareholder_notes[i].akcionar_po_id == None %} {{ sole_shareholder_notes[i].jmeno.jmeno }} {{ sole_shareholder_notes[i].jmeno.prijmeni }}{% if sole_shareholder_notes[i].jmeno.datum_naroz != "" %}, nar. {{ sole_shareholder_notes[i].jmeno.datum_naroz }}{% endif %} {% endif %}   
                {% if sole_shareholder_notes[i].akcionar_fo_id == None %} {{ sole_shareholder_notes[i].oznaceni_po.nazev }}{% if sole_shareholder_notes[i].oznaceni_po.reg_cislo != 0 %}, reg č. {{ sole_shareholder_notes[i].oznaceni_po.reg_cislo }}{% endif %}{% if sole_shareholder_notes[i].oznaceni_po.ico != 0 %}, IČ {{ sole_shareholder_notes[i].oznaceni_po.ico }}{% endif %} {% endif %} 
                <br>{{sole_shareholder_notes[i].adresa.adresa_text}}</td>
        </tr>   
        {% endfor %}
    {% endif %}
    <!-- END Display sole shareholder -->

    <!-- Display shareholders -->
    <!-- END Display shareholders -->

    <!-- Display shares -->
    {% if shares_notes|length > 0 %}
        {% for i in range (shares_notes|length) %}
        <tr>
            <td>{% if i == 0%}Akcie:{% endif %}</td>
            {% if shares_notes[i].akcie_podoba == "LISTINNA" %}
                {% set akcie_podoba_description = "v listinné podobě" %}
            {% elif shares_notes[i].akcie_podoba == "ZAKNIHOVANA" %}
                {% set akcie_podoba_description = "v zaknihované podobě" %}
            {% elif shares_notes[i].akcie_podoba == "IMOBILIZOVANA" %}
                {% set akcie_podoba_description = "v imobilizované podobě" %}            
            {% else %}
                {% set akcie_podoba_description = "" %}    
            {% endif %}
            
            {% if shares_notes[i].akcie_typ == "KMENOVE_NA_JMENO" %}
                {% set akcie_typ_description = "kmenové akcie na jméno" %}
            {% elif shares_notes[i].akcie_typ == "KMENOVE_NA_MAJITELE" %}
                {% set akcie_typ_description = "kmenové akcie na majitele" %}
            {% elif shares_notes[i].akcie_typ == "KUSOVE_NA_JMENO" %}
                {% set akcie_typ_description = "kusové akcie" %}
            {% elif shares_notes[i].akcie_typ == "NA_JMENO" %}
                {% set akcie_typ_description = "akcie na jméno" %}
            {% elif shares_notes[i].akcie_typ == "NA_MAJITELE" %}
                {% set akcie_typ_description = "akcie na majitele" %}
            {% elif shares_notes[i].akcie_typ == "PRIORITNI_NA_JMENO" %}
                {% set akcie_typ_description = "prioritní akcie na jméno" %}                   
            {% elif shares_notes[i].akcie_typ == "ZAMESTNANECKE_NA_JMENO" %}
                {% set akcie_typ_description = "zaměstnanecké akcie na jméno" %}
            {% elif shares_notes[i].akcie_typ == "ZVLASTNI_PRAVA" %}
                {% set akcie_typ_description = "akcie se zvláštními právy" %}
            {% else %}
                {% set akcie_typ_description = "" %}    
            {% endif %}  

            {% if shares_notes[i].akcie_hodnota_typ == "KORUNY" %}
                {% set akcie_hodnota_typ_symbol = "Kč" %}
            {% elif shares_notes[i].akcie_hodnota_typ == "EURA" %}
                {% set akcie_hodnota_typ_symbol = "euro" %}  
            {% else %}
                {% set akcie_hodnota_typ_symbol = "" %}
            {% endif %}
            <td>{{ shares_notes[i].akcie_pocet }} ks {{ akcie_typ_description }} {{ akcie_podoba_description }}  ve jmenovité hodnotě {{ shares_notes[i].akcie_hodnota_value }} {{ akcie_hodnota_typ_symbol }} {% if shares_notes[i].akcie_text != "0"  %} <br> {{ shares_notes[i].akcie_text }} {% endif %}</td>
        </tr>   
        {% endfor %}
    {% endif %}
    <!-- END Display shares -->

    <!-- Insolvency Events -->
    {% if insolvency_notes|length > 0 %}    
        {% for i in range (insolvency_notes|length) %}
        <tr>
            <td>{% if i == 0%}Údaje o insolvencích:{% endif %}</td>
            <td>{{ insolvency_notes[i] }}</td>
        </tr>            
        {% endfor %}
    {% endif %}
    <!-- END Insolvency Events -->

    <!-- Konkurz Events -->
    {% if konkurz_notes|length > 0 %}
        {% for i in range (konkurz_notes|length) %}
        <tr>
            <td>{% if i == 0%}Údaje o konkurzech:{% endif %}</td>
            <td>{{ konkurz_notes[i] }}</td>
        </tr>            
        {% endfor %}
    {% endif %}
    <!-- END Konkurz Events -->

    <!-- Ostatni skutecnosti -->
    {% if ostatni_skutecnosti_notes|length > 0 %}   
        {% for i in range (ostatni_skutecnosti_notes|length) %}
        <tr>
            <td>{% if i == 0%}Ostatní skutečnosti:{% endif %}</td>
            <td>{{ ostatni_skutecnosti_notes[i].ostatni_skutecnost }}</td>
        </tr>            
        {% endfor %}
    {% endif %}
    <!-- END Ostatni skutecnosti -->

</table>
    
{% endfor %}

{% include 'footer.html' %}