From 1600c53b969aad062d2ac9a950c3569b03bf5a82 Mon Sep 17 00:00:00 2001
From: "m.escher" <m.escher@mescher-nb.aditosoftware.local>
Date: Wed, 5 Sep 2018 15:37:26 +0200
Subject: [PATCH] add mandatory flags in History and Pers

---
 entity/History_entity/History_entity.aod | 4 ++++
 entity/Pers_entity/Pers_entity.aod       | 2 ++
 2 files changed, 6 insertions(+)

diff --git a/entity/History_entity/History_entity.aod b/entity/History_entity/History_entity.aod
index 0f4a1eac1c..d3750669e8 100644
--- a/entity/History_entity/History_entity.aod
+++ b/entity/History_entity/History_entity.aod
@@ -27,6 +27,7 @@
       <caption>Entrydate</caption>
       <contentType>DATE</contentType>
       <resolution>DAY</resolution>
+      <mandatory v="true" />
     </entityField>
     <entityField>
       <name>HISTORYID</name>
@@ -39,12 +40,14 @@
       <columnName>INFO</columnName>
       <caption>Description</caption>
       <contentType>HTML</contentType>
+      <mandatory v="false" />
     </entityField>
     <entityField>
       <name>MEDIUM</name>
       <tableName>HISTORY</tableName>
       <columnName>MEDIUM</columnName>
       <caption>Medium</caption>
+      <mandatory v="false" />
       <possibleItemsProcess>%aditoprj%/entity/History_entity/entityfields/medium/possibleItemsProcess.js</possibleItemsProcess>
     </entityField>
     <entityField>
@@ -52,6 +55,7 @@
       <tableName>HISTORY</tableName>
       <columnName>SUBJECT</columnName>
       <caption>Subject</caption>
+      <mandatory v="true" />
     </entityField>
     <entityIncomingField>
       <name>OrgHistory_dfi</name>
diff --git a/entity/Pers_entity/Pers_entity.aod b/entity/Pers_entity/Pers_entity.aod
index d311f498d6..651f045ef3 100644
--- a/entity/Pers_entity/Pers_entity.aod
+++ b/entity/Pers_entity/Pers_entity.aod
@@ -55,6 +55,7 @@
       <tableName>PERS</tableName>
       <columnName>LASTNAME</columnName>
       <caption>Lastname</caption>
+      <mandatory v="true" />
     </entityField>
     <entityField>
       <name>MIDDLENAME</name>
@@ -200,6 +201,7 @@
     <entityField>
       <name>ORGNAME</name>
       <caption>Company</caption>
+      <mandatory v="true" />
       <valueProcess>%aditoprj%/entity/Pers_entity/entityfields/orgname/valueProcess.js</valueProcess>
     </entityField>
     <entityOutgoingField>
-- 
GitLab