You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/12/14 04:39:37 UTC

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

Author: hansbak
Date: Sat Dec 13 19:39:37 2008
New Revision: 726349

URL: http://svn.apache.org/viewvc?rev=726349&view=rev
Log:
added more null checking to avoid many log error messages and changed from if/else to ?/:

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=726349&r1=726348&r2=726349&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/GlSetupForms.xml Sat Dec 13 19:39:37 2008
@@ -71,7 +71,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: if(agregatedPartyAcctgPreference.get(&quot;fiscalYearStartMonth&quot;)!=null)return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;fiscalYearStartMonth&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <option key="1" description="${uiLabelMap.AccountingFiscalMonth01}"/>
                 <option key="2" description="${uiLabelMap.AccountingFiscalMonth02}"/>
@@ -88,7 +88,7 @@
             </drop-down>
         </field>
         <field name="fiscalYearStartDay" use-when="partyAcctgPreference==null"
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;fiscalYearStartDay&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh: agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;fiscalYearStartDay&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <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"/>
@@ -100,7 +100,7 @@
             </drop-down>
         </field>
         <field name="taxFormId" use-when="partyAcctgPreference==null" 
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;taxFormId&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;taxFormId&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
                     <entity-constraint name="enumTypeId" operator="equals" value="TAX_FORMS"/>
@@ -109,7 +109,7 @@
             </drop-down>
         </field>
         <field name="cogsMethodId" use-when="partyAcctgPreference==null" 
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;cogsMethodId&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;cogsMethodId&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
                     <entity-constraint name="enumTypeId" operator="equals" value="COGS_METHODS"/>
@@ -118,7 +118,7 @@
             </drop-down>
         </field>
         <field name="baseCurrencyUomId" use-when="partyAcctgPreference==null"
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;baseCurrencyUomId&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;baseCurrencyUomId&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options key-field-name="uomId" description="${abbreviation} - ${description}" entity-name="Uom">
                     <entity-constraint name="uomTypeId" operator="equals" value="CURRENCY_MEASURE"/>
@@ -127,11 +127,11 @@
             </drop-down>
         </field>
         <field name="invoiceIdPrefix" use-when="partyAcctgPreference==null"
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;invoiceIdPrefix&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;invoiceIdPrefix&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <text maxlength="10" size="5"/>
         </field>
         <field name="invoiceSequenceEnumId" use-when="partyAcctgPreference==null"
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;invoiceSequenceEnumId&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;invoiceSequenceEnumId&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
                     <entity-constraint name="enumTypeId" operator="equals" value="INVOICE_SEQMD"/>
@@ -140,17 +140,17 @@
             </drop-down>
         </field>
         <field name="useInvoiceIdForReturns" use-when="partyAcctgPreference==null" 
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;useInvoiceIdForReturns&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;useInvoiceIdForReturns&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <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: if(agregatedPartyAcctgPreference.get(&quot;quoteIdPrefix&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;quoteIdPrefix&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <text maxlength="10" size="5"/>
         </field>
         <field name="quoteSequenceEnumId" use-when="partyAcctgPreference==null" 
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;quoteSequenceEnumId&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;quoteSequenceEnumId&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
                     <entity-constraint name="enumTypeId" operator="equals" value="QUOTE_SEQMD"/>
@@ -159,11 +159,11 @@
             </drop-down>
         </field>
         <field name="orderIdPrefix" use-when="partyAcctgPreference==null"
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;orderIdPrefix&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;orderIdPrefix&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <text maxlength="10" size="5"/>
         </field>
         <field name="orderSequenceEnumId" use-when="partyAcctgPreference==null"
-                tooltip="${uiLabelMap.${bsh: if(agregatedPartyAcctgPreference.get(&quot;orderSequenceEnumId&quot;)!=null) return &quot;AccountingInheritedValue&quot;; else return &quot;&quot;;}}">
+            tooltip="${uiLabelMap.${bsh:agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;orderSequenceEnumId&quot;)!=null?&quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options entity-name="Enumeration" description="${description}" key-field-name="enumId">
                     <entity-constraint name="enumTypeId" operator="equals" value="ORDER_SEQMD"/>
@@ -176,112 +176,95 @@
         
         <!-- 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: 
-                if(partyAcctgPreference.get(&quot;fiscalYearStartMonth&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;fiscalYearStartMonth&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;fiscalYearStartMonth&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;fiscalYearStartMonth&quot;)!=null?
+                    &quot;AccountingInheritedValue&quot;:&quot;&quot;}">
             <display/>
         </field>
         <field name="fiscalYearStartDay" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;fiscalYearStartDay&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;fiscalYearStartDay&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+            partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;fiscalYearStartDay&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;fiscalYearStartDay&quot;)!=null?
+                    &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="taxFormId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;taxFormId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;taxFormId&quot;)!=null) 
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;taxFormId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;taxFormId&quot;)!=null? 
+                    &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display-entity entity-name="Enumeration" key-field-name="enumId"/>
         </field>
         <field name="cogsMethodId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;cogsMethodId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;cogsMethodId&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+            partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;cogsMethodId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;cogsMethodId&quot;)!=null?
+                    &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display-entity entity-name="Enumeration" key-field-name="enumId"/>
         </field>
         <field name="baseCurrencyUomId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;baseCurrencyUomId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;baseCurrencyUomId&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;baseCurrencyUomId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;baseCurrencyUomId&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="invoiceIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;invoiceIdPrefix&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;invoiceIdPrefix&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;invoiceIdPrefix&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;invoiceIdPrefix&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="invoiceSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;invoiceSequenceEnumId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;invoiceSequenceEnumId&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;invoiceSequenceEnumId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;invoiceSequenceEnumId&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display-entity entity-name="Enumeration" key-field-name="enumId"/>
         </field>
         <field name="useInvoiceIdForReturns" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;useInvoiceIdForReturns&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;useInvoiceIdForReturns&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;useInvoiceIdForReturns&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;useInvoiceIdForReturns&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="quoteSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;quoteSequenceEnumId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;quoteSequenceEnumId&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;quoteSequenceEnumId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;quoteSequenceEnumId&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display-entity entity-name="Enumeration" key-field-name="enumId"/>
         </field>
         <field name="quoteIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;quoteIdPrefix&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;quoteIdPrefix&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;quoteIdPrefix&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;quoteIdPrefix&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="lastQuoteNumber" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;lastQuoteNumber&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastQuoteNumber&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;lastQuoteNumber&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastQuoteNumber&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="orderSequenceEnumId" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;orderSequenceEnumId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;orderSequenceEnumId&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;orderSequenceEnumId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;orderSequenceEnumId&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display-entity entity-name="Enumeration" key-field-name="enumId"/>
         </field> 
         <field name="orderIdPrefix" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;orderIdPrefix&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;orderIdPrefix&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                 else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;orderIdPrefix&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;orderIdPrefix&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="lastOrderNumber" use-when="partyAcctgPreference!=null" tooltip="${uiLabelMap.${bsh: 
-                if(partyAcctgPreference.get(&quot;lastOrderNumber&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastOrderNumber&quot;)!=null)
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                partyAcctgPreference!= null&amp;&amp;partyAcctgPreference.get(&quot;lastOrderNumber&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastOrderNumber&quot;)!=null?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         
         <!-- these 2 are ONLY displayed, never allow manual editing -->
         <field name="lastInvoiceNumber" tooltip="${uiLabelMap.${bsh: 
-                if((partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceNumber&quot;)!=null) ||
-                        (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;lastInvoiceNumber&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceNumber&quot;)!=null))
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                (partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceNumber&quot;)!=null) ||
+                (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;lastInvoiceNumber&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceNumber&quot;)!=null)?
+                    &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         <field name="lastInvoiceRestartDate" tooltip="${uiLabelMap.${bsh: 
-                if((partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceRestartDate&quot;)!=null) ||
-                        (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;lastInvoiceRestartDate&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceRestartDate&quot;)!=null))
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                (partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceRestartDate&quot;)!=null) ||
+                (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;lastInvoiceRestartDate&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;lastInvoiceRestartDate&quot;)!=null)?
+                    &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <display/>
         </field>
         
         <!-- these 2 are always can be updated -->
         <field name="refundPaymentMethodId" tooltip="${uiLabelMap.${bsh: 
-                if((partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;refundPaymentMethodId&quot;)!=null) ||
-                        (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;refundPaymentMethodId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;refundPaymentMethodId&quot;)!=null))
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+                (partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;refundPaymentMethodId&quot;)!=null) ||
+                (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;refundPaymentMethodId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;refundPaymentMethodId&quot;)!=null)?
+                &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <drop-down>
                 <entity-options entity-name="PaymentMethod" description="${description}" key-field-name="paymentMethodId">
                     <entity-constraint name="partyId" operator="equals" env-name="organizationPartyId"/>
@@ -289,10 +272,9 @@
             </drop-down>
         </field>
         <field name="errorGlJournalId" tooltip="${uiLabelMap.${bsh: 
-                if((partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;errorGlJournalId&quot;)!=null) ||
-                        (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;errorGlJournalId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;errorGlJournalId&quot;)!=null))
-                    return &quot;AccountingInheritedValue&quot;;
-                else return &quot;&quot;;}}">
+            (partyAcctgPreference==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;errorGlJournalId&quot;)!=null) ||
+            (partyAcctgPreference!=null&amp;&amp;partyAcctgPreference.get(&quot;errorGlJournalId&quot;)==null&amp;&amp;agregatedPartyAcctgPreference!= null&amp;&amp;agregatedPartyAcctgPreference.get(&quot;errorGlJournalId&quot;)!=null)?
+            &quot;AccountingInheritedValue&quot;:&quot;&quot;}}">
             <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"/>