Compare commits
No commits in common. "63775189dab5d2eef003ecd5c26f09a62d6b9276" and "2fc09554f0e2dbabf1404ae39cc2f50e31898a8b" have entirely different histories.
63775189da
...
2fc09554f0
32 changed files with 34 additions and 235 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Matériels archivés" current="module_equipment"}}
|
{{:admin_header title="Matériels archivés" current="module_equipment"}}
|
||||||
{{:include file="_nav.html" current="archives"}}
|
{{:include file="_nav.html" current="archives"}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
{{* barre de navigation *}}
|
||||||
|
{{if ! $dialog}}
|
||||||
|
{{:include file="../_nav.html" current="config" subcurrent="categories"}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{* Traiter l'envoi du formulaire *}}
|
{{* Traiter l'envoi du formulaire *}}
|
||||||
{{#form on="save"}}
|
{{#form on="save"}}
|
||||||
|
|
@ -22,11 +25,6 @@
|
||||||
{{/form}}
|
{{/form}}
|
||||||
|
|
||||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{:include file="../_nav.html" current="config" subcurrent="categories"}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
|
|
||||||
{{* formulaire d'ajout de catégorie *}}
|
{{* formulaire d'ajout de catégorie *}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{#load key=$_GET.key assign="category"}}
|
{{#load key=$_GET.key assign="category"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:error message="Catégorie introuvable"}}
|
{{:error message="Catégorie introuvable"}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Configuration" current="module_equipment"}}
|
{{:admin_header title="Configuration" current="module_equipment"}}
|
||||||
|
|
||||||
{{* barre de navigation *}}
|
{{* barre de navigation *}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{#load key=$_GET.key assign="category"}}
|
{{#load key=$_GET.key assign="category"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:error message="Catégorie introuvable"}}
|
{{:error message="Catégorie introuvable"}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Configuration" current="module_equipment"}}
|
{{:admin_header title="Configuration" current="module_equipment"}}
|
||||||
|
|
||||||
{{* barre de navigation *}}
|
{{* barre de navigation *}}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
paramètres :
|
paramètres :
|
||||||
- dir : input ou output
|
- dir : input ou output
|
||||||
*}}
|
*}}
|
||||||
|
|
||||||
|
{{* barre de navigation *}}
|
||||||
|
{{if ! $dialog}}
|
||||||
|
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{* Traiter l'envoi du formulaire *}}
|
{{* Traiter l'envoi du formulaire *}}
|
||||||
|
|
||||||
{{* lecture config *}}
|
{{* lecture config *}}
|
||||||
|
|
@ -48,11 +51,6 @@
|
||||||
{{/form}}
|
{{/form}}
|
||||||
|
|
||||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
|
|
||||||
{{if $_GET.dir == 'input'}}
|
{{if $_GET.dir == 'input'}}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,15 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
paramètres :
|
paramètres :
|
||||||
- dir : input ou output
|
- dir : input ou output
|
||||||
- op_key : clé du type de mouvement à supprimer
|
- op_key : clé du type de mouvement à supprimer
|
||||||
*}}
|
*}}
|
||||||
|
|
||||||
|
{{* barre de navigation *}}
|
||||||
|
{{if ! $dialog}}
|
||||||
|
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{* lecture config (défaut ou enregistrée) *}}
|
{{* lecture config (défaut ou enregistrée) *}}
|
||||||
{{:include file="../_get_config.html" keep="config, directions"}}
|
{{:include file="../_get_config.html" keep="config, directions"}}
|
||||||
|
|
@ -35,10 +37,6 @@
|
||||||
{{/form}}
|
{{/form}}
|
||||||
|
|
||||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
|
||||||
{{/if}}
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
|
|
||||||
{{:assign var="mvt_label" from="config.%s_nature.%s.label"|args:$_GET.dir:$_GET.op_key}}
|
{{:assign var="mvt_label" from="config.%s_nature.%s.label"|args:$_GET.dir:$_GET.op_key}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Configuration" current="module_equipment"}}
|
{{:admin_header title="Configuration" current="module_equipment"}}
|
||||||
|
|
||||||
{{#form on="save"}}
|
{{#form on="save"}}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,16 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
paramètres :
|
paramètres :
|
||||||
- dir : input ou output
|
- dir : input ou output
|
||||||
- op_key : clé du type de mouvement dont on veut modifier le libellé
|
- op_key : clé du type de mouvement dont on veut modifier le libellé
|
||||||
*}}
|
*}}
|
||||||
|
|
||||||
|
{{* barre de navigation *}}
|
||||||
|
{{if ! $dialog}}
|
||||||
|
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{* lecture config (défaut ou enregistrée) *}}
|
{{* lecture config (défaut ou enregistrée) *}}
|
||||||
{{:include file="../_get_config.html" keep="config, directions"}}
|
{{:include file="../_get_config.html" keep="config, directions"}}
|
||||||
|
|
||||||
|
|
@ -40,12 +43,7 @@
|
||||||
{{/form}}
|
{{/form}}
|
||||||
|
|
||||||
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{:include file="../_nav.html" current="config" subcurrent="typesES"}}
|
|
||||||
{{/if}}
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
|
|
||||||
{{:assign var="default_label" from="config.%s_nature.%s.label"|args:$_GET.dir:$_GET.op_key}}
|
{{:assign var="default_label" from="config.%s_nature.%s.label"|args:$_GET.dir:$_GET.op_key}}
|
||||||
<form method="post" action="" data-focus="1">
|
<form method="post" action="" data-focus="1">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Afficher l'historique des mouvements d'un matériel
|
Afficher l'historique des mouvements d'un matériel
|
||||||
paramètres
|
paramètres
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Afficher l'historique de tous les mouvements
|
Afficher l'historique de tous les mouvements
|
||||||
*}}
|
*}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Gestion des matériels" custom_css="./style.css" current="module_equipment"}}
|
{{:admin_header title="Gestion des matériels" custom_css="./style.css" current="module_equipment"}}
|
||||||
|
|
||||||
{{* barre de navigation *}}
|
{{* barre de navigation *}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Matériels hors de l'asso" custom_css="../style.css" current="module_equipment"}}
|
{{:admin_header title="Matériels hors de l'asso" custom_css="../style.css" current="module_equipment"}}
|
||||||
{{:include file="./_nav.html" current="historique" subcurrent="prêts"}}
|
{{:include file="./_nav.html" current="historique" subcurrent="prêts"}}
|
||||||
|
|
||||||
|
|
@ -108,11 +106,11 @@
|
||||||
{{if $nb_jours < -1}}{{:assign jour="jours"}}{{/if}}
|
{{if $nb_jours < -1}}{{:assign jour="jours"}}{{/if}}
|
||||||
{{"Reste %s %s"|args:$delai:$jour}}
|
{{"Reste %s %s"|args:$delai:$jour}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{:tag color="darkgreen" label="À rendre aujourd'hui"}}
|
{{:tag color="darkgreen" label="À rendre aujourdh'ui"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
<td class="actions">
|
<td>
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
label="Retour"
|
label="Retour"
|
||||||
href="movements/output_return.html?key=%s&prop=1"|args:$mvt_key
|
href="movements/output_return.html?key=%s&prop=1"|args:$mvt_key
|
||||||
|
|
|
||||||
|
|
@ -1,126 +0,0 @@
|
||||||
{{* -*- brindille -*- *}}
|
|
||||||
|
|
||||||
{{*
|
|
||||||
Afficher l'historique des mouvements d'un matériel pour un membre
|
|
||||||
paramètres
|
|
||||||
- key : clé du matériel
|
|
||||||
- id : id du membre
|
|
||||||
*}}
|
|
||||||
|
|
||||||
{{#restrict block=true section="users" level="read"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{:admin_header title="Historique membre" custom_css="./style.css" current="module_equipment"}}
|
|
||||||
|
|
||||||
{{* lecture config (défaut ou enregistrée) *}}
|
|
||||||
{{:include file="./_get_config.html" keep="config, directions"}}
|
|
||||||
|
|
||||||
{{#foreach from=$directions key="direction"}}
|
|
||||||
{{:assign var="nature" from="config.%s_nature"|args:$direction}}
|
|
||||||
{{#foreach from=$nature key=key}}
|
|
||||||
{{:assign var="types.%s.%s."|args:$direction:$type value=$key|quote_sql}}
|
|
||||||
{{/foreach}}
|
|
||||||
{{:assign var="io_types" from="types.%s"|args:$direction}}
|
|
||||||
{{#foreach from=$io_types key=key}}
|
|
||||||
{{:assign var=elem from="io_types.%s"|args:$key}}
|
|
||||||
{{:assign elem=$elem|implode:","}}
|
|
||||||
{{:assign elem="("|cat:$elem|cat:")"}}
|
|
||||||
{{:assign var="%s_types.%s"|args:$direction:$key value=$elem}}
|
|
||||||
{{/foreach}}
|
|
||||||
{{/foreach}}
|
|
||||||
|
|
||||||
{{#users id=$_GET.id}}
|
|
||||||
{{:assign user_name=$nom}}
|
|
||||||
{{else}}
|
|
||||||
{{:error message="Il n'existe aucun membre avec l'identifiant %s !"|args:$_GET.id}}
|
|
||||||
{{/users}}
|
|
||||||
|
|
||||||
{{#load key=$_GET.key|trim}}
|
|
||||||
{{:assign eqpmt_name=$name}}
|
|
||||||
{{else}}
|
|
||||||
{{:error message="Il n'existe aucun matériel avec la clé %s !"|args:$_GET.key|trim}}
|
|
||||||
{{/load}}
|
|
||||||
|
|
||||||
<h3>Historique des mouvements de « {{$eqpmt_name}} » du membre « {{$user_name}} »</h3>
|
|
||||||
|
|
||||||
{{:assign otk=null}}
|
|
||||||
{{#select
|
|
||||||
mvt.key AS mvt_key,
|
|
||||||
json_extract(mvt.document, '$.direction') as direction,
|
|
||||||
json_extract(mvt.document, '$.operation') as operation,
|
|
||||||
json_extract(mvt.document, '$.date') as date,
|
|
||||||
json_extract(mvt.document, '$.amount') as amount,
|
|
||||||
COALESCE((SELECT
|
|
||||||
json_extract(links.document, '$.temp_key')
|
|
||||||
FROM {!$module.table} AS links
|
|
||||||
WHERE json_extract(links.document, '$.temp_key') = mvt.key
|
|
||||||
OR json_extract(links.document, '$.return') = mvt.key), mvt.key)
|
|
||||||
AS out_temp_key
|
|
||||||
FROM {!$module.table} AS mvt
|
|
||||||
INNER JOIN users ON json_extract(mvt.document, '$.user') = users.id
|
|
||||||
INNER JOIN {!$module.table} AS eqpmt
|
|
||||||
ON json_extract(mvt.document, '$.equipment') = eqpmt.key
|
|
||||||
WHERE users.id = :user
|
|
||||||
AND eqpmt.key = :eqpmt_key
|
|
||||||
AND (json_extract(mvt.document, '$.operation') IN !output_types
|
|
||||||
OR json_extract(mvt.document, '$.operation') IN !input_types)
|
|
||||||
ORDER BY out_temp_key, date
|
|
||||||
;
|
|
||||||
:user = $_GET.id
|
|
||||||
:eqpmt_key = $_GET.key|trim
|
|
||||||
!output_types=$output_types.temporaire
|
|
||||||
!input_types=$input_types.retour
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{:assign var="type_mvt" from="config.%s_nature.%s.type"|args:$direction:$operation}}
|
|
||||||
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$direction:$operation}}
|
|
||||||
{{:assign var="total" from="reste.%s"|args:$out_temp_key}}
|
|
||||||
{{if $total == null}}
|
|
||||||
{{:assign total=0}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $otk != null && $otk != $out_temp_key}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{{/if}}
|
|
||||||
{{if $otk == null || $otk != $out_temp_key}}
|
|
||||||
<table class="list">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<td>Date</td>
|
|
||||||
<td>Opération</td>
|
|
||||||
<td>Quantité</td>
|
|
||||||
<td>Total</td>
|
|
||||||
<td class="actions"></td>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{{:assign otk=$out_temp_key}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $direction == 'input' && $type_mvt == 'retour'}}
|
|
||||||
{{:assign var="reste.%s"|args:$out_temp_key value="%d-%d"|math:$total:$amount}}
|
|
||||||
{{elseif $direction == 'output' && $type_mvt == 'temporaire'}}
|
|
||||||
{{:assign var="reste.%s"|args:$out_temp_key value="%d+%d"|math:$total:$amount}}
|
|
||||||
{{/if}}
|
|
||||||
{{:assign var="total" from="reste.%s"|args:$out_temp_key}}
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td>{{$date|date_short}}</td>
|
|
||||||
<td>{{$op_label}}</td>
|
|
||||||
<td>{{$amount}}</td>
|
|
||||||
<td>{{$total}}</td>
|
|
||||||
<td class="actions">
|
|
||||||
{{#restrict section="accounting" level="write"}}
|
|
||||||
{{if $direction == "output" && $type_mvt == "temporaire"}}
|
|
||||||
{{:linkbutton
|
|
||||||
label="Retour"
|
|
||||||
href="%smovements/output_return.html?key=%s&prop=0&user=%s"|args:$module.url:$mvt_key:$_GET.id
|
|
||||||
shape="history"
|
|
||||||
target="_dialog"}}
|
|
||||||
{{/if}}
|
|
||||||
{{/restrict}}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{{/select}}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Paramètres :
|
Paramètres :
|
||||||
- key : clé du matériel à modifier
|
- key : clé du matériel à modifier
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,5 @@ author="Jean-Christophe Engel"
|
||||||
author_url="https://gitea.zaclys.com/lesanges"
|
author_url="https://gitea.zaclys.com/lesanges"
|
||||||
home_button=true
|
home_button=true
|
||||||
menu=true
|
menu=true
|
||||||
restrict_section="users"
|
restrict_section="accounting"
|
||||||
restrict_level="read"
|
restrict_level="write"
|
||||||
restrict_details="... mais uniquement pour consulter l'historique des prêts des membres ; seuls les membres ayant accès en écriture à la comptabilité pourront utiliser l'ensemble des fonctionalités du module."
|
|
||||||
allow_user_restrict=false
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
{{* barre de navigation *}}
|
||||||
|
{{if ! $dialog}}
|
||||||
|
{{:include file="../_nav.html" current="entrees"}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{* récupérer la config des entrées/sorties *}}
|
{{* récupérer la config des entrées/sorties *}}
|
||||||
{{:include file="../_get_config.html" keep="config"}}
|
{{:include file="../_get_config.html" keep="config"}}
|
||||||
|
|
@ -117,10 +120,6 @@
|
||||||
{{/form}}
|
{{/form}}
|
||||||
|
|
||||||
{{:admin_header title="Entrée de matériel" current="module_equipment"}}
|
{{:admin_header title="Entrée de matériel" current="module_equipment"}}
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{:include file="../_nav.html" current="entrees"}}
|
|
||||||
{{/if}}
|
|
||||||
{{:form_errors}}
|
{{:form_errors}}
|
||||||
|
|
||||||
{{if $categories != null}}
|
{{if $categories != null}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Dupliquer un mouvement
|
Dupliquer un mouvement
|
||||||
paramètres :
|
paramètres :
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*-}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
paramètres GET :
|
paramètres GET :
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Enregistrer une entrée de matériel
|
Enregistrer une entrée de matériel
|
||||||
paramètres :
|
paramètres :
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Enregistrer un retour d'entrée temporaire
|
Enregistrer un retour d'entrée temporaire
|
||||||
paramètres :
|
paramètres :
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Modifier un mouvement
|
Modifier un mouvement
|
||||||
paramètres :
|
paramètres :
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Afficher les détails d'un mouvement et donner la possibilité :
|
Afficher les détails d'un mouvement et donner la possibilité :
|
||||||
- d'associer des fichiers
|
- d'associer des fichiers
|
||||||
|
|
@ -65,9 +63,9 @@
|
||||||
<dt>Opération</dt>
|
<dt>Opération</dt>
|
||||||
<dd>{{$op_label}}</dd>
|
<dd>{{$op_label}}</dd>
|
||||||
<dt>Matériel</dt>
|
<dt>Matériel</dt>
|
||||||
<dd>{{:link href="../equipment_history.html?key=%s&prop=%s"|args:$equipment.key:$_GET.prop label=$equipment.name}}</dd>
|
<dd>{{$equipment.name}}</dd>
|
||||||
<dt>Catégorie</dt>
|
<dt>Catégorie</dt>
|
||||||
<dd>{{:link href="../index.html?cat_key=%s&prop=1"|args:$category.key label=$category.name}}</dd>
|
<dd>{{$category.name}}</dd>
|
||||||
<dt>Date</dt>
|
<dt>Date</dt>
|
||||||
<dd>{{$mvt.date|date_short}}</dd>
|
<dd>{{$mvt.date|date_short}}</dd>
|
||||||
<dt>Quantité</dt>
|
<dt>Quantité</dt>
|
||||||
|
|
@ -76,7 +74,7 @@
|
||||||
<dt>Membre destinataire</dt>
|
<dt>Membre destinataire</dt>
|
||||||
<dd>
|
<dd>
|
||||||
{{if $mvt.user != null}}
|
{{if $mvt.user != null}}
|
||||||
{{:link href="/admin/users/details.php?id=%s"|args:$mvt.user label=$user_name}}
|
{{$user_name}}
|
||||||
{{else}}—
|
{{else}}—
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</dd>
|
</dd>
|
||||||
|
|
@ -97,21 +95,16 @@
|
||||||
{{else}}—
|
{{else}}—
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</dd>
|
</dd>
|
||||||
{{if $mvt.direction == "output" && $type_mvt != "retour"}}
|
|
||||||
<dt>Date de retour</dt>
|
|
||||||
<dd>
|
|
||||||
{{if $mvt.return_date != null}}
|
|
||||||
{{$mvt.return_date|date_short}}
|
|
||||||
{{else}}—
|
|
||||||
{{/if}}
|
|
||||||
</dd>
|
|
||||||
{{/if}}
|
|
||||||
<dt>Remarques</dt>
|
<dt>Remarques</dt>
|
||||||
<dd>{{if $mvt.comment != null}}
|
<dd>{{if $mvt.comment != null}}
|
||||||
{{$mvt.comment}}
|
{{$mvt.comment}}
|
||||||
{{else}}—
|
{{else}}—
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</dd>
|
</dd>
|
||||||
|
{{if $mvt.return_date != null}}
|
||||||
|
<dt>Date de retour</dt>
|
||||||
|
<dd>{{$mvt.return_date|date_short}}</dd>
|
||||||
|
{{/if}}
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<form method="post" action="">
|
<form method="post" action="">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
paramètres :
|
paramètres :
|
||||||
- key : clé du matériel à sortir
|
- key : clé du matériel à sortir
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Enregistrer un retour de sortie temporaire
|
Enregistrer un retour de sortie temporaire
|
||||||
paramètres :
|
paramètres :
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,6 @@
|
||||||
{{:assign nb_jours=0}}
|
{{:assign nb_jours=0}}
|
||||||
{{:assign old_eqpmt_key=$eqpmt_key}}
|
{{:assign old_eqpmt_key=$eqpmt_key}}
|
||||||
{{:assign var="ligne.date" value=$date}}
|
{{:assign var="ligne.date" value=$date}}
|
||||||
{{:assign var="ligne.eqpmt_key" value=$eqpmt_key}}
|
|
||||||
{{:assign var="ligne.materiel" value=$eqpmt_name}}
|
{{:assign var="ligne.materiel" value=$eqpmt_name}}
|
||||||
{{:assign var="ligne.return_date" value=$return_date}}
|
{{:assign var="ligne.return_date" value=$return_date}}
|
||||||
{{:assign var="ligne.retard" value="0"}}
|
{{:assign var="ligne.retard" value="0"}}
|
||||||
|
|
@ -89,7 +88,6 @@
|
||||||
{{:assign nb_jours=0}}
|
{{:assign nb_jours=0}}
|
||||||
{{:assign old_eqpmt_key=$eqpmt_key}}
|
{{:assign old_eqpmt_key=$eqpmt_key}}
|
||||||
{{:assign var="ligne.date" value=$date}}
|
{{:assign var="ligne.date" value=$date}}
|
||||||
{{:assign var="ligne.eqpmt_key" value=$eqpmt_key}}
|
|
||||||
{{:assign var="ligne.materiel" value=$eqpmt_name}}
|
{{:assign var="ligne.materiel" value=$eqpmt_name}}
|
||||||
{{:assign var="ligne.return_date" value=$return_date}}
|
{{:assign var="ligne.return_date" value=$return_date}}
|
||||||
{{:assign var="ligne.retard" value="0"}}
|
{{:assign var="ligne.retard" value="0"}}
|
||||||
|
|
@ -122,7 +120,6 @@
|
||||||
<th>Quantité</th>
|
<th>Quantité</th>
|
||||||
<th>Date de retour</th>
|
<th>Date de retour</th>
|
||||||
<th>Remarque</th>
|
<th>Remarque</th>
|
||||||
<th class="actions">
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -142,14 +139,6 @@
|
||||||
{{:tag color="darkgreen" label="À rendre aujourdh'ui"}}
|
{{:tag color="darkgreen" label="À rendre aujourdh'ui"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</td>
|
</td>
|
||||||
<td class="actions">
|
|
||||||
{{:linkbutton
|
|
||||||
label="Historique"
|
|
||||||
href="%smember_history.html?key=%s&id=%s"|args:$module.url:$eqpmt_key:$user.id
|
|
||||||
shape="table"
|
|
||||||
target="_dialog"
|
|
||||||
}}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{* Traiter l'envoi du formulaire *}}
|
{{* Traiter l'envoi du formulaire *}}
|
||||||
{{#form on="save"}}
|
{{#form on="save"}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
paramètres :
|
paramètres :
|
||||||
- key : clé du stockage à supprimer
|
- key : clé du stockage à supprimer
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Afficher les lieux de stockage
|
Afficher les lieux de stockage
|
||||||
*}}
|
*}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{* récupérer les infos du lieu de stockage *}}
|
{{* récupérer les infos du lieu de stockage *}}
|
||||||
{{#load key=$_GET.key assign="storage"}}
|
{{#load key=$_GET.key assign="storage"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
{{* -*- brindille -*- *}}
|
{{* -*- brindille -*- *}}
|
||||||
|
|
||||||
{{#restrict block=true section="accounting" level="write"}}{{/restrict}}
|
|
||||||
|
|
||||||
{{*
|
{{*
|
||||||
Remettre le matériel en service
|
Remettre le matériel en service
|
||||||
Paramètres :
|
Paramètres :
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue