svn commit: r605519 - /ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml

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

svn commit: r605519 - /ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml

ashish-18
Author: ashish
Date: Wed Dec 19 03:53:41 2007
New Revision: 605519

URL: http://svn.apache.org/viewvc?rev=605519&view=rev
Log:
Patch applied from JIRA Issue # OFBIZ-1506
Thanks Ratnesh Upadhyay and Jyotsna Rathore for your patch and others who helped in the implementation.

Modified:
    ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml

Modified: ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml?rev=605519&r1=605518&r2=605519&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml Wed Dec 19 03:53:41 2007
@@ -397,10 +397,17 @@
                 <order-by field-name="paymentMethodTypeId"/>
             </entity-condition>
         </actions>
+        <row-actions>
+            <entity-one entity-name="PaymentMethodType" value-name="paymentMethodType"/>
+            <set field="defaultGlAccountId" value="${paymentMethodType.defaultGlAccountId}"/>
+            <entity-one entity-name="GlAccount" value-name="glAccount"/>
+            <set field="description" value="${glAccount.description}"/>
+        </row-actions>
         <auto-fields-entity entity-name="PaymentMethodTypeGlAccount" default-field-type="display"/>
         <field name="paymentMethodTypeId"><display-entity entity-name="PaymentMethodType" description="${description}"/></field>
         <field name="glAccountId"><display-entity entity-name="GlAccount" description="${accountName}[${glAccountId}]"/></field>
         <field name="organizationPartyId"><hidden/></field>
+        <field name="defaultGlAccountId"><display description="${defaultGlAccountId} : ${description}"/></field>
         <field name="remove" title="${uiLabelMap.CommonEmptyHeader}"><hyperlink target="removePaymentMethodTypeGlAssignment?organizationPartyId=${organizationPartyId}&amp;paymentMethodTypeId=${paymentMethodTypeId}" description="Remove"/></field>
     </form>