Vérification existence table module

This commit is contained in:
Jean-Christophe Engel 2026-04-01 11:03:11 +02:00
parent 6ac081a7fd
commit 0b41a5f9c7
3 changed files with 32 additions and 10 deletions

View file

@ -29,6 +29,14 @@
</thead>
<tbody>
{{* vérifier l'existence de la table du module *}}
{{#load limit="1"}}
{{:assign table_presente=true}}
{{else}}
{{:assign table_presente=false}}
{{/load}}
{{if $table_presente}}
{{* lister les immobilisations *}}
{{:assign account_condition="("}}
{{#foreach from=$module.config.prefixes item="code"}}
@ -199,8 +207,8 @@
label="Paramètres"
href="add_infos.html?immo_line_id=%s&type_immo=%s"|args:$immo_line_id:$type_immo
shape="settings"
target="_dialog"
}}
{{* target="_dialog"*}}
{{/if}}
{{:linkbutton
label="Amortissements"
@ -242,8 +250,9 @@
</tr>
{{/if}}
</tfoot>
{{/if}}
</table>
{{if $nb_immo == 0}}
{{if $nb_immo == 0 || ! $table_presente}}
<p class="block alert">Aucune immobilisation</p>
{{/if}}
</section>