(OFBIZ-10186) Thanks to Aditya Sharma for the corective patch git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1827892 13f79535-47bb-0310-9956-ffa450edef68
156 lines
10 KiB
XML
156 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>Accounting Services - Miscellaneous</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<service name="createPartyAcctgPreference" default-entity-name="PartyAcctgPreference" engine="groovy"
|
|
location="component://accounting/groovyScripts/admin/AcctgAdminServices.groovy" 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="createPartyPrefDocTypeTpl" default-entity-name="PartyPrefDocTypeTpl" engine="entity-auto" invoke="create" auth="true">
|
|
<description>Create a documentType preference for a party (organization)</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="partyPrefDocTypeTplId" type="String" mode="OUT"/>
|
|
<override name="partyId" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="expirePartyPrefDocTypeTpl" default-entity-name="PartyPrefDocTypeTpl" engine="entity-auto" invoke="expire" auth="true">
|
|
<description>Expire a documentType preference for a party (organization)</description>
|
|
<permission-service service-name="acctgPrefPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
|
|
<service name="getPartyAccountingPreferences" default-entity-name="PartyAcctgPreference" engine="groovy"
|
|
location="component://accounting/groovyScripts/admin/AcctgAdminServices.groovy" 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="groovy"
|
|
location="component://accounting/groovyScripts/admin/AcctgAdminServices.groovy" 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="groovy"
|
|
location="component://accounting/groovyScripts/admin/AcctgAdminServices.groovy" 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="groovy"
|
|
location="component://accounting/groovyScripts/admin/AcctgAdminServices.groovy" 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>
|