diff --git a/link.schema.json b/link.schema.json index 111d1bc..0160ff2 100644 --- a/link.schema.json +++ b/link.schema.json @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "description": "Schéma des liens entre documents", + "description": "Schéma des liens entre écritures", "type": "object", "properties": { "type": { @@ -23,7 +23,7 @@ "exclusiveMinimum": 0 }, "exit_line_id": { - "description": "ligne d'amortissement de sortie du bilan de l'immobilisation", + "description": "ligne de sortie du bilan de l'immobilisation", "type": "integer", "exclusiveMinimum": 0 }, @@ -35,6 +35,10 @@ "amount": { "description": "montant de la ligne d'amortissement ou de crédit", "type": ["number", "null"] + }, + "created" : { + "description" : "vrai si amortissement créé dans le module", + "type" : ["boolean", "null"] } }, "required": ["type", "immo_doc_id"], diff --git a/save_amort.html b/save_amort.html index a891138..0886c08 100644 --- a/save_amort.html +++ b/save_amort.html @@ -185,6 +185,7 @@ type="amort_link" immo_doc_id=$_GET.immo_doc_id|intval amort_line_id=$line.id + created=true }} {{:break}} {{/if}}