Author: pranayp Date: Sat Oct 15 05:56:30 2016 New Revision: 1765012 URL: http://svn.apache.org/viewvc?rev=1765012&view=rev Log: Improved: QuoteId field visibility in Create and Update Quote process. (OFBIZ-7777)
When creating a new quote, the field quoteId is displayed even though its value is "null". Fixed the behavior adding a use-when condition to display the field when the quote already exists and to hide the field when the quote is being created. Thanks: Montalbano Florian for the contribution and Chandan Khandelwal for reviewing and providing the updated patch. Modified: ofbiz/trunk/applications/order/widget/ordermgr/QuoteForms.xml Modified: ofbiz/trunk/applications/order/widget/ordermgr/QuoteForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/QuoteForms.xml?rev=1765012&r1=1765011&r2=1765012&view=diff ============================================================================== --- ofbiz/trunk/applications/order/widget/ordermgr/QuoteForms.xml (original) +++ ofbiz/trunk/applications/order/widget/ordermgr/QuoteForms.xml Sat Oct 15 05:56:30 2016 @@ -109,7 +109,8 @@ under the License. </actions> <alt-target use-when="quote==null" target="createQuote"/> <auto-fields-entity entity-name="Quote" default-field-type="edit"/> - <field name="quoteId" title="${uiLabelMap.OrderOrderQuoteId}"><display/></field> + <field name="quoteId" use-when="quote!=null" title="${uiLabelMap.OrderOrderQuoteId}"><display/></field> + <field name="quoteId" use-when="quote==null" title="${uiLabelMap.OrderOrderQuoteId}"><hidden/></field> <field name="statusId" title="${uiLabelMap.FormFieldTitle_statusId}"><ignored/></field> <field name="quoteTypeId" title="${uiLabelMap.OrderOrderQuoteTypeId}"> <drop-down allow-empty="true">