svn commit: r1749841 - in /ofbiz/branches/release15.12/applications/product/widget/catalog: ProductForms.xml ProductScreens.xml

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

svn commit: r1749841 - in /ofbiz/branches/release15.12/applications/product/widget/catalog: ProductForms.xml ProductScreens.xml

ashish-18
Author: ashish
Date: Thu Jun 23 06:30:28 2016
New Revision: 1749841

URL: http://svn.apache.org/viewvc?rev=1749841&view=rev
Log:
Applied patch from trunk r1749840(I am considering it as display bug and it has missing functionality so backporting changes to branches as well).
==========================================================
Applied patch from jira issue - OFBIZ-7528 - Display commission agreements on product detail page.
Thanks Ravi for the contribution.

Modified:
    ofbiz/branches/release15.12/applications/product/widget/catalog/ProductForms.xml
    ofbiz/branches/release15.12/applications/product/widget/catalog/ProductScreens.xml

Modified: ofbiz/branches/release15.12/applications/product/widget/catalog/ProductForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/product/widget/catalog/ProductForms.xml?rev=1749841&r1=1749840&r2=1749841&view=diff
==============================================================================
--- ofbiz/branches/release15.12/applications/product/widget/catalog/ProductForms.xml (original)
+++ ofbiz/branches/release15.12/applications/product/widget/catalog/ProductForms.xml Thu Jun 23 06:30:28 2016
@@ -1871,6 +1871,23 @@ under the License.
         <field name="currencyUomId"><display/></field>
         <field name="price"><display/></field>
     </form>
+    <form name="ListCommissionAgreements" type="list" list-name="commissionAgreements"
+        odd-row-style="alternate-row" default-table-style="basic-table">
+        <field name="agreementId" widget-style="buttontext">
+            <hyperlink target="/accounting/control/EditAgreementItemProduct" target-type="inter-app" description="${agreementId}/${agreementItemSeqId}" also-hidden="false">
+                <parameter param-name="agreementId"/>
+                <parameter param-name="agreementItemSeqId"/>
+                <parameter param-name="productId"/>
+            </hyperlink>
+        </field>
+        <field name="partyIdTo"><display/></field>
+        <field name="agreementText"><display/></field>
+        <field name="description"><display/></field>
+        <field name="fromDate"><display/></field>
+        <field name="thruDate"><display/></field>
+        <field name="currencyUomId"><display/></field>
+        <field name="price"><display/></field>
+    </form>
 
     <!-- ProductWorkEfforts forms -->
     <form name="AddProductWorkEffort" target="createWorkEffortGoodStandard" title="" type="single"

Modified: ofbiz/branches/release15.12/applications/product/widget/catalog/ProductScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/product/widget/catalog/ProductScreens.xml?rev=1749841&r1=1749840&r2=1749841&view=diff
==============================================================================
--- ofbiz/branches/release15.12/applications/product/widget/catalog/ProductScreens.xml (original)
+++ ofbiz/branches/release15.12/applications/product/widget/catalog/ProductScreens.xml Thu Jun 23 06:30:28 2016
@@ -229,6 +229,11 @@ under the License.
                     <field-map field-name="agreementTypeId" value="PRODUCT_AGREEMENT"/>
                     <order-by field-name="fromDate"/>
                 </entity-and>
+                <entity-and entity-name="AgreementItemAndProductAppl" list="commissionAgreements">
+                    <field-map field-name="productId"/>
+                    <field-map field-name="agreementTypeId" value="COMMISSION_AGREEMENT"/>
+                    <order-by field-name="fromDate"/>
+                </entity-and>
             </actions>
             <widgets>
                 <decorator-screen name="CommonProductDecorator" location="${parameters.productDecoratorLocation}">
@@ -245,6 +250,9 @@ under the License.
                             <include-form name="ListSalesAgreements" location="component://product/widget/catalog/ProductForms.xml"/>
                         </screenlet>
                         <screenlet title="${uiLabelMap.ProductCommissions}">
+                            <include-form name="ListCommissionAgreements" location="component://product/widget/catalog/ProductForms.xml"/>
+                        </screenlet>
+                        <screenlet title="${uiLabelMap.ProductProducts}">
                             <include-form name="ListProductAgreements" location="component://product/widget/catalog/ProductForms.xml"/>
                         </screenlet>
                     </decorator-section>