svn commit: r1742103 - /ofbiz/trunk/applications/accounting/widget/InvoiceForms.xml

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

svn commit: r1742103 - /ofbiz/trunk/applications/accounting/widget/InvoiceForms.xml

jleroux@apache.org
Author: jleroux
Date: Tue May  3 11:38:42 2016
New Revision: 1742103

URL: http://svn.apache.org/viewvc?rev=1742103&view=rev
Log:
A patch from Pierre Smits for "Adding Uom descriptor for selection and display in invoice forms" https://issues.apache.org/jira/browse/OFBIZ-7032

Currently there is no Uom selector in the terms form. And the display field in the terms list form only shows the uomId.

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

Modified: ofbiz/trunk/applications/accounting/widget/InvoiceForms.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/InvoiceForms.xml?rev=1742103&r1=1742102&r2=1742103&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/widget/InvoiceForms.xml (original)
+++ ofbiz/trunk/applications/accounting/widget/InvoiceForms.xml Tue May  3 11:38:42 2016
@@ -449,6 +449,9 @@ under the License.
         <field name="termDays" widget-area-style="align-right" title-area-style="align-right">
             <display/>
         </field>
+        <field name="uomId" title="${uiLabelMap.Uom}">
+            <display-entity entity-name="Uom"/>
+        </field>
     </form>
     
     <form name="EditInvoiceTerm" type="single" target="createInvoiceTerm" title=""
@@ -463,6 +466,13 @@ under the License.
             </drop-down>
         </field>
         <field name="description"><textarea/></field>
+        <field name="uomId" title="${uiLabelMap.Uom}">
+            <drop-down allow-empty="true">
+                <entity-options key-field-name="uomId" description="${description} - ${abbreviation}" entity-name="Uom">
+                    <entity-order-by field-name="description"/>
+                </entity-options>
+            </drop-down>
+        </field>
         <field name="submitButton" widget-style="smallSubmit"><submit button-type="button"/></field>
     </form>