Author: hansbak
Date: Wed Feb 4 04:31:22 2009 New Revision: 740600 URL: http://svn.apache.org/viewvc?rev=740600&view=rev Log: improved 'not yet billed project hours' form to better check before invoicing Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Modified: ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml?rev=740600&r1=740599&r2=740600&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/widget/forms/ProjectForms.xml Wed Feb 4 04:31:22 2009 @@ -101,16 +101,22 @@ <condition-expr field-name="timesheetStatusId" operator="equals" value="TIMESHEET_COMPLETED"/> <condition-expr field-name="fromDate" operator="less" from-field="parameters.thruDate" ignore-if-empty="true"/> </condition-list> - <order-by field-name="-fromDate"/> + <order-by field-name="phaseName"/> + <order-by field-name="workEffortName"/> + <order-by field-name="timesheetPartyId"/> </entity-condition> </actions> - <field name="workEffortName"><display/></field> - <field name="phaseName"><display/></field> - <field name="timesheetId"><hyperlink description="${timesheetId}" target="Timesheet?timesheetId=${timesheetId}"/></field> - <field name="hours"><display/></field> - <field name="partyId"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName}"/></field> - <field name="rateTypeId" title="${uiLabelMap.ProjectMgrRateTypeId}"><display-entity entity-name="RateType" description="${description}"/></field> - <field name="fromDate"><display type="date"/></field> + <row-actions> + <set field="showPosition1" value="${bsh:String prev=(String)previousItem.get("workEffortId");return new Boolean(!(prev!=null&&prev.equals(workEffortId)));}" type="Boolean"/> + </row-actions> + <field name="workEffortId"><hidden/></field> + <field name="phaseName" position="1" use-when="showPosition1"><display/></field> + <field name="workEffortName" position="1" use-when="showPosition1"><display/></field> + <field name="timesheetId" position="2"><hyperlink description="${timesheetId}" target="Timesheet?timesheetId=${timesheetId}"/></field> + <field name="hours" position="2"><display/></field> + <field name="timesheetPartyId" position="2"><display-entity entity-name="PartyNameView" description="${firstName} ${middleName} ${lastName}" key-field-name="partyId"/></field> + <field name="rateTypeId" title="${uiLabelMap.ProjectMgrRateTypeId}" position="2"><display-entity entity-name="RateType" description="${description}"/></field> + <field name="fromDate" position="2"><display type="date"/></field> </form> <form name="ListProjects" type="list" list-name="listIt" paginate-target="FindProject" odd-row-style="alternate-row" default-table-style="basic-table hover-bar"> |
Free forum by Nabble | Edit this page |