|
Author: jleroux
Date: Mon Mar 24 21:02:41 2014 New Revision: 1581063 URL: http://svn.apache.org/r1581063 Log: A patch from Willem Janssen for "Show party names in Agreement list" https://issues.apache.org/jira/browse/OFBIZ-5593 In the findAgreement screen partyIdFrom and partyIdTo columns show only the ID's, not the names. Attached to this issue a small patch that implements to show the names in the search result screen in the same way as in the findInvoices screen. Modified: ofbiz/trunk/applications/accounting/widget/AgreementForms.xml Modified: ofbiz/trunk/applications/accounting/widget/AgreementForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/widget/AgreementForms.xml?rev=1581063&r1=1581062&r2=1581063&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/widget/AgreementForms.xml (original) +++ ofbiz/trunk/applications/accounting/widget/AgreementForms.xml Mon Mar 24 21:02:41 2014 @@ -61,6 +61,18 @@ under the License. <field-map field-name="viewSize" from-field="viewSize"/> </service> </actions> + <row-actions> + <service service-name="getPartyNameForDate" result-map="partyNameResultFrom"> + <field-map field-name="partyId" from-field="partyIdFrom"/> + <field-map field-name="compareDate" from-field="agreementDate"/> + <field-map field-name="lastNameFirst" value="Y"/> + </service> + <service service-name="getPartyNameForDate" result-map="partyNameResultTo"> + <field-map field-name="partyId" from-field="partyIdTo"/> + <field-map field-name="compareDate" from-field="agreementDate"/> + <field-map field-name="lastNameFirst" value="Y"/> + </service> + </row-actions> <auto-fields-entity entity-name="Agreement" default-field-type="display"/> <field name="agreementId" title="${uiLabelMap.CommonEdit}" widget-style="buttontext" sort-field="true"> <hyperlink also-hidden="false" description="${agreementId}" target="EditAgreement"> @@ -69,12 +81,12 @@ under the License. </field> <field name="productId" sort-field="true"></field> <field name="partyIdFrom" sort-field="true"> - <hyperlink target="/partymgr/control/viewprofile" description="${partyIdFrom}" target-type="inter-app"> + <hyperlink target="/partymgr/control/viewprofile" description="${partyNameResultFrom.fullName} [${partyIdFrom}]" target-type="inter-app"> <parameter param-name="partyId" from-field="partyIdFrom"/> </hyperlink> </field> <field name="partyIdTo" sort-field="true"> - <hyperlink target="/partymgr/control/viewprofile" description="${partyIdTo}" target-type="inter-app"> + <hyperlink target="/partymgr/control/viewprofile" description="${partyNameResultTo.fullName} [${partyIdTo}]" target-type="inter-app"> <parameter param-name="partyId" from-field="partyIdTo"/> </hyperlink> </field> |
| Free forum by Nabble | Edit this page |
