{{if $current != "archives"}}
{{if $direction == "output" && $type_mvt == "temporaire"}}
@@ -215,7 +217,6 @@
{{if $temp_ext != null && $temp_ext > 0}}
{{:linkbutton
label="Retour"
- title="Enregistrer un retour de sortie temporaire"
href="movements/output_return.html?key=%s&prop=%s"|args:$key:$_GET.prop
shape="reset"
target="_dialog"}}
@@ -231,7 +232,9 @@
{{/if}}
{{/list}}
-
+ {{if $dispo_final === 0}}
+ Il n'y a aucun matériel disponible, il n'est donc pas possible d'effectuer une sortie
+ {{/if}}
{{else}}
{{* calculer la quantité présente temporairement de chaque matériel *}}
{{#foreach from=$config.input_nature key=key}}
@@ -269,7 +272,9 @@
CASE WHEN $$.storage NOT NULL
THEN (SELECT $$.name FROM @TABLE as storage WHERE storage.key = @TABLE.$$.storage)
ELSE ''
- END as 'Stockage'
+ END as 'Stockage';
+ '' AS 'Documents';
+ $$.transactions AS 'Écritures'
"
equipment=$equipment_key
order=1
@@ -281,6 +286,12 @@
$direction === "output"&& $op_label|in:$output_types
}}
{{:assign var="stock" from="quantites.%s.nonproprio"|args:$id}}
+
+ {{:assign file_path="%s/%s/"|args:$module.storage_root:$key}}
+ {{:assign file_path=$file_path|cat:"%"}}
+ {{#select count(*) AS nb FROM files WHERE path LIKE :file_path ; :file_path=$file_path}}
+ {{:assign nb_files=$nb}}
+ {{/select}}