You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2017/10/28 13:11:17 UTC

svn commit: r1813626 - in /ofbiz/ofbiz-framework/trunk/applications: accounting/widget/BillingAccountForms.xml party/webapp/partymgr/WEB-INF/controller.xml

Author: arunpatidar
Date: Sat Oct 28 13:11:17 2017
New Revision: 1813626

URL: http://svn.apache.org/viewvc?rev=1813626&view=rev
Log:
FIXED:Request handler exception in create billing account from suppliers profile page. (OFBIZ-9751)
Thanks Mr. Khurana for your contribution.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/accounting/widget/BillingAccountForms.xml
    ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/widget/BillingAccountForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/widget/BillingAccountForms.xml?rev=1813626&r1=1813625&r2=1813626&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/widget/BillingAccountForms.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/widget/BillingAccountForms.xml Sat Oct 28 13:11:17 2017
@@ -126,7 +126,8 @@ under the License.
         <field use-when="billingAccount!=null" name="billingAccountId"><display/></field>
         <field name="partyId" use-when="billingAccount != null" ><display/></field>
         <field name="partyId" use-when="billingAccount == null" title="${uiLabelMap.AccountingPartyBilledTo}" required-field="true"><lookup target-form-name="LookupPartyName"/></field>
-        <field name="roleTypeId"><hidden/></field>
+        <field name="roleTypeId" use-when="billingAccount == null"><hidden value="BILL_TO_CUSTOMER"/></field>
+        <field name="roleTypeId" use-when="billingAccount != null"><hidden/></field>
         <field name="accountCurrencyUomId">
             <drop-down allow-empty="false" no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}">
                 <entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">

Modified: ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml?rev=1813626&r1=1813625&r2=1813626&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/party/webapp/partymgr/WEB-INF/controller.xml Sat Oct 28 13:11:17 2017
@@ -1140,6 +1140,12 @@ under the License.
         <response name="success" type="view" value="UpdateCommProducts"/>
         <response name="error" type="view" value="UpdateCommProducts"/>
     </request-map>
+    <request-map uri="createBillingAccountAndRole">
+        <security https="true" auth="true"/>
+        <event type="service" invoke="createBillingAccountAndRole"/>
+        <response name="success" type="view" value="EditBillingAccount"/>
+        <response name="error" type="view" value="EditBillingAccount"/>
+    </request-map>
 
     <!-- Lookup request mappings -->
     <request-map uri="LookupPartyName"><security https="true" auth="true"/><response name="success" type="view" value="LookupPartyName"/></request-map>