* Improved: Converted all Timesheet related CRUD entities from simple to entity-auto (OFBIZ-11616)
147 lines
9.4 KiB
XML
147 lines
9.4 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="entity-auto" auth="true" invoke="create">
|
|
<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"/>
|
|
<override name="statusId" default-value="TIMESHEET_IN_PROCESS"/>
|
|
</service>
|
|
<service name="updateTimesheet" default-entity-name="Timesheet" engine="entity-auto" auth="true" invoke="update">
|
|
<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="entity-auto" auth="true" invoke="delete">
|
|
<description>Deletes Timesheet</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createTimesheets" engine="simple"
|
|
location="component://workeffort/minilang/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/minilang/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/minilang/timesheet/TimesheetServices.xml" invoke="addTimesheetToInvoice">
|
|
<description>Add Timesheet to Invoice</description>
|
|
<permission-service service-name="workEffortManagerPermission" main-action="CREATE"/>
|
|
<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/minilang/timesheet/TimesheetServices.xml" invoke="addTimesheetToInvoice">
|
|
<description>Add Timesheet to Invoice</description>
|
|
<permission-service service-name="workEffortManagerPermission" main-action="CREATE"/>
|
|
<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/minilang/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/minilang/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>
|
|
<permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
|
|
<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="entity-auto" auth="true" invoke="create">
|
|
<description>Creates TimesheetRole</description>
|
|
<permission-service service-name="workEffortGenericPermission" main-action="CREATE"/>
|
|
<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="entity-auto" auth="true" invoke="delete">
|
|
<description>Deletes TimesheetRole</description>
|
|
<permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<!-- checkTimeSheetStatus -->
|
|
<service name="checkTimesheetStatus" default-entity-name="TimeEntry" engine="simple"
|
|
location="component://workeffort/minilang/timesheet/TimesheetServices.xml" auth="true" invoke="checkTimesheetStatus">
|
|
<description>Checks Timesheet status</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- TimeEntry Services -->
|
|
<service name="createTimeEntry" default-entity-name="TimeEntry" engine="entity-auto" auth="true" invoke="create">
|
|
<description>Creates TimeEntry</description>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<override name="fromDate" default-value="${date:nowTimestamp()}"/>
|
|
</service>
|
|
<service name="updateTimeEntry" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/minilang/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="entity-auto" auth="true" invoke="delete">
|
|
<description>Deletes TimeEntry</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="getTimeEntryRate" default-entity-name="TimeEntry" engine="simple" auth="true"
|
|
location="component://workeffort/minilang/timesheet/TimesheetServices.xml" invoke="getTimeEntryRate">
|
|
<description>Creates TimeEntry</description>
|
|
<permission-service service-name="workEffortManagerPermission" main-action="VIEW"/>
|
|
<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>
|