From dbbc2f90ced1bb59b92add61eac0d2bb9c537264 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Thu, 28 Mar 2019 13:29:03 +0100
Subject: [PATCH] OfferItem edit view

---
 neonContext/Offeritem/Offeritem.aod           |  5 ++
 .../OfferitemEdit_view/OfferitemEdit_view.aod | 51 +++++++++++++++++++
 .../OfferitemFilter_view.aod                  |  1 -
 3 files changed, 56 insertions(+), 1 deletion(-)
 create mode 100644 neonView/OfferitemEdit_view/OfferitemEdit_view.aod

diff --git a/neonContext/Offeritem/Offeritem.aod b/neonContext/Offeritem/Offeritem.aod
index b028ec42f1..6a8a4c7a18 100644
--- a/neonContext/Offeritem/Offeritem.aod
+++ b/neonContext/Offeritem/Offeritem.aod
@@ -4,6 +4,7 @@
   <title>Offeritem</title>
   <majorModelMode>DISTRIBUTED</majorModelMode>
   <filterview>OfferitemFilter_view</filterview>
+  <editview>OfferitemEdit_view</editview>
   <preview>OfferitemPreview_view</preview>
   <entity>Offeritem_entity</entity>
   <references>
@@ -19,5 +20,9 @@
       <name>440a19f2-4893-47b9-b10c-864540b6287f</name>
       <view>OfferitemMultiEdit_view</view>
     </neonViewReference>
+    <neonViewReference>
+      <name>9571eef4-1b84-4f4f-9109-7c5f63571a93</name>
+      <view>OfferitemEdit_view</view>
+    </neonViewReference>
   </references>
 </neonContext>
diff --git a/neonView/OfferitemEdit_view/OfferitemEdit_view.aod b/neonView/OfferitemEdit_view/OfferitemEdit_view.aod
new file mode 100644
index 0000000000..0286bfb270
--- /dev/null
+++ b/neonView/OfferitemEdit_view/OfferitemEdit_view.aod
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<neonView xmlns="http://www.adito.de/2018/ao/Model" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" VERSION="1.1.0" xsi:schemaLocation="http://www.adito.de/2018/ao/Model adito://models/xsd/neonView/1.1.0">
+  <name>OfferitemEdit_view</name>
+  <majorModelMode>DISTRIBUTED</majorModelMode>
+  <layout>
+    <boxLayout>
+      <name>layout</name>
+    </boxLayout>
+  </layout>
+  <children>
+    <genericViewTemplate>
+      <name>Info</name>
+      <editMode v="true" />
+      <entityField>#ENTITY</entityField>
+      <fields>
+        <entityFieldLink>
+          <name>a1d02350-10ed-4189-ab65-e750121a7efd</name>
+          <entityField>ITEMPOSITION</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>18f778d3-5672-48c5-b0f7-2c062662f9d1</name>
+          <entityField>PRODUCT_ID</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>e280db0c-0ac2-40d4-95c2-b59268c4f663</name>
+          <entityField>QUANTITY</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>f7bb223a-ab77-45b5-b6c0-9c8f4d478999</name>
+          <entityField>UNIT</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>2b635ddb-d52c-4063-af11-aea8eeee151b</name>
+          <entityField>PRICE</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>c0a22aa4-b09d-4d8b-8d24-1750eb7ba5ca</name>
+          <entityField>VAT</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>e40aa70c-2a6a-4ff4-818f-0a56bc4c63f4</name>
+          <entityField>OPTIONAL</entityField>
+        </entityFieldLink>
+        <entityFieldLink>
+          <name>8df0d334-f0d8-4905-a7b1-e71576f3b24f</name>
+          <entityField>INFO</entityField>
+        </entityFieldLink>
+      </fields>
+    </genericViewTemplate>
+  </children>
+</neonView>
diff --git a/neonView/OfferitemFilter_view/OfferitemFilter_view.aod b/neonView/OfferitemFilter_view/OfferitemFilter_view.aod
index bcd71df78a..9a10ee740c 100644
--- a/neonView/OfferitemFilter_view/OfferitemFilter_view.aod
+++ b/neonView/OfferitemFilter_view/OfferitemFilter_view.aod
@@ -11,7 +11,6 @@
   <children>
     <tableViewTemplate>
       <name>Offeritems</name>
-      <autoNewRow v="true" />
       <entityField>#ENTITY</entityField>
       <columns>
         <neonTableColumn>
-- 
GitLab