Author: jacopoc
Date: Thu Jun 21 23:29:19 2007 New Revision: 549734 URL: http://svn.apache.org/viewvc?view=rev&rev=549734 Log: Applied patch to sort quote items by id: thanks to Oleg Andreyev (OFBIZ-1093). Modified: ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml Modified: ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml?view=diff&rev=549734&r1=549733&r2=549734 ============================================================================== --- ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml (original) +++ ofbiz/trunk/applications/order/widget/ordermgr/QuoteScreens.xml Thu Jun 21 23:29:19 2007 @@ -61,7 +61,8 @@ <get-related-one value-name="quote" relation-name="Uom" to-value-name="currency"/> <get-related-one value-name="quote" relation-name="ProductStore" to-value-name="store"/> - <get-related value-name="quote" relation-name="QuoteItem" list-name="quoteItems"/> + <set field="listOrderBy[]" value="quoteItemSeqId"/> + <get-related value-name="quote" relation-name="QuoteItem" list-name="quoteItems" order-by-list-name="listOrderBy"/> <get-related value-name="quote" relation-name="QuoteAdjustment" list-name="quoteAdjustments"/> <get-related value-name="quote" relation-name="QuoteRole" list-name="quoteRoles"/> <!-- @@ -133,7 +134,8 @@ <get-related-one value-name="quote" relation-name="ProductStore" to-value-name="store"/> <get-related-one value-name="quote" relation-name="Party" to-value-name="party"/> - <get-related value-name="quote" relation-name="QuoteItem" list-name="quoteItems"/> + <set field="listOrderBy[]" value="quoteItemSeqId"/> + <get-related value-name="quote" relation-name="QuoteItem" list-name="quoteItems" order-by-list-name="listOrderBy"/> <get-related value-name="quote" relation-name="QuoteAdjustment" list-name="quoteAdjustments"/> <script location="component://order/webapp/ordermgr/WEB-INF/actions/quote/getPartyAddress.bsh"/> @@ -265,6 +267,7 @@ <entity-one entity-name="Quote" value-name="quote" auto-field-map="true"/> <entity-and entity-name="QuoteItem" list-name="quoteItems"> <field-map env-name="quote.quoteId" field-name="quoteId"/> + <order-by field-name="quoteItemSeqId"/> </entity-and> </actions> @@ -417,6 +420,7 @@ <field-map env-name="quote.quoteId" field-name="quoteId"/> <order-by field-name="custRequestId"/> <order-by field-name="custRequestItemSeqId"/> + <order-by field-name="quoteItemSeqId"/> </entity-and> <entity-and entity-name="QuoteCoefficient" list-name="quoteCoefficients"> <field-map env-name="quote.quoteId" field-name="quoteId"/> @@ -507,6 +511,7 @@ <field-map env-name="quote.quoteId" field-name="quoteId"/> <order-by field-name="custRequestId"/> <order-by field-name="custRequestItemSeqId"/> + <order-by field-name="quoteItemSeqId"/> </entity-and> <entity-and entity-name="QuoteCoefficient" list-name="quoteCoefficients"> <field-map env-name="quote.quoteId" field-name="quoteId"/> |
Free forum by Nabble | Edit this page |