From 0012b5dcac4380947b7c7854154d0010abca405f Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Wed, 16 Aug 2017 07:57:14 +0000 Subject: [PATCH] _aanmaak velden in API2 consequent "created" noemen, doet SCIM ook svn path=/Website/trunk/; revision=34951 --- APPL/API2/model_fac_session.inc | 5 +++-- APPL/API2/model_fac_widget.inc | 3 ++- APPL/API2/model_fin_verkoopfactuur.inc | 2 +- APPL/API2/model_notes.inc | 2 +- APPL/API2/model_prs_perslid.inc | 6 ++++++ APPL/API2/model_reservations.inc | 4 ++-- 6 files changed, 15 insertions(+), 7 deletions(-) diff --git a/APPL/API2/model_fac_session.inc b/APPL/API2/model_fac_session.inc index 2e5e174d8a..8a41a4d7fd 100644 --- a/APPL/API2/model_fac_session.inc +++ b/APPL/API2/model_fac_session.inc @@ -47,10 +47,11 @@ model_fac_session = // Internal only "label": L("fac_session_data"), "typ": "varchar" }, - "creation": { + "created": { "dbs": "fac_session_aanmaak", "label": L("fac_session_aanmaak"), - "typ": "datetime" + "typ": "datetime", + "readonly": true }, "expire": { "dbs": "fac_session_expire", diff --git a/APPL/API2/model_fac_widget.inc b/APPL/API2/model_fac_widget.inc index 5a8f128b7e..ec5d9cd6fd 100644 --- a/APPL/API2/model_fac_widget.inc +++ b/APPL/API2/model_fac_widget.inc @@ -86,7 +86,8 @@ function model_fac_widget() "dbs": "fac_widget_aanmaak", "label": L("fac_widget_aanmaak"), "typ": "date", - "hidden_fld": true + "hidden_fld": true, + "readonly": true }, "authorization": { "dbs": "fac_functie_key", diff --git a/APPL/API2/model_fin_verkoopfactuur.inc b/APPL/API2/model_fin_verkoopfactuur.inc index 10e6206609..df2464c89d 100644 --- a/APPL/API2/model_fin_verkoopfactuur.inc +++ b/APPL/API2/model_fin_verkoopfactuur.inc @@ -36,7 +36,7 @@ function model_fin_verkoopfactuurregels() "filter": "exact", "seq": "fin_s_fin_verkoopfactuur_key" }, - "creation": { + "created": { "dbs": "fin_verkoopfactuur_aanmaak", "label": L("lcl_fin_verkoopfactuur_aanmaak"), "typ": "datetime", diff --git a/APPL/API2/model_notes.inc b/APPL/API2/model_notes.inc index 4221aafffc..169d51d2ba 100644 --- a/APPL/API2/model_notes.inc +++ b/APPL/API2/model_notes.inc @@ -115,7 +115,7 @@ function model_notes(module) { "id" : { dbs: tabel.id, typ: "key", seq: tabel.seq, filter: "exact" }, "author" : { dbs: "prs_perslid_key", typ: "key", foreign: "prs_perslid", filter: "exact" }, "description" : { dbs: tabel.naam + "_omschrijving", typ: "varchar", filter: "like" }, - "createdate" : { dbs: tabel.naam + "_aanmaak", typ: "datetime"}, + "created" : { dbs: tabel.naam + "_aanmaak", typ: "datetime", "readonly": true}, "parent" : { dbs: tabel.parent + "_key", typ: "key", filter: "exact" } }; diff --git a/APPL/API2/model_prs_perslid.inc b/APPL/API2/model_prs_perslid.inc index 9adda85e4b..c4fd49a70a 100644 --- a/APPL/API2/model_prs_perslid.inc +++ b/APPL/API2/model_prs_perslid.inc @@ -146,6 +146,12 @@ function model_prs_perslid(params) "label": L("lcl_prs_person_einddatum"), "typ": "date" }, + "created": { + "dbs": "prs_perslid_aanmaak", + "label": L("prs_perslid_aanmaak"), + "typ": "datetime", + "readonly": true + }, "function": { "dbs": "prs_srtperslid_key", "label": L("lcl_prs_person_function"), diff --git a/APPL/API2/model_reservations.inc b/APPL/API2/model_reservations.inc index 4f805f38e1..3a088f775e 100644 --- a/APPL/API2/model_reservations.inc +++ b/APPL/API2/model_reservations.inc @@ -318,8 +318,8 @@ function model_reservations(rsv_key, params) _validate_fields(dbfields, params, jsondata); // Eerst een nieuw res_reservering record aanmaken - var resfields = { "id": { dbs: "res_reservering_key", typ: "key", seq: "res_s_res_reservering_key" }, - "create": { dbs: "res_reservering_aanmaak", typ: "datetime", val: new Date() } + var resfields = { "id": { dbs: "res_reservering_key", typ: "key", seq: "res_s_res_reservering_key" }, + "created": { dbs: "res_reservering_aanmaak", typ: "datetime", val: new Date() } }; var resIns = buildInsert("res_reservering", resfields, { noValidateToken: true }); var reservering_key = resIns.sequences["res_reservering_key"];