blob: 95f1b0c8151bca90895cb32fbe246fd96c4c187d [file] [log] [blame]
<?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/minilang/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="oldInvoiceSequenceEnumId"/>
<exclude field-name="invoiceSeqCustMethId"/>
<exclude field-name="invoiceIdPrefix"/>
<exclude field-name="lastInvoiceNumber"/>
<exclude field-name="lastInvoiceRestartDate"/>
<exclude field-name="useInvoiceIdForReturns"/>
<exclude field-name="oldQuoteSequenceEnumId"/>
<exclude field-name="quoteSeqCustMethId"/>
<exclude field-name="quoteIdPrefix"/>
<exclude field-name="lastQuoteNumber"/>
<exclude field-name="oldOrderSequenceEnumId"/>
<exclude field-name="orderSeqCustMethId"/>
<exclude field-name="orderIdPrefix"/>
<exclude field-name="lastOrderNumber"/>
</auto-attributes>
</service>
<service name="getPartyAccountingPreferences" default-entity-name="PartyAcctgPreference" engine="simple"
location="component://accounting/minilang/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.apache.ofbiz.entity.GenericValue" mode="OUT" optional="true"/>
</service>
<service name="setAcctgCompany" engine="simple"
location="component://accounting/minilang/admin/AcctgAdminServices.xml" invoke="setAcctgCompany" auth="true">
<description>Set Accounting Company when select</description>
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
<attribute type="String" mode="INOUT" name="organizationPartyId" optional="true"/>
</service>
<service name="updateFXConversion" engine="simple"
location="component://accounting/minilang/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"/>
<attribute name="fromDate" mode="IN" type="Timestamp" optional="true"/>
<attribute name="thruDate" mode="IN" type="Timestamp" 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>
<service name="getFXConversion" engine="simple"
location="component://accounting/minilang/admin/AcctgAdminServices.xml" invoke="getFXConversion">
<description>get the conversion rate</description>
<attribute type="String" mode="IN" name="uomId" optional="false"/>
<attribute type="String" mode="IN" name="uomIdTo" optional="false"/>
<attribute type="Timestamp" mode="IN" name="asOfTimestamp" optional="true"/>
<attribute type="BigDecimal" mode="OUT" name="conversionRate" optional="false"/>
</service>
</services>