From f4c5fbba1f820e21ccdbb62031249c07b7e02804 Mon Sep 17 00:00:00 2001
From: Mohamed Mansour <m.mansour@adito.de>
Date: Fri, 9 Aug 2019 13:16:14 +0200
Subject: [PATCH] Documentaion Order_entity

---
 entity/Order_entity/Order_entity.aod              |  5 +++++
 entity/Order_entity/documentation.adoc            | 15 ++++++++++++---
 .../entityfields/deliveryterms/documentation.adoc |  4 ++++
 .../entityfields/dunningdate/documentation.adoc   |  5 +++++
 .../entityfields/dunninglevel/documentation.adoc  |  6 ++++++
 .../entityfields/ordertype/documentation.adoc     |  4 ++++
 .../entityfields/paymentterms/documentation.adoc  |  4 ++++
 7 files changed, 40 insertions(+), 3 deletions(-)
 create mode 100644 entity/Order_entity/entityfields/deliveryterms/documentation.adoc
 create mode 100644 entity/Order_entity/entityfields/dunningdate/documentation.adoc
 create mode 100644 entity/Order_entity/entityfields/dunninglevel/documentation.adoc
 create mode 100644 entity/Order_entity/entityfields/ordertype/documentation.adoc
 create mode 100644 entity/Order_entity/entityfields/paymentterms/documentation.adoc

diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod
index e68b727a29..c0486dc13b 100644
--- a/entity/Order_entity/Order_entity.aod
+++ b/entity/Order_entity/Order_entity.aod
@@ -478,6 +478,7 @@
     </entityActionField>
     <entityField>
       <name>ORDERTYPE</name>
+      <documentation>%aditoprj%/entity/Order_entity/entityfields/ordertype/documentation.adoc</documentation>
       <title>Order Type</title>
       <consumer>KeywordOrderTypes</consumer>
       <mandatory v="true" />
@@ -511,6 +512,7 @@
     </entityField>
     <entityField>
       <name>DUNNINGDATE</name>
+      <documentation>%aditoprj%/entity/Order_entity/entityfields/dunningdate/documentation.adoc</documentation>
       <title>Dunning date</title>
       <contentType>DATE</contentType>
       <resolution>DAY</resolution>
@@ -518,6 +520,7 @@
     </entityField>
     <entityField>
       <name>DUNNINGLEVEL</name>
+      <documentation>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/documentation.adoc</documentation>
       <title>Dunning level</title>
       <consumer>KeywordDunningLevels</consumer>
       <stateProcess>%aditoprj%/entity/Order_entity/entityfields/dunninglevel/stateProcess.js</stateProcess>
@@ -640,6 +643,7 @@
     </entityParameter>
     <entityField>
       <name>PAYMENTTERMS</name>
+      <documentation>%aditoprj%/entity/Order_entity/entityfields/paymentterms/documentation.adoc</documentation>
       <title>Payment term</title>
       <consumer>KeywordPaymentTerms</consumer>
       <mandatory v="true" />
@@ -648,6 +652,7 @@
     </entityField>
     <entityField>
       <name>DELIVERYTERMS</name>
+      <documentation>%aditoprj%/entity/Order_entity/entityfields/deliveryterms/documentation.adoc</documentation>
       <title>Delivery specification</title>
       <consumer>KeywordDeliveryTerms</consumer>
       <mandatory v="true" />
diff --git a/entity/Order_entity/documentation.adoc b/entity/Order_entity/documentation.adoc
index 7e02ccf884..606c2f1b68 100644
--- a/entity/Order_entity/documentation.adoc
+++ b/entity/Order_entity/documentation.adoc
@@ -7,9 +7,18 @@ It provides data from database table _SALESORDER_.
 
 == Actions
 
-* _Copy order_: All values, orderitems included, are copyed and inserted in a new order (new order code, versnr. _1_).
-* _New order version_: All values, orderitems included, are copyed and inserted in a **new order version** (versnr. + _1_).
-
+* _Copy order_: All values, orderitems included, are copied and inserted in a new order (new order code, versnr. _1_).
+* _New order version_: All values, orderitems included, are copied and inserted in a **new order version** (versnr. + _1_).
+* _New activity_: All values are copied and inserted in a new activity (new activity code, versnr. _1_).
+* _New task_: All values are copied and inserted in a new task (new task code, versnr. _1_).
+* _Transfer delivery note_: All values are copied and inserted in a new order with OrderType Delivery note (new order code, versnr. _1_).
+* _Transfer invoice_: All values are copied and inserted in a new order with OrderType invoice (new order code, versnr. _1_).
+* _Set sent_: Sets the sent checkbox to active.
+* _cancel_: sets the cancel checkbox to active.
+* _set dunning_: opens a new edit context but only with the dunning date and dunning level fields for the user to enter the dunning date and levels.
+* _set paid_: opens a new edit context but only with the pay date and paid fields for the user to enter the pay date and paid amount.
+* _print reminder_: opens the reminder report for the current order.
+* _print order_: opens the order report for the current order.
 == Submodules
 
 * Orderitem
\ No newline at end of file
diff --git a/entity/Order_entity/entityfields/deliveryterms/documentation.adoc b/entity/Order_entity/entityfields/deliveryterms/documentation.adoc
new file mode 100644
index 0000000000..b6f84370fd
--- /dev/null
+++ b/entity/Order_entity/entityfields/deliveryterms/documentation.adoc
@@ -0,0 +1,4 @@
+
+==Delivery terms
+
+Contains the delivery terms as keywords to choose from. (frei Haus, CIF, ab werk)
\ No newline at end of file
diff --git a/entity/Order_entity/entityfields/dunningdate/documentation.adoc b/entity/Order_entity/entityfields/dunningdate/documentation.adoc
new file mode 100644
index 0000000000..793ad02129
--- /dev/null
+++ b/entity/Order_entity/entityfields/dunningdate/documentation.adoc
@@ -0,0 +1,5 @@
+
+
+==Dunning date
+
+Contains the dunning date.
\ No newline at end of file
diff --git a/entity/Order_entity/entityfields/dunninglevel/documentation.adoc b/entity/Order_entity/entityfields/dunninglevel/documentation.adoc
new file mode 100644
index 0000000000..1131afb1d2
--- /dev/null
+++ b/entity/Order_entity/entityfields/dunninglevel/documentation.adoc
@@ -0,0 +1,6 @@
+
+
+
+==Dunning level
+
+Contains the dunning level 1 or 2
\ No newline at end of file
diff --git a/entity/Order_entity/entityfields/ordertype/documentation.adoc b/entity/Order_entity/entityfields/ordertype/documentation.adoc
new file mode 100644
index 0000000000..c075601f71
--- /dev/null
+++ b/entity/Order_entity/entityfields/ordertype/documentation.adoc
@@ -0,0 +1,4 @@
+
+==Order type
+
+Contains the order type as keywords to choose from. (Order confirmation, delivery note, invoice, credit, cancellation).
\ No newline at end of file
diff --git a/entity/Order_entity/entityfields/paymentterms/documentation.adoc b/entity/Order_entity/entityfields/paymentterms/documentation.adoc
new file mode 100644
index 0000000000..2d25c06e04
--- /dev/null
+++ b/entity/Order_entity/entityfields/paymentterms/documentation.adoc
@@ -0,0 +1,4 @@
+
+==Payment terms
+
+Contains the delivery terms to choose from. Saved as keywords. (7 days netto, 30 days netto, 8 days 2% skotto 30 days netto)
\ No newline at end of file
-- 
GitLab