Author: apatel
Date: Tue Nov 10 06:07:21 2009
New Revision: 834359
URL:
http://svn.apache.org/viewvc?rev=834359&view=revLog:
Moved call to getPartyAccountingPreferences from PartyAcctgPreference screen to form. This is much more flexible.
Modified:
ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml
ofbiz/trunk/applications/accounting/widget/GlSetupScreens.xml
Modified: ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml?rev=834359&r1=834358&r2=834359&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml Tue Nov 10 06:07:21 2009
@@ -74,6 +74,12 @@
<form name="PartyAcctgPreference" type="single" target="createPartyAcctgPreference" default-service-name="createPartyAcctgPreference" default-map-name="agregatedPartyAcctgPreference"
header-row-style="header-row" default-table-style="basic-table">
+ <actions>
+ <service service-name="getPartyAccountingPreferences" result-map="result">
+ <field-map field-name="organizationPartyId"/>
+ </service>
+ <set field="agregatedPartyAcctgPreference" from-field="result.partyAccountingPreference" type="NewMap"/>
+ </actions>
<alt-target use-when="partyAcctgPreference!=null" target="updatePartyAcctgPreference"/>
<auto-fields-service service-name="createPartyAcctgPreference"/>
<field name="organizationPartyId"><hidden value="${parameters.organizationPartyId}"/></field>
Modified: ofbiz/trunk/applications/accounting/widget/GlSetupScreens.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/GlSetupScreens.xml?rev=834359&r1=834358&r2=834359&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/widget/GlSetupScreens.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/GlSetupScreens.xml Tue Nov 10 06:07:21 2009
@@ -159,10 +159,6 @@
<property-to-field field="defaultCurrencyUomId" resource="general" property="currency.uom.id.default" default="USD"/>
<set field="partyId" from-field="parameters.organizationPartyId"/>
<entity-one entity-name="PartyAcctgPreference" value-field="partyAcctgPreference"/>
- <service service-name="getPartyAccountingPreferences" result-map="result">
- <field-map field-name="organizationPartyId"/>
- </service>
- <set field="agregatedPartyAcctgPreference" from-field="result.partyAccountingPreference"/>
</actions>
<widgets>
<decorator-screen name="CommonGlSetupDecorator" location="${parameters.commonGlSetupDecoratorLocation}">