Gestion ajout matériel non répertorié

This commit is contained in:
Jean-Christophe Engel 2023-10-16 12:02:05 +02:00
parent 41dad67b1b
commit dd25ba702f
2 changed files with 51 additions and 29 deletions

View file

@ -13,31 +13,31 @@
},
"inputNature": {
"description": "Nature de l'entrée",
"type": "string",
"type": ["null", "string"],
"enum": ["Achat", "Don", "Récupération", "Location / Prêt"]
},
"outputNature": {
"description": "Nature de la sortie",
"type": "string",
"type": ["null", "string"],
"enum": ["Vente", "Don", "Besoin", "Autre (perte, vol, ...)", "Location / Prêt"]
},
"amount": {
"description": "Quantité ajoutée ou retirée",
"type": "integer",
"minimum": 1
}
},
"equipment": {
"type": "string"
}
},
"date" : {
"description": "Date de l'opération",
"type": "string",
"format": "datetime"
}
"format": "date"
},
"comment": {
"description": "Commentaire additionnel",
"type": "string"
"type": ["null", "string"]
}
},
"required": ["type", "direction", "inputNature", "outputNature", "amount", "equipment", "date", "comment"]
"required": ["type", "direction", "amount", "equipment", "date", "comment"]
}