Enregistrement quantités avec matériel
This commit is contained in:
parent
bea3a2f0e8
commit
c10ff02403
11 changed files with 291 additions and 201 deletions
|
|
@ -82,7 +82,23 @@
|
|||
{{/if}}
|
||||
</p>
|
||||
{{else}}
|
||||
{{* vérification réussie : enregistrer le mouvement modifié *}}
|
||||
{{* calculer la nouvelle quantité du matériel *}}
|
||||
{{:assign var="type_mvt" from="config.input_nature.%s.type"|args:$_POST.operation}}
|
||||
{{:assign var="equipment.out" value="%d-%d"|math:$equipment.out:$_POST.amount|intval}}
|
||||
|
||||
{{:save
|
||||
key=$equipment.key
|
||||
validate_schema="../../equipment.schema.json"
|
||||
type="equipment"
|
||||
category=$equipment.category
|
||||
name=$equipment.name
|
||||
status="available"
|
||||
stock=$equipment.stock
|
||||
out=$equipment.out
|
||||
notowned=$equipment.notowned
|
||||
}}
|
||||
|
||||
{{* enregistrer le mouvement modifié *}}
|
||||
{{:save
|
||||
key=""|uuid
|
||||
validate_schema="../movement.schema.json"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue