ilscipio/scipio-erp

View on GitHub
applications/setup/servicedef/services.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8" ?>
<!--
This file is subject to the terms and conditions defined in the
files 'LICENSE' and 'NOTICE', which are part of this source
code package.
-->

<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
    <description>Scipio Setup Component Services</description>
    <vendor>Ilscipio</vendor>
    <version>1.0</version>

    <service name="setupUpdatePartyAcctgPreference" default-entity-name="PartyAcctgPreference" engine="java" auth="true"
        location="com.ilscipio.scipio.accounting.ledger.AcctgAdminServices" invoke="updatePartyAcctgPreference">
        <description>
            SCIPIO: Update accounting preferences for a party (organization). This is a Scipio custom service based on the accounting updatePartyAcctgPreference service 
            intended for the setup component. The default one doesn't let update almost any of the fields, which from a point of view of a setup application is quite weird.
            In any case, We should determine with care, what can be updated and in which circumstances. 
        </description>
        <permission-service service-name="acctgPrefPermissionCheck" main-action="UPDATE"/>
        <auto-attributes mode="IN" include="pk" optional="false"></auto-attributes>
        <auto-attributes mode="IN" include="nonpk" optional="true"></auto-attributes>
    </service>
    
    <service name="createSetupTaxAuthority" default-entity-name="TaxAuthority" engine="group" auth="true">
        <!-- TODO: test it properly -->
        <group>
            <invoke name="createPartyGroup"/>
            <invoke name="createPartyRole"/>
            <invoke name="createTaxAuthority"/>
        </group>
    </service>
    

</services>