svn commit: r1758035 - in /ofbiz/trunk/applications: datamodel/entitydef/order-entitymodel.xml order/servicedef/services_requirement.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1758035 - in /ofbiz/trunk/applications: datamodel/entitydef/order-entitymodel.xml order/servicedef/services_requirement.xml

Deepak Dixit-5
Author: deepak
Date: Sat Aug 27 13:58:22 2016
New Revision: 1758035

URL: http://svn.apache.org/viewvc?rev=1758035&view=rev
Log:
(OFBIZ-7621) Applied patch from jira issue
================================
Add "changeByUserLoginId" field for RequirementStatus
================================
Thanks Nameet for your contribution.

Modified:
    ofbiz/trunk/applications/datamodel/entitydef/order-entitymodel.xml
    ofbiz/trunk/applications/order/servicedef/services_requirement.xml

Modified: ofbiz/trunk/applications/datamodel/entitydef/order-entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/datamodel/entitydef/order-entitymodel.xml?rev=1758035&r1=1758034&r2=1758035&view=diff
==============================================================================
--- ofbiz/trunk/applications/datamodel/entitydef/order-entitymodel.xml (original)
+++ ofbiz/trunk/applications/datamodel/entitydef/order-entitymodel.xml Sat Aug 27 13:58:22 2016
@@ -2244,6 +2244,7 @@ under the License.
       <field name="requirementId" type="id-ne"></field>
       <field name="statusId" type="id-ne"></field>
       <field name="statusDate" type="date-time"></field>
+      <field name="changeByUserLoginId" type="id-vlong"></field>
       <prim-key field="requirementId"/>
       <prim-key field="statusId"/>
       <relation type="one" fk-name="REQ_STTS_REQ" rel-entity-name="Requirement">
@@ -2252,6 +2253,9 @@ under the License.
       <relation type="one" fk-name="REQ_STTS_STTS" rel-entity-name="StatusItem">
         <key-map field-name="statusId"/>
       </relation>
+      <relation type="one" fk-name="REQ_STTS_USRLGN" title="ChangeBy" rel-entity-name="UserLogin">
+          <key-map field-name="changeByUserLoginId" rel-field-name="userLoginId"/>
+      </relation>
     </entity>
     <entity entity-name="RequirementType"
             package-name="org.apache.ofbiz.order.requirement"

Modified: ofbiz/trunk/applications/order/servicedef/services_requirement.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_requirement.xml?rev=1758035&r1=1758034&r2=1758035&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services_requirement.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services_requirement.xml Sat Aug 27 13:58:22 2016
@@ -76,6 +76,12 @@ under the License.
         <auto-attributes include="pk" mode="IN" optional="false"/>
     </service>
 
+    <service name="createRequirementStatus" engine="entity-auto" default-entity-name="RequirementStatus" auth="true" invoke="create">
+        <description>Create Requirement Status </description>
+        <auto-attributes mode="IN" include="pk" optional="false"/>
+        <auto-attributes mode="IN" include="nonpk" optional="true"/>
+    </service>
+
     <service name="associatedRequirementWithRequestItem" engine="simple"
             location="component://order/minilang/requirement/RequirementServices.xml" invoke="associateRequirementWithRequestItem">
         <description>Creates a CustRequestItem/Requirement association</description>