Suppression documents sans écriture associée

This commit is contained in:
Jean-Christophe Engel 2024-12-17 15:38:23 +01:00
parent b17a14526e
commit 0e2625e9a2

View File

@ -15,6 +15,20 @@
<p class="block error">Échec enregistrement immobilisation</p>
{{/if}}
{{* supprimer les documents sans écriture associée *}}
{{#load type="immo"}}
{{#select
line.id as line_id
FROM acc_transactions_lines as line
INNER JOIN acc_transactions AS trans on line.id_transaction = trans.id
WHERE line.id = :line_id;
:line_id = $line
}}
{{else}}
{{:delete key=$key}}
{{/select}}
{{/load}}
{{* lister les immobilisations *}}
<section class="immobilisation">
<h2 class="ruler">Liste des immobilisations</h2>
@ -78,7 +92,7 @@
<td class="actions">
{{if $duration == null}}
{{:linkbutton
label="Ajouter durée"
label="Ajouter infos"
href="add_duration.html?immo_id=%s"|args:$immo_id
shape="help"
target="_dialog"