I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes. If anyone has a better solution, please feel free to revert this commit and change it. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
132 lines
9.0 KiB
XML
132 lines
9.0 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>Accounting Services - Miscellaneous</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
<service name="createPartyAcctgPreference" default-entity-name="PartyAcctgPreference" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/admin/AcctgAdminServices.xml" invoke="createPartyAcctgPreference" auth="true">
|
|
<description>Create accounting preferences for a party (organization)</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updatePartyAcctgPreference" default-entity-name="PartyAcctgPreference" engine="entity-auto" invoke="update" auth="true">
|
|
<description>Update accounting preferences for a party (organization)</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true">
|
|
<!-- the following fields should not be updated because can cause big problems.
|
|
this allows for the local addition of fields which will appear automagically on the update screen. -->
|
|
<exclude field-name="fiscalYearStartMonth"/>
|
|
<exclude field-name="fiscalYearStartDay"/>
|
|
<exclude field-name="taxFormId"/>
|
|
<exclude field-name="cogsMethodId"/>
|
|
<exclude field-name="baseCurrencyUomId"/>
|
|
<exclude field-name="invoiceSequenceEnumId"/>
|
|
<exclude field-name="invoiceIdPrefix"/>
|
|
<exclude field-name="lastInvoiceNumber"/>
|
|
<exclude field-name="lastInvoiceRestartDate"/>
|
|
<exclude field-name="useInvoiceIdForReturns"/>
|
|
<exclude field-name="quoteSequenceEnumId"/>
|
|
<exclude field-name="quoteIdPrefix"/>
|
|
<exclude field-name="lastQuoteNumber"/>
|
|
<exclude field-name="orderSequenceEnumId"/>
|
|
<exclude field-name="orderIdPrefix"/>
|
|
<exclude field-name="lastOrderNumber"/>
|
|
</auto-attributes>
|
|
</service>
|
|
<service name="getPartyAccountingPreferences" default-entity-name="PartyAcctgPreference" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/admin/AcctgAdminServices.xml" invoke="getPartyAccountingPreferences" auth="true">
|
|
<description>Get accounting preferences for a party (organization)</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="VIEW"/>
|
|
<attribute type="String" mode="IN" name="organizationPartyId" optional="false"/>
|
|
<attribute name="partyAccountingPreference" type="org.ofbiz.entity.GenericValue" mode="OUT" optional="true"/>
|
|
</service>
|
|
|
|
<service name="updateFXConversion" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/admin/AcctgAdminServices.xml" invoke="updateFXConversion">
|
|
<description>Update the conversion rate between two currencies and expire the old conversion rates</description>
|
|
<permission-service service-name="acctgFxPermissionCheck" main-action="UPDATE"/>
|
|
<attribute type="String" mode="IN" name="uomId" optional="false"/>
|
|
<attribute type="String" mode="IN" name="uomIdTo" optional="false"/>
|
|
<attribute type="BigDecimal" mode="IN" name="conversionFactor" optional="false"/>
|
|
<attribute type="String" mode="IN" name="purposeEnumId" optional="true"/>
|
|
<attribute type="Timestamp" mode="IN" name="asOfTimestamp" optional="true"/>
|
|
</service>
|
|
|
|
<service name="createGlAccountTypeDefault" engine="entity-auto" default-entity-name="GlAccountTypeDefault" invoke="create" auth="true">
|
|
<description>Define a default GL account for an Account Type for a certain organisation party.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes mode="IN" entity-name="GlAccountTypeDefault" include="all" optional="false"/>
|
|
</service>
|
|
<service name="removeGlAccountTypeDefault" engine="entity-auto" default-entity-name="GlAccountTypeDefault" invoke="delete" auth="true">
|
|
<description>Remove a default GL account for an Account Type for a certain organisation party.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="DELETE"/>
|
|
<auto-attributes mode="IN" entity-name="GlAccountTypeDefault" include="pk" optional="false"/>
|
|
</service>
|
|
<service name="addInvoiceItemTypeGlAssignment" engine="entity-auto" default-entity-name="InvoiceItemTypeGlAccount" invoke="create" auth="true">
|
|
<description>add a override GL account number to a invoice Itemtype for a certain organisation party.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes mode="IN" entity-name="InvoiceItemTypeGlAccount" include="all" optional="false"/>
|
|
</service>
|
|
<service name="removeInvoiceItemTypeGlAssignment" engine="entity-auto" default-entity-name="InvoiceItemTypeGlAccount" invoke="delete" auth="true">
|
|
<description>Remove a override GL account number to a invoice type for a certain organisation party.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="DELETE"/>
|
|
<auto-attributes mode="IN" entity-name="InvoiceItemTypeGlAccount" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<service name="addPaymentTypeGlAssignment" engine="entity-auto" default-entity-name="PaymentGlAccountTypeMap" invoke="create" auth="true">
|
|
<description>add a default GL account type to a payment type.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes mode="IN" entity-name="PaymentGlAccountTypeMap" include="all" optional="false"/>
|
|
</service>
|
|
<service name="removePaymentTypeGlAssignment" engine="entity-auto" default-entity-name="PaymentGlAccountTypeMap" invoke="delete" auth="true">
|
|
<description>Remove a default GL account type from a payment type.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="DELETE"/>
|
|
<auto-attributes mode="IN" entity-name="PaymentGlAccountTypeMap" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<service name="addPaymentMethodTypeGlAssignment" engine="entity-auto" default-entity-name="PaymentMethodTypeGlAccount" invoke="create" auth="true">
|
|
<description>add a default GL account number to a payment method type.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes mode="IN" entity-name="PaymentMethodTypeGlAccount" include="all" optional="false"/>
|
|
</service>
|
|
<service name="removePaymentMethodTypeGlAssignment" engine="entity-auto" default-entity-name="PaymentMethodTypeGlAccount" invoke="delete" auth="true">
|
|
<description>Remove a default GL account number from a payment method type.</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="DELETE"/>
|
|
<auto-attributes mode="IN" entity-name="PaymentMethodTypeGlAccount" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<!-- Permission services -->
|
|
<service name="acctgPrefPermissionCheck" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="preferencePermissionCheck">
|
|
<description>Accounting Preferences Permission Checking Logic</description>
|
|
<implements service="permissionInterface"/>
|
|
</service>
|
|
<service name="acctgFxPermissionCheck" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgFxPermissionCheck">
|
|
<description>Accounting Foreign Exchange Permission Checking Logic</description>
|
|
<implements service="permissionInterface"/>
|
|
</service>
|
|
</services>
|