You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2017/04/22 08:26:40 UTC

svn commit: r1792272 - in /ofbiz/ofbiz-framework/trunk/applications/order: webapp/ordermgr/WEB-INF/controller.xml widget/ordermgr/QuoteForms.xml

Author: deepak
Date: Sat Apr 22 08:26:39 2017
New Revision: 1792272

URL: http://svn.apache.org/viewvc?rev=1792272&view=rev
Log:
Improved: From Date and Thru Date doesn't reflect on List Quote Roles screen.Applied slightly different patch from jira issue (OFBIZ-8266) 
Thanks Akshay Modak for your contribution.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml
    ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/QuoteForms.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml?rev=1792272&r1=1792271&r2=1792272&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/webapp/ordermgr/WEB-INF/controller.xml Sat Apr 22 08:26:39 2017
@@ -1465,9 +1465,17 @@ under the License.
         </response>
         <response name="error" type="view" value="EditQuoteRole"/>
     </request-map>
+    <request-map uri="updateQuoteRole">
+        <security https="true" auth="true"/>
+        <event type="service" path="" invoke="updateQuoteRole"/>
+        <response name="success" type="request-redirect" value="ListQuoteRoles">
+            <redirect-parameter name="quoteId"/>
+        </response>
+        <response name="error" type="view" value="EditQuoteRole"/>
+    </request-map>
     <request-map uri="removeQuoteRole">
         <security https="true" auth="true"/>
-        <event type="service" path="" invoke="removeQuoteRole"/>
+        <event type="service" invoke="removeQuoteRole"/>
         <response name="success" type="view" value="ListQuoteRoles"/>
         <response name="error" type="view" value="ListQuoteRoles"/>
     </request-map>

Modified: ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/QuoteForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/QuoteForms.xml?rev=1792272&r1=1792271&r2=1792272&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/QuoteForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/order/widget/ordermgr/QuoteForms.xml Sat Apr 22 08:26:39 2017
@@ -158,12 +158,14 @@ under the License.
         <field name="description" title="${uiLabelMap.CommonDescription}"></field>
         <field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>
-    <form name="ListQuoteRoles" target="" title="" type="list" list-name="quoteRoles"
+    <form name="ListQuoteRoles" target="updateQuoteRole" title="" type="list" list-name="quoteRoles"
         odd-row-style="alternate-row" default-table-style="basic-table hover-bar" paginate-target="ListQuoteRoles">
         <auto-fields-entity entity-name="QuoteRole" default-field-type="display"/>
         <field name="partyId" title="${uiLabelMap.PartyPartyId}"></field>
-        <field name="roleTypeId" title="${uiLabelMap.PartyRoleType}"><display-entity also-hidden="false" entity-name="RoleType"/></field>
+        <field name="roleTypeId" title="${uiLabelMap.PartyRoleType}"><display-entity entity-name="RoleType"/></field>
+        <field name="thruDate" red-when="before-now"><date-time/></field>
         <field name="quoteId"><hidden/></field>
+        <field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
         <field name="deleteLink" title=" " widget-style="buttontext">
             <hyperlink description="${uiLabelMap.CommonRemove}" target="removeQuoteRole" also-hidden="false">
                 <parameter param-name="partyId"/>