Author: ashish
Date: Mon Oct 26 13:42:55 2009 New Revision: 829794 URL: http://svn.apache.org/viewvc?rev=829794&view=rev Log: Applied patch from jira issue OFBIZ-3088 - Getting error on the console: Error parsing '${uiLabelMap.}'. Getting error on the console after hitting following url : https://localhost:8443/accounting/control/AdminMain?organizationPartyId=Company Error: 2009-10-26 11:44:57,186 (http-0.0.0.0-8443-4) [FlexibleStringExpander.java:405:ERROR] Error evaluating expression: javax.el.ELException: Error parsing '${uiLabelMap.}': syntax error at position 13, encountered '}', expected <IDENTIFIER> 2009-10-26 11:44:57,191 (http-0.0.0.0-8443-4) [FlexibleStringExpander.java:405:ERROR] Error evaluating expression: javax.el.ELException: Error parsing '${uiLabelMap.}': syntax error at position 13, encountered '}', expected <IDENTIFIER> 2009-10-26 11:44:57,195 (http-0.0.0.0-8443-4) [FlexibleStringExpander.java:405:ERROR] Error evaluating expression: javax.el.ELException: Error parsing '${uiLabelMap.}': syntax error at position 13, encountered '}', expected <IDENTIFIER> 2009-10-26 11:44:57,199 (http-0.0.0.0-8443-4) [FlexibleStringExpander.java:405:ERROR] Error evaluating expression: javax.el.ELException: Error parsing '${uiLabelMap.}': syntax error at position 13, encountered '}', expected <IDENTIFIER> 2009-10-26 11:44:57,203 (http-0.0.0.0-8443-4) [FlexibleStringExpander.java:405:ERROR] Error evaluating expression: javax.el.ELException: Error parsing '${uiLabelMap.}': syntax error at position 13, encountered '}', expected <IDENTIFIER> 2009-10-26 11:44:57,206 (http-0.0.0.0-8443-4) [FlexibleStringExpander.java:405:ERROR] Error evaluating expression: javax.el.ELException: Error parsing '${uiLabelMap.}': syntax error at position 13, encountered '}', expected <IDENTIFIER> 2009-10-26 11:44:57,209 (http-0.0.0.0-8 Thanks Brajesh / Rishi for your contribution. 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=829794&r1=829793&r2=829794&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml (original) +++ ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml Mon Oct 26 13:42:55 2009 @@ -81,7 +81,7 @@ <field name="partyId" title="${uiLabelMap.AccountingOrganizationPartyId}"><display/></field> <!-- if there is no partyAcctgPreference yet, then we show drop-downs for the fields and a submit button --> <field name="fiscalYearStartMonth" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("fiscalYearStartMonth")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('fiscalYearStartMonth')!=null)return (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <option key="1" description="${uiLabelMap.AccountingFiscalMonth01}"/> <option key="2" description="${uiLabelMap.AccountingFiscalMonth02}"/> @@ -98,7 +98,7 @@ </drop-down> </field> <field name="fiscalYearStartDay" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh: agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("fiscalYearStartDay")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('fiscalYearStartDay')!=null)return (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <option key="1"/><option key="2"/><option key="3"/><option key="4"/><option key="5"/> <option key="6"/><option key="7"/><option key="8"/><option key="9"/><option key="10"/> @@ -110,7 +110,8 @@ </drop-down> </field> <field name="taxFormId" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("taxFormId")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('taxFormId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId"> <entity-constraint name="enumTypeId" operator="equals" value="TAX_FORMS"/> @@ -119,7 +120,7 @@ </drop-down> </field> <field name="cogsMethodId" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("cogsMethodId")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('cogsMethodId')!=null)return (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId"> <entity-constraint name="enumTypeId" operator="equals" value="COGS_METHODS"/> @@ -128,7 +129,8 @@ </drop-down> </field> <field name="baseCurrencyUomId" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("baseCurrencyUomId")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('baseCurrencyUomId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down no-current-selected-key="${defaultOrganizationPartyCurrencyUomId}"> <entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom"> <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/> @@ -137,11 +139,13 @@ </drop-down> </field> <field name="invoiceIdPrefix" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("invoiceIdPrefix")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('invoiceIdPrefix')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <text maxlength="10" size="5"/> </field> <field name="invoiceSequenceEnumId" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("invoiceSequenceEnumId")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('invoiceSequenceEnumId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId"> <entity-constraint name="enumTypeId" operator="equals" value="INVOICE_SEQMD"/> @@ -150,17 +154,20 @@ </drop-down> </field> <field name="useInvoiceIdForReturns" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("useInvoiceIdForReturns")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('useInvoiceIdForReturns')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down allow-empty="true"> <option key="Y" description="${uiLabelMap.CommonY}"/><option key="N" description="${uiLabelMap.CommonN}"/> </drop-down> </field> <field name="quoteIdPrefix" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("quoteIdPrefix")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('quoteIdPrefix')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <text maxlength="10" size="5"/> </field> <field name="quoteSequenceEnumId" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("quoteSequenceEnumId")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('quoteSequenceEnumId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId"> <entity-constraint name="enumTypeId" operator="equals" value="QUOTE_SEQMD"/> @@ -169,11 +176,12 @@ </drop-down> </field> <field name="orderIdPrefix" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("orderIdPrefix")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('orderIdPrefix')!=null)return (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <text maxlength="10" size="5"/> </field> <field name="orderSequenceEnumId" use-when="partyAcctgPreference==null" - tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("orderSequenceEnumId")!=null?"AccountingInheritedValue":""}}"> + tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; if(agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('orderSequenceEnumId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down> <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId"> <entity-constraint name="enumTypeId" operator="equals" value="ORDER_SEQMD"/> @@ -185,106 +193,104 @@ <field name="updateButton" use-when="partyAcctgPreference!=null" title="${uiLabelMap.CommonUpdate}"><submit/></field> <!-- otherwise, we just display the fields. there is no submit button because we shouldn't try to create it again and don't support an update option right now--> - <field name="fiscalYearStartMonth" use-when="partyAcctgPreference!=null" tooltip="${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("fiscalYearStartMonth")==null&&agregatedPartyAcctgPreference.get("fiscalYearStartMonth")!=null? - "AccountingInheritedValue":""}"> + <field name="fiscalYearStartMonth" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('fiscalYearStartMonth')==null&&agregatedPartyAcctgPreference.get('fiscalYearStartMonth')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <display/> </field> - <field name="fiscalYearStartDay" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("fiscalYearStartDay")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("fiscalYearStartDay")!=null? - "AccountingInheritedValue":""}}"> + <field name="fiscalYearStartDay" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('fiscalYearStartDay')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('fiscalYearStartDay')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="taxFormId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("taxFormId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("taxFormId")!=null? - "AccountingInheritedValue":""}}"> + <field name="taxFormId" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('taxFormId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('taxFormId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display-entity entity-name="Enumeration" key-field-name="enumId"/> </field> - <field name="cogsMethodId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("cogsMethodId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("cogsMethodId")!=null? - "AccountingInheritedValue":""}}"> + <field name="cogsMethodId" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('cogsMethodId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('cogsMethodId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display-entity entity-name="Enumeration" key-field-name="enumId"/> </field> - <field name="baseCurrencyUomId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("baseCurrencyUomId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("baseCurrencyUomId")!=null? - "AccountingInheritedValue":""}}"> + <field name="baseCurrencyUomId" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('baseCurrencyUomId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('baseCurrencyUomId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="invoiceIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("invoiceIdPrefix")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("invoiceIdPrefix")!=null? - "AccountingInheritedValue":""}}"> + <field name="invoiceIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('invoiceIdPrefix')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('invoiceIdPrefix')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="invoiceSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("invoiceSequenceEnumId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("invoiceSequenceEnumId")!=null? - "AccountingInheritedValue":""}}"> + <field name="invoiceSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('invoiceSequenceEnumId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('invoiceSequenceEnumId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display-entity entity-name="Enumeration" key-field-name="enumId"/> </field> - <field name="useInvoiceIdForReturns" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("useInvoiceIdForReturns")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("useInvoiceIdForReturns")!=null? - "AccountingInheritedValue":""}}"> + <field name="useInvoiceIdForReturns" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('useInvoiceIdForReturns')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('useInvoiceIdForReturns')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="quoteSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("quoteSequenceEnumId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("quoteSequenceEnumId")!=null? - "AccountingInheritedValue":""}}"> + <field name="quoteSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('quoteSequenceEnumId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('quoteSequenceEnumId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display-entity entity-name="Enumeration" key-field-name="enumId"/> </field> - <field name="quoteIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("quoteIdPrefix")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("quoteIdPrefix")!=null? - "AccountingInheritedValue":""}}"> + <field name="quoteIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('quoteIdPrefix')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('quoteIdPrefix')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="lastQuoteNumber" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("lastQuoteNumber")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("lastQuoteNumber")!=null? - "AccountingInheritedValue":""}}"> + <field name="lastQuoteNumber" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('lastQuoteNumber')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('lastQuoteNumber')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="orderSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("orderSequenceEnumId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("orderSequenceEnumId")!=null? - "AccountingInheritedValue":""}}"> + <field name="orderSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('orderSequenceEnumId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('orderSequenceEnumId')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display-entity entity-name="Enumeration" key-field-name="enumId"/> </field> - <field name="orderIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("orderIdPrefix")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("orderIdPrefix")!=null? - "AccountingInheritedValue":""}}"> + <field name="orderIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('orderIdPrefix')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('orderIdPrefix')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="lastOrderNumber" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: - partyAcctgPreference!= null&&partyAcctgPreference.get("lastOrderNumber")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("lastOrderNumber")!=null? - "AccountingInheritedValue":""}}"> + <field name="lastOrderNumber" use-when="partyAcctgPreference!=null" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if(partyAcctgPreference!= null&&partyAcctgPreference.get('lastOrderNumber')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('lastOrderNumber')!=null)return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> <!-- these 2 are ONLY displayed, never allow manual editing --> - <field name="lastInvoiceNumber" tooltip="${uiLabelMap.${bsh: - (partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("lastInvoiceNumber")!=null) || - (partyAcctgPreference!=null&&partyAcctgPreference.get("lastInvoiceNumber")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("lastInvoiceNumber")!=null)? - "AccountingInheritedValue":""}}"> + <field name="lastInvoiceNumber" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if((partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('lastInvoiceNumber')!=null) || + (partyAcctgPreference!=null&&partyAcctgPreference.get('lastInvoiceNumber')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('lastInvoiceNumber')!=null))return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <field name="lastInvoiceRestartDate" tooltip="${uiLabelMap.${bsh: - (partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("lastInvoiceRestartDate")!=null) || - (partyAcctgPreference!=null&&partyAcctgPreference.get("lastInvoiceRestartDate")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("lastInvoiceRestartDate")!=null)? - "AccountingInheritedValue":""}}"> + <field name="lastInvoiceRestartDate" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if((partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('lastInvoiceRestartDate')!=null) || + (partyAcctgPreference!=null&&partyAcctgPreference.get('lastInvoiceRestartDate')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('lastInvoiceRestartDate')!=null))return (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <display/> </field> - <!-- these 2 are always can be updated --> - <field name="refundPaymentMethodId" tooltip="${uiLabelMap.${bsh: - (partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("refundPaymentMethodId")!=null) || - (partyAcctgPreference!=null&&partyAcctgPreference.get("refundPaymentMethodId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("refundPaymentMethodId")!=null)? - "AccountingInheritedValue":""}}"> + <field name="refundPaymentMethodId" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if((partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('refundPaymentMethodId')!=null) || + (partyAcctgPreference!=null&&partyAcctgPreference.get('refundPaymentMethodId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('refundPaymentMethodId')!=null))return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale);)}"> <drop-down> <entity-options entity-name="PaymentMethod" description="${description}" key-field-name="paymentMethodId"> <entity-constraint name="partyId" operator="equals" env-name="organizationPartyId"/> </entity-options> </drop-down> </field> - <field name="errorGlJournalId" tooltip="${uiLabelMap.${bsh: - (partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("errorGlJournalId")!=null) || - (partyAcctgPreference!=null&&partyAcctgPreference.get("errorGlJournalId")==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get("errorGlJournalId")!=null)? - "AccountingInheritedValue":""}}"> + <field name="errorGlJournalId" tooltip="${groovy: import org.ofbiz.base.util.UtilProperties; + if((partyAcctgPreference==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('errorGlJournalId')!=null) || + (partyAcctgPreference!=null&&partyAcctgPreference.get('errorGlJournalId')==null&&agregatedPartyAcctgPreference!= null&&agregatedPartyAcctgPreference.get('errorGlJournalId')!=null))return + (UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}"> <drop-down allow-empty="true"> <entity-options entity-name="GlJournal" key-field-name="glJournalId" description="${glJournalName} [${glJournalId}]"> <entity-constraint name="organizationPartyId" operator="equals" env-name="organizationPartyId"/> |
Free forum by Nabble | Edit this page |