[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
152 lines
10 KiB
XML
152 lines
10 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
|
|
<description>WorkEffort Timesheet Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- Timesheet Services -->
|
|
<service name="createTimesheet" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="createTimesheet">
|
|
<description>Creates Timesheet</description>
|
|
<permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateTimesheetToInProcess" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="updateTimesheetToInProcess">
|
|
<description>Updates the Timesheet status back to in process to be able to correct errors</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="updateTimesheet" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="updateTimesheet">
|
|
<description>Updates Timesheet</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteTimesheet" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="deleteTimesheet">
|
|
<description>Deletes Timesheet</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createTimesheets" engine="simple"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="createTimesheets" auth="true">
|
|
<description>Creates Timesheet for multiple Parties in a single shot</description>
|
|
<attribute name="partyIdList" type="List" mode="IN" optional="true"/>
|
|
<attribute name="clientPartyId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="fromDate" type="String" mode="IN" optional="true"/>
|
|
<attribute name="thruDate" type="String" mode="IN" optional="true"/>
|
|
<attribute name="comments" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="createTimesheetForThisWeek" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="createTimesheetForThisWeek">
|
|
<description>Creates Timesheet for this week if no required date specified.</description>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true">
|
|
<exclude field-name="fromDate"/>
|
|
<exclude field-name="thruDate"/>
|
|
</auto-attributes>
|
|
<attribute name="requiredDate" type="Timestamp" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="addTimesheetToInvoice" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="addTimesheetToInvoice">
|
|
<description>Add Timesheet to Invoice</description>
|
|
<attribute name="timesheetId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="invoiceId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="addTimesheetToNewInvoice" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="addTimesheetToInvoice">
|
|
<description>Add Timesheet to Invoice</description>
|
|
<attribute name="timesheetId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyIdFrom" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="invoiceId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
|
|
<service name="addWorkEffortTimeToInvoice" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="addWorkEffortTimeToInvoice">
|
|
<description>Add WorkEffort Time to existing Invoice, with the option to combine all timeentries with the same rateType into one invoiceItem </description>
|
|
<permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
|
|
<attribute name="workEffortId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="invoiceId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="combineInvoiceItem" mode="IN" type="String" optional="true"/>
|
|
<attribute name="thruDate" mode="IN" type="Timestamp" optional="true"/>
|
|
</service>
|
|
<service name="addWorkEffortTimeToNewInvoice" default-entity-name="Timesheet" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="addWorkEffortTimeToInvoice">
|
|
<description>Add WorkEffort Time to a new Invoice with the option to combine all time entries with the same rateType into one invoiceItem</description>
|
|
<attribute name="workEffortId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyIdFrom" type="String" mode="IN" optional="false"/>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="invoiceId" type="String" mode="OUT" optional="false"/>
|
|
<attribute name="combineInvoiceItem" mode="IN" type="String" optional="true"/>
|
|
<attribute name="thruDate" mode="IN" type="Timestamp" optional="true"/>
|
|
</service>
|
|
|
|
<!-- TimesheetRole Services -->
|
|
<service name="createTimesheetRole" default-entity-name="TimesheetRole" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="createTimesheetRole">
|
|
<description>Creates TimesheetRole</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteTimesheetRole" default-entity-name="TimesheetRole" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="deleteTimesheetRole">
|
|
<description>Deletes TimesheetRole</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<!-- TimeEntry Services -->
|
|
<service name="createTimeEntry" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="createTimeEntry">
|
|
<description>Creates TimeEntry</description>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateTimeEntry" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="updateTimeEntry">
|
|
<description>Updates TimeEntry</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteTimeEntry" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="deleteTimeEntry">
|
|
<description>Deletes TimeEntry</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="unlinkInvoiceFromTimeEntry" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="unlinkInvoiceFromTimeEntry">
|
|
<description>Deletes TimeEntry</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<attribute name="invoiceId" type="String" mode="INOUT" optional="false"/>
|
|
</service>
|
|
<service name="getTimeEntryRate" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/script/org/ofbiz/workeffort/timesheet/TimesheetServices.xml" invoke="getTimeEntryRate">
|
|
<description>Creates TimeEntry</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<attribute name="currencyUomId" mode="IN" type="String" optional="true"/>
|
|
<attribute name="rateAmount" type="BigDecimal" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
<!-- WorkEffortRate Services (WorkEffortAssignmentRate Services now depreciated and replced by RateAmount services )-->
|
|
</services>
|