diff --git a/_unfinished.html b/_unfinished.html index a977b3a..33eadde 100644 --- a/_unfinished.html +++ b/_unfinished.html @@ -29,37 +29,6 @@ {{:assign checked="checked"}} {{/if}} -
-
- Transférer une ou plusieurs lignes vers une immobilisation amortissable -

- Cocher les lignes concernées -

-
- Montants sélectionnés - - - - - -
-
-
-

- {{:linkbutton - label="Transférer" - href="transfer.html?trans=" - shape="right" - id="transfer" - }} -

-
-
-
- {{:input type="checkbox" value=1 name="unhide" checked="%s"|args:$checked label="Afficher toutes les écritures" }} -
-
- {{* lister les immobilisations en cours de constitution *}} {{:assign first_code=null}} {{:assign accounts_condition="("}} @@ -86,6 +55,7 @@ {{:assign filter_condition=$filter_condition|cat:"0)"}} {{:assign condition=$condition|cat:" AND "|cat:$filter_condition}} +{{:assign nb_ignored=0}} {{#select trans.id as trans_id, trans.label as trans_label, @@ -107,11 +77,14 @@ assign="immo_line" }} {{* voir si l'écriture a été marquée ignorée *}} - {{:assign ignore=false}} + {{:assign var="immo_line.ignore" value=false}} {{#load type="immo" assign="info_immo" where="$$.line = :line_id AND $$.status = 'ignored'" :line_id=$immo_line_id|intval}} - {{:assign ignore=true}} + {{:assign var="immo_line.ignore" value=true}} {{/load}} - {{if $ignore && $unhide == null}} + {{if $immo_line.ignore}} + {{:assign nb_ignored="%d + 1"|math:$nb_ignored}} + {{/if}} + {{if $immo_line.ignore && $unhide == null}} {{:continue}} {{/if}} @@ -142,6 +115,41 @@ {{:assign var="immo_lines." value=$immo_line}} {{/select}} +
+ {{if $immo_lines|count > 0}} +
+ Transférer une ou plusieurs lignes vers une immobilisation amortissable +

+ Cocher les lignes concernées +

+
+ Montants sélectionnés + + + + + +
+
+
+

+ {{:linkbutton + label="Transférer" + href="transfer.html?trans=" + shape="right" + id="transfer" + }} +

+
+
+ {{/if}} + {{if $nb_ignored !== 0}} +
+ {{:input type="checkbox" value=1 name="unhide" checked="%s"|args:$checked label="Afficher les écritures ignorées" }} +
+ {{/if}} +
+ {{if $immo_lines|count > 0}}