2d part and end of an effort to remove trailing spaces

[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-04-08 10:54:51 +00:00
parent af6b6e5187
commit b9c3ddef08
2213 changed files with 21453 additions and 21464 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
The information here is based on the ASF Source Header and Copyright Notice
The information here is based on the ASF Source Header and Copyright Notice
Policy which can be found here:
http://www.apache.org/legal/src-headers.html
@@ -23,7 +23,7 @@ software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
=====================================================================
For Java and BSH and JS Files:
=====================================================================
@@ -35,9 +35,9 @@ For Java and BSH and JS Files:
* 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
@@ -124,9 +124,9 @@ For Properties Files:
# 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
+270 -270
View File
@@ -4,7 +4,7 @@ The source code that makes up The Apache Open For Business Project
licensed under the Apache License Version 2.0.
Other licenses used by libraries distributed with Apache OFBiz are listed
below. This file includes a list of all libraries distributed with Apache
below. This file includes a list of all libraries distributed with Apache
OFBiz and the full text of the license used for each.
For additional details, see the NOTICE file and:
@@ -300,18 +300,18 @@ ofbiz/trunk/applications/content/lib/poi.jar
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.
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
Apache Software License:
ofbiz/trunk/framework/webapp/lib/DataVision-1.0.0.jar
=========================================================================
@@ -321,50 +321,50 @@ Version 1.1
Copyright (c) 2000 The Apache Software Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The end-user documentation included with the redistribution, if any, must
3. The end-user documentation included with the redistribution, if any, must
include the following acknowledgment:
"This product includes software developed by the Apache Software Foundation
"This product includes software developed by the Apache Software Foundation
(http://www.apache.org/)."
Alternately, this acknowledgment may appear in the software itself, if and
Alternately, this acknowledgment may appear in the software itself, if and
wherever such third-party acknowledgments normally appear.
4. The names "Apache" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior written
4. The names "Apache" and "Apache Software Foundation" must not be used to
endorse or promote products derived from this software without prior written
permission. For written permission, please contact apache@apache.org.
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the Apache
5. Products derived from this software may not be called "Apache", nor may
"Apache" appear in their name, without prior written permission of the Apache
Software Foundation.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE
SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE
SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This software consists of voluntary contributions made by many individuals on
behalf of the Apache Software Foundation. For more information on the Apache
This software consists of voluntary contributions made by many individuals on
behalf of the Apache Software Foundation. For more information on the Apache
Software Foundation, please see <http://www.apache.org/>.
Portions of this software are based upon public domain software originally
written at the National Center for Supercomputing Applications, University of
Portions of this software are based upon public domain software originally
written at the National Center for Supercomputing Applications, University of
Illinois, Urbana-Champaign.
=========================================================================
@@ -375,33 +375,33 @@ ofbiz/trunk/framework/webapp/lib/jdom-1.1.jar
The JDOM License
Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the disclaimer that follows
these conditions in the documentation and/or other materials
notice, this list of conditions, and the disclaimer that follows
these conditions in the documentation and/or other materials
provided with the distribution.
3. The name "JDOM" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact <request_AT_jdom_DOT_org>.
4. Products derived from this software may not be called "JDOM", nor
may "JDOM" appear in their name, without prior written permission
from the JDOM Project Management <request_AT_jdom_DOT_org>.
In addition, we request (but do not require) that you include in the
end-user documentation provided with the redistribution and/or in the
In addition, we request (but do not require) that you include in the
end-user documentation provided with the redistribution and/or in the
software itself an acknowledgement equivalent to the following:
"This product includes software developed by the
JDOM Project (http://www.jdom.org/)."
Alternatively, the acknowledgment may be graphical using the logos
Alternatively, the acknowledgment may be graphical using the logos
available at http://www.jdom.org/images/logos.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
@@ -417,14 +417,14 @@ The JDOM License
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
This software consists of voluntary contributions made by many
individuals on behalf of the JDOM Project and was originally
This software consists of voluntary contributions made by many
individuals on behalf of the JDOM Project and was originally
created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
on the JDOM Project, please see <http://www.jdom.org/>
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
BSD License:
ofbiz/trunk/framework/base/lib/antisamy-bin.1.2.jar
ofbiz/trunk/framework/base/lib/freemarker-2.3.15.jar
@@ -449,23 +449,23 @@ ofbiz/trunk/specialpurpose/pos/lib/looks-2.0.2.jar
=========================================================================
The BSD License
The following is a BSD license template. To generate your own license, change
the values of OWNER, ORGANIZATION and YEAR from their original values as given
The following is a BSD license template. To generate your own license, change
the values of OWNER, ORGANIZATION and YEAR from their original values as given
here, and substitute your own.
Note: The advertising clause in the license appearing on BSD Unix files was
officially rescinded by the Director of the Office of Technology Licensing of
the University of California on July 22 1999. He states that clause 3 is
Note: The advertising clause in the license appearing on BSD Unix files was
officially rescinded by the Director of the Office of Technology Licensing of
the University of California on July 22 1999. He states that clause 3 is
"hereby deleted in its entirety."
Note the new BSD license is thus equivalent to the MIT License, except for the
Note the new BSD license is thus equivalent to the MIT License, except for the
no-endorsement final clause.
<OWNER> = Regents of the University of California
<ORGANIZATION> = University of California, Berkeley
<YEAR> = 1998
In the original BSD license, both occurrences of the phrase "COPYRIGHT HOLDERS
In the original BSD license, both occurrences of the phrase "COPYRIGHT HOLDERS
AND CONTRIBUTORS" in the disclaimer read "REGENTS AND CONTRIBUTORS".
Here is the license template:
@@ -473,33 +473,33 @@ Here is the license template:
Copyright (c) <YEAR>, <OWNER>
All rights reserved.
Redistribution and use in source and binary forms, with or without
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
Neither the name of the <ORGANIZATION> nor the names of its contributors may
be used to endorse or promote products derived from this software without
Neither the name of the <ORGANIZATION> nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
Mozilla Public License Version 1.1:
ofbiz/trunk/framework/guiapp/lib/XuiCoreSwing-v3.2rc2b.jar
ofbiz/trunk/framework/guiapp/lib/XuiOptional-v3.2rc2b.jar
@@ -976,7 +976,7 @@ EXHIBIT A -Mozilla Public License.
Original Code Source Code for Your Modifications.]
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
Common Public License:
ofbiz/trunk/specialpurpose/pos/lib/jcl.jar
ofbiz/trunk/specialpurpose/pos/lib/jpos18-controls.jar
@@ -1078,13 +1078,13 @@ by that Contributor alone and not by any other party; and
iv) states that source code for the Program is available from such
Contributor, and informs licensees how to obtain it in a reasonable manner on or
through a medium customarily used for software exchange.
through a medium customarily used for software exchange.
When the Program is made available in source code form:
a) it must be made available under this Agreement; and
b) a copy of this Agreement must be included with each copy of the Program.
b) a copy of this Agreement must be included with each copy of the Program.
Contributors may not remove or alter any copyright notices contained within the
Program.
@@ -1198,7 +1198,7 @@ after the cause of action arose. Each party waives its rights to a jury trial in
any resulting litigation.
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
MIT/X License:
ofbiz/trunk/framework/base/lib/icu4j_3_6.jar
ofbiz/trunk/framework/entity/lib/ofbiz-minerva.jar
@@ -1231,7 +1231,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
W3C License:
ofbiz/trunk/framework/base/lib/Tidy.jar
=========================================================================
@@ -1255,7 +1255,7 @@ W3C¨ SOFTWARE NOTICE AND LICENSE
1. The full text of this NOTICE in a location viewable to users of the
redistributed or derivative work.
2. Any pre-existing intellectual property disclaimers, notices, or terms and
conditions. If none exist, a short notice of the following form (hypertext is
preferred, text is permitted) should be used within the body of any
@@ -1263,7 +1263,7 @@ W3C¨ SOFTWARE NOTICE AND LICENSE
Web Consortium, (Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University). All Rights
Reserved. http://www.w3.org/Consortium/Legal/"
3. Notice of any changes or modifications to the W3C files, including the
date changes were made. (We recommend you provide URIs to the location from
which the code is derived.)
@@ -1284,7 +1284,7 @@ W3C¨ SOFTWARE NOTICE AND LICENSE
documentation will at all times remain with copyright holders.
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
Sun Public License:
ofbiz/trunk/framework/base/lib/scripting/bsh-2.0b4.jar
=========================================================================
@@ -1912,7 +1912,7 @@ ofbiz/trunk/framework/base/lib/jdbm-1.0.jar
*
* 4. Products derived from this Software may not be called "JDBM"
* nor may "JDBM" appear in their names without prior written
* permission of Cees de Groot.
* permission of Cees de Groot.
*
* 5. Due credit should be given to the JDBM Project
* (http://jdbm.sourceforge.net/).
@@ -1945,7 +1945,7 @@ COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 1.
Definitions.
1.1. Contributor means each individual or entity that creates or
1.1. Contributor means each individual or entity that creates or
contributes to the creation of Modifications.
1.2. Contributor Version means the combination of the Original Software,
@@ -1953,7 +1953,7 @@ prior Modifications used by a Contributor (if any), and the Modifications
made by that particular Contributor.
1.3. Covered Software means (a) the Original Software, or
(b) Modifications, or (c) the combination of files containing
(b) Modifications, or (c) the combination of files containing
Original Software with files containing Modifications, in each case
including portions thereof.
@@ -1962,7 +1962,7 @@ including portions thereof.
1.5. Initial Developer means the individual or entity that first makes
Original Software available under this License.
1.6. Larger Work means a work which combines Covered Software or portions
1.6. Larger Work means a work which combines Covered Software or portions
thereof with code not governed by the terms of this License.
1.7. License means this document.
@@ -1972,265 +1972,265 @@ possible, whether at the time of the initial grant or subsequently acquired,
any and all of the rights conveyed herein.
1.9. Modifications means the Source Code and Executable form of any
of the following: A. Any file that results from an addition to, deletion
from or modification of the contents of a file containing Original Software
or previous Modifications; B. Any new file that contains any part of the
Original Software or previous Modification; or C. Any new file that is
of the following: A. Any file that results from an addition to, deletion
from or modification of the contents of a file containing Original Software
or previous Modifications; B. Any new file that contains any part of the
Original Software or previous Modification; or C. Any new file that is
contributed or otherwise made available under the terms of this License.
1.10. Original Software means the Source Code and Executable form of
1.10. Original Software means the Source Code and Executable form of
computer software code that is originally released under this License.
1.11. Patent Claims means any patent claim(s), now owned or hereafter
1.11. Patent Claims means any patent claim(s), now owned or hereafter
acquired, including without limitation, method, process, and apparatus claims,
in any patent Licensable by grantor.
1.12. Source Code means (a) the common form of computer software code in
which modifications are made and (b) associated documentation included
1.12. Source Code means (a) the common form of computer software code in
which modifications are made and (b) associated documentation included
in or with such code.
1.13. You (or Your) means an individual or a legal entity exercising
rights under, and complying with all of the terms of, this License.
1.13. You (or Your) means an individual or a legal entity exercising
rights under, and complying with all of the terms of, this License.
For legal entities, You includes any entity which controls, is controlled by,
or is under common control with You. For purposes of this definition,
control means (a) the power, direct or indirect, to cause the direction or
management of such entity, whether by contract or otherwise, or (b) ownership of
more than fifty percent (50%) of the outstanding shares or beneficial
or is under common control with You. For purposes of this definition,
control means (a) the power, direct or indirect, to cause the direction or
management of such entity, whether by contract or otherwise, or (b) ownership of
more than fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants.
2.1. The Initial Developer Grant. Conditioned upon Your compliance with
Section 3.1 below and subject to third party intellectual property claims,
the Initial Developer hereby grants You a world-wide, royalty-free,
2.1. The Initial Developer Grant. Conditioned upon Your compliance with
Section 3.1 below and subject to third party intellectual property claims,
the Initial Developer hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by Initial Developer, to use, reproduce, modify, display, perform,
sublicense and distribute the Original Software (or portions thereof), with or
(a) under intellectual property rights (other than patent or trademark)
Licensable by Initial Developer, to use, reproduce, modify, display, perform,
sublicense and distribute the Original Software (or portions thereof), with or
without Modifications, and/or as part of a Larger Work; and
(b) under Patent Claims infringed by the making, using or selling of
Original Software, to make, have made, use, practice, sell, and offer for sale,
(b) under Patent Claims infringed by the making, using or selling of
Original Software, to make, have made, use, practice, sell, and offer for sale,
and/or otherwise dispose of the Original Software (or portions thereof);
(c) The licenses granted in Sections 2.1(a) and (b) are effective on the date
Initial Developer first distributes or otherwise makes the Original Software
(c) The licenses granted in Sections 2.1(a) and (b) are effective on the date
Initial Developer first distributes or otherwise makes the Original Software
available to a third party under the terms of this License;
(d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for
code that You delete from the Original Software, or (2) for infringements caused
by: (i) the modification of the Original Software, or (ii) the combination of
(d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for
code that You delete from the Original Software, or (2) for infringements caused
by: (i) the modification of the Original Software, or (ii) the combination of
the Original Software with other software or devices.
2.2. Contributor Grant. Conditioned upon Your compliance with Section 3.1 below
and subject to third party intellectual property claims, each Contributor hereby
2.2. Contributor Grant. Conditioned upon Your compliance with Section 3.1 below
and subject to third party intellectual property claims, each Contributor hereby
grants You a world-wide, royalty-free, non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by Contributor to use, reproduce, modify, display, perform,
sublicense and distribute the Modifications created by such Contributor
(or portions thereof), either on an unmodified basis, with other Modifications,
(a) under intellectual property rights (other than patent or trademark)
Licensable by Contributor to use, reproduce, modify, display, perform,
sublicense and distribute the Modifications created by such Contributor
(or portions thereof), either on an unmodified basis, with other Modifications,
as Covered Software and/or as part of a Larger Work; and
(b) under Patent Claims infringed by the making, using, or selling of
Modifications made by that Contributor either alone and/or in combination with
its Contributor Version (or portions of such combination), to make, use, sell,
offer for sale, have made, and/or otherwise dispose of: (1) Modifications made
by that Contributor (or portions thereof); and (2) the combination of
Modifications made by that Contributor with its Contributor Version
(b) under Patent Claims infringed by the making, using, or selling of
Modifications made by that Contributor either alone and/or in combination with
its Contributor Version (or portions of such combination), to make, use, sell,
offer for sale, have made, and/or otherwise dispose of: (1) Modifications made
by that Contributor (or portions thereof); and (2) the combination of
Modifications made by that Contributor with its Contributor Version
(or portions of such combination).
(c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the
date Contributor first distributes or otherwise makes the Modifications
(c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the
date Contributor first distributes or otherwise makes the Modifications
available to a third party.
(d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for
any code that Contributor has deleted from the Contributor Version; (2) for
infringements caused by: (i) third party modifications of Contributor Version,
or (ii) the combination of Modifications made by that Contributor with other
software (except as part of the Contributor Version) or other devices; or (3)
under Patent Claims infringed by Covered Software in the absence of
(d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for
any code that Contributor has deleted from the Contributor Version; (2) for
infringements caused by: (i) third party modifications of Contributor Version,
or (ii) the combination of Modifications made by that Contributor with other
software (except as part of the Contributor Version) or other devices; or (3)
under Patent Claims infringed by Covered Software in the absence of
Modifications made by that Contributor.
3. Distribution Obligations.
3.1. Availability of Source Code. Any Covered Software that You distribute or
otherwise make available in Executable form must also be made available in
Source Code form and that Source Code form must be distributed only under the
terms of this License. You must include a copy of this License with every copy
of the Source Code form of the Covered Software You distribute or otherwise
make available. You must inform recipients of any such Covered Software in
Executable form as to how they can obtain such Covered Software in Source Code
form in a reasonable manner on or through a medium customarily used
3.1. Availability of Source Code. Any Covered Software that You distribute or
otherwise make available in Executable form must also be made available in
Source Code form and that Source Code form must be distributed only under the
terms of this License. You must include a copy of this License with every copy
of the Source Code form of the Covered Software You distribute or otherwise
make available. You must inform recipients of any such Covered Software in
Executable form as to how they can obtain such Covered Software in Source Code
form in a reasonable manner on or through a medium customarily used
for software exchange.
3.2. Modifications. The Modifications that You create or to which You contribute
are governed by the terms of this License. You represent that You believe Your
Modifications are Your original creation(s) and/or You have sufficient rights
3.2. Modifications. The Modifications that You create or to which You contribute
are governed by the terms of this License. You represent that You believe Your
Modifications are Your original creation(s) and/or You have sufficient rights
to grant the rights conveyed by this License.
3.3. Required Notices. You must include a notice in each of Your Modifications
that identifies You as the Contributor of the Modification. You may not remove
or alter any copyright, patent or trademark notices contained within the
Covered Software, or any notices of licensing or any descriptive text giving
3.3. Required Notices. You must include a notice in each of Your Modifications
that identifies You as the Contributor of the Modification. You may not remove
or alter any copyright, patent or trademark notices contained within the
Covered Software, or any notices of licensing or any descriptive text giving
attribution to any Contributor or the Initial Developer.
3.4. Application of Additional Terms. You may not offer or impose any terms on
any Covered Software in Source Code form that alters or restricts the applicable
version of this License or the recipients rights hereunder. You may choose to
offer, and to charge a fee for, warranty, support, indemnity or liability
obligations to one or more recipients of Covered Software. However, you may do
so only on Your own behalf, and not on behalf of the Initial Developer or any
Contributor. You must make it absolutely clear that any such warranty, support,
indemnity or liability obligation is offered by You alone, and You hereby agree
to indemnify the Initial Developer and every Contributor for any liability
incurred by the Initial Developer or such Contributor as a result of warranty,
3.4. Application of Additional Terms. You may not offer or impose any terms on
any Covered Software in Source Code form that alters or restricts the applicable
version of this License or the recipients rights hereunder. You may choose to
offer, and to charge a fee for, warranty, support, indemnity or liability
obligations to one or more recipients of Covered Software. However, you may do
so only on Your own behalf, and not on behalf of the Initial Developer or any
Contributor. You must make it absolutely clear that any such warranty, support,
indemnity or liability obligation is offered by You alone, and You hereby agree
to indemnify the Initial Developer and every Contributor for any liability
incurred by the Initial Developer or such Contributor as a result of warranty,
support, indemnity or liability terms You offer.
3.5. Distribution of Executable Versions. You may distribute the Executable form
of the Covered Software under the terms of this License or under the terms of a
license of Your choice, which may contain terms different from this License,
provided that You are in compliance with the terms of this License and that the
license for the Executable form does not attempt to limit or alter the
recipients rights in the Source Code form from the rights set forth in this
License. If You distribute the Covered Software in Executable form under a
different license, You must make it absolutely clear that any terms which
differ from this License are offered by You alone, not by the Initial
Developer or Contributor. You hereby agree to indemnify the Initial Developer
and every Contributor for any liability incurred by the Initial Developer or
3.5. Distribution of Executable Versions. You may distribute the Executable form
of the Covered Software under the terms of this License or under the terms of a
license of Your choice, which may contain terms different from this License,
provided that You are in compliance with the terms of this License and that the
license for the Executable form does not attempt to limit or alter the
recipients rights in the Source Code form from the rights set forth in this
License. If You distribute the Covered Software in Executable form under a
different license, You must make it absolutely clear that any terms which
differ from this License are offered by You alone, not by the Initial
Developer or Contributor. You hereby agree to indemnify the Initial Developer
and every Contributor for any liability incurred by the Initial Developer or
such Contributor as a result of any such terms You offer.
3.6. Larger Works. You may create a Larger Work by combining Covered Software
with other code not governed by the terms of this License and distribute the
Larger Work as a single product. In such a case, You must make sure the
3.6. Larger Works. You may create a Larger Work by combining Covered Software
with other code not governed by the terms of this License and distribute the
Larger Work as a single product. In such a case, You must make sure the
requirements of this License are fulfilled for the Covered Software.
4. Versions of the License.
4.1. New Versions. Sun Microsystems, Inc. is the initial license steward and may
publish revised and/or new versions of this License from time to time. Each
version will be given a distinguishing version number. Except as provided in
Section 4.3, no one other than the license steward has the right to modify
4.1. New Versions. Sun Microsystems, Inc. is the initial license steward and may
publish revised and/or new versions of this License from time to time. Each
version will be given a distinguishing version number. Except as provided in
Section 4.3, no one other than the license steward has the right to modify
this License.
4.2. Effect of New Versions. You may always continue to use, distribute or
otherwise make the Covered Software available under the terms of the version of
the License under which You originally received the Covered Software. If the
Initial Developer includes a notice in the Original Software prohibiting it
from being distributed or otherwise made available under any subsequent version
of the License, You must distribute and make the Covered Software available
under the terms of the version of the License under which You originally
received the Covered Software. Otherwise, You may also choose to use,
distribute or otherwise make the Covered Software available under the terms of
4.2. Effect of New Versions. You may always continue to use, distribute or
otherwise make the Covered Software available under the terms of the version of
the License under which You originally received the Covered Software. If the
Initial Developer includes a notice in the Original Software prohibiting it
from being distributed or otherwise made available under any subsequent version
of the License, You must distribute and make the Covered Software available
under the terms of the version of the License under which You originally
received the Covered Software. Otherwise, You may also choose to use,
distribute or otherwise make the Covered Software available under the terms of
any subsequent version of the License published by the license steward.
4.3. Modified Versions. When You are an Initial Developer and You want to create
a new license for Your Original Software, You may create and use a modified
version of this License if You: (a) rename the license and remove any references
to the name of the license steward (except to note that the license differs
from this License); and (b) otherwise make it clear that the license contains
4.3. Modified Versions. When You are an Initial Developer and You want to create
a new license for Your Original Software, You may create and use a modified
version of this License if You: (a) rename the license and remove any references
to the name of the license steward (except to note that the license differs
from this License); and (b) otherwise make it clear that the license contains
terms which differ from this License.
5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN
AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH
YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU
(NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY
NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS
5. DISCLAIMER OF WARRANTY. COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN
AS IS BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH
YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU
(NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY
NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY
CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS
AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
6. TERMINATION.
6.1. This License and the rights granted hereunder will terminate automatically
if You fail to comply with terms herein and fail to cure such breach within 30
days of becoming aware of the breach. Provisions which, by their nature, must
6.1. This License and the rights granted hereunder will terminate automatically
if You fail to comply with terms herein and fail to cure such breach within 30
days of becoming aware of the breach. Provisions which, by their nature, must
remain in effect beyond the termination of this License shall survive.
6.2. If You assert a patent infringement claim (excluding declaratory judgment
actions) against Initial Developer or a Contributor (the Initial Developer or
Contributor against whom You assert such claim is referred to as Participant)
alleging that the Participant Software (meaning the Contributor Version where
the Participant is a Contributor or the Original Software where the Participant
is the Initial Developer) directly or indirectly infringes any patent, then any
and all rights granted directly or indirectly to You by such Participant, the
Initial Developer (if the Initial Developer is not the Participant) and all
Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days
notice from Participant terminate prospectively and automatically at the
expiration of such 60 day notice period, unless if within such 60 day period
You withdraw Your claim with respect to the Participant Software against such
Participant either unilaterally or pursuant to a written agreement
6.2. If You assert a patent infringement claim (excluding declaratory judgment
actions) against Initial Developer or a Contributor (the Initial Developer or
Contributor against whom You assert such claim is referred to as Participant)
alleging that the Participant Software (meaning the Contributor Version where
the Participant is a Contributor or the Original Software where the Participant
is the Initial Developer) directly or indirectly infringes any patent, then any
and all rights granted directly or indirectly to You by such Participant, the
Initial Developer (if the Initial Developer is not the Participant) and all
Contributors under Sections 2.1 and/or 2.2 of this License shall, upon 60 days
notice from Participant terminate prospectively and automatically at the
expiration of such 60 day notice period, unless if within such 60 day period
You withdraw Your claim with respect to the Participant Software against such
Participant either unilaterally or pursuant to a written agreement
with Participant.
6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user
licenses that have been validly granted by You or any distributor hereunder
prior to termination (excluding licenses granted to You by any distributor)
6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user
licenses that have been validly granted by You or any distributor hereunder
prior to termination (excluding licenses granted to You by any distributor)
shall survive termination.
7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY,
WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE,
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE,
COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH
DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR
PERSONAL INJURY RESULTING FROM SUCH PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE
LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND
7. LIMITATION OF LIABILITY. UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY,
WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE,
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT,
SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE,
COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE POSSIBILITY OF SUCH
DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR
PERSONAL INJURY RESULTING FROM SUCH PARTYS NEGLIGENCE TO THE EXTENT APPLICABLE
LAW PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION AND
LIMITATION MAY NOT APPLY TO YOU.
8. U.S. GOVERNMENT END USERS. The Covered Software is a commercial item, as that
term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of commercial computer
software (as that term is defined at 48 C.F.R. 252.227-7014(a)(1)) and
commercial computer software documentation as such terms are used in
48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R.
227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire
Covered Software with only those rights set forth herein. This U.S. Government
Rights clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause
or provision that addresses Government rights in computer software
8. U.S. GOVERNMENT END USERS. The Covered Software is a commercial item, as that
term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of commercial computer
software (as that term is defined at 48 C.F.R. 252.227-7014(a)(1)) and
commercial computer software documentation as such terms are used in
48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R.
227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire
Covered Software with only those rights set forth herein. This U.S. Government
Rights clause is in lieu of, and supersedes, any other FAR, DFAR, or other clause
or provision that addresses Government rights in computer software
under this License.
9. MISCELLANEOUS. This License represents the complete agreement concerning
subject matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent necessary
to make it enforceable. This License shall be governed by the law of the
jurisdiction specified in a notice contained within the Original Software
(except to the extent applicable law, if any, provides otherwise), excluding such
jurisdictions conflict-of-law provisions. Any litigation relating to this
License shall be subject to the jurisdiction of the courts located in the
jurisdiction and venue specified in a notice contained within the Original
Software, with the losing party responsible for costs, including, without
limitation, court costs and reasonable attorneys fees and expenses.
The application of the United Nations Convention on Contracts for the
International Sale of Goods is expressly excluded. Any law or regulation which
provides that the language of a contract shall be construed against the drafter
shall not apply to this License. You agree that You alone are responsible for
compliance with the United States export administration regulations (and the
export control laws and regulation of any other countries) when You use,
9. MISCELLANEOUS. This License represents the complete agreement concerning
subject matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent necessary
to make it enforceable. This License shall be governed by the law of the
jurisdiction specified in a notice contained within the Original Software
(except to the extent applicable law, if any, provides otherwise), excluding such
jurisdictions conflict-of-law provisions. Any litigation relating to this
License shall be subject to the jurisdiction of the courts located in the
jurisdiction and venue specified in a notice contained within the Original
Software, with the losing party responsible for costs, including, without
limitation, court costs and reasonable attorneys fees and expenses.
The application of the United Nations Convention on Contracts for the
International Sale of Goods is expressly excluded. Any law or regulation which
provides that the language of a contract shall be construed against the drafter
shall not apply to this License. You agree that You alone are responsible for
compliance with the United States export administration regulations (and the
export control laws and regulation of any other countries) when You use,
distribute or otherwise make available any Covered Software.
10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and the Contributors,
each party is responsible for claims and damages arising, directly or indirectly,
out of its utilization of rights under this License and You agree to work with
Initial Developer and Contributors to distribute such responsibility on an
equitable basis. Nothing herein is intended or shall be deemed to constitute
10. RESPONSIBILITY FOR CLAIMS. As between Initial Developer and the Contributors,
each party is responsible for claims and damages arising, directly or indirectly,
out of its utilization of rights under this License and You agree to work with
Initial Developer and Contributors to distribute such responsibility on an
equitable basis. Nothing herein is intended or shall be deemed to constitute
any admission of liability.
NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
(CDDL) The code released under the CDDL shall be governed by the laws of the
State of California (excluding conflict-of-law provisions). Any litigation
relating to this License shall be subject to the jurisdiction of the Federal
Courts of the Northern District of California and the state courts of the State
NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION LICENSE
(CDDL) The code released under the CDDL shall be governed by the laws of the
State of California (excluding conflict-of-law provisions). Any litigation
relating to this License shall be subject to the jurisdiction of the Federal
Courts of the Northern District of California and the state courts of the State
of California, with venue lying in Santa Clara County, California.
=========================================================================
Apache OFBiz includes the XML Schema files from the Open Applications Group, Inc
NOTE: these files and the license are for an older version of the OAGIS
NOTE: these files and the license are for an older version of the OAGIS
specification, namely version 7.2.1.
ofbiz/specialpurpose/oagis/dtd/002_confirm_bod_004.xsd
ofbiz/specialpurpose/oagis/dtd/068_sync_inventory_005.xsd
@@ -2256,7 +2256,7 @@ include the following on ALL copies of the file that you use:
1. A reference to the original Open Applications Group resource
2. A notice of the form "Copyright (c) Open Applications Group. All Rights Reserved
When space permits, inclusion of the full text of this NOTICE should be provided.
When space permits, inclusion of the full text of this NOTICE should be provided.
Attribution is requested to be provided in any software, documentation, or other items
or products that you create related to the implementation of the contents of this file.
@@ -2281,7 +2281,7 @@ Please contact the Open Applications Group at www.openapplications.org with any
questions or comments regarding the usage of this material.
=========================================================================
The following libraries distributed with Apache OFBiz are licensed under the
The following libraries distributed with Apache OFBiz are licensed under the
Eclipse Public License - v 1.0:
ofbiz/trunk/framework/catalina/lib/tomcat-6.0.16-jasper-jdt.jar
=========================================================================
@@ -2497,11 +2497,11 @@ after the cause of action arose. Each party waives its rights to a jury trial in
any resulting litigation.
==================================================================================
Apache Ofbiz includes prototype.js from http://www.prototypejs.org licensed under
the terms of the MIT License
Apache Ofbiz includes prototype.js from http://www.prototypejs.org licensed under
the terms of the MIT License
ofbiz/trunk/framework/images/webapp/images/prototype/prototype.js
===================================================================================
Apache Ofbiz includes Scriptalous javascript lib from http://script.aculo.us
Apache Ofbiz includes Scriptalous javascript lib from http://script.aculo.us
licensed under the terms of the MIT License
ofbiz/trunk/framework/images/webapp/images/prototype/controls.js
ofbiz/trunk/framework/images/webapp/images/prototype/dragdrop.js
@@ -2512,13 +2512,13 @@ ofbiz/trunk/framework/images/webapp/images/prototype/sound.js
ofbiz/trunk/framework/images/webapp/images/prototype/unittest.js
ofbiz/trunk/framework/images/webapp/images/prototype/builder.js
===================================================================================
Apache Ofbiz includes LivePipe Control Suite from http://livepipe.net/projects/control_suite/
licensed under the terms of the MIT License
Apache Ofbiz includes LivePipe Control Suite from http://livepipe.net/projects/control_suite/
licensed under the terms of the MIT License
ofbiz/trunk/framework/images/webapp/images/prototype/control.progress_bar.js
ofbiz/trunk/framework/images/webapp/images/prototype/progress_bar.css
===================================================================================
Apache Ofbiz includes validation.js file from
http://www.tetlaw.id.au/view/javascript/really-easy-field-validation.
Apache Ofbiz includes validation.js file from
http://www.tetlaw.id.au/view/javascript/really-easy-field-validation.
ofbiz/trunk/framework/images/webapp/images/prototype/validation.js
validation.js is Licensed as follows
===================================================================================
@@ -2526,7 +2526,7 @@ validation.js is Licensed as follows
http://tetlaw.id.au/view/javascript/really-easy-field-validation
Andrew Tetlaw
Version 1.5.4.1 (2007-01-05)
Copyright (c) 2007 Andrew Tetlaw
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
@@ -2535,10 +2535,10 @@ validation.js is Licensed as follows
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+42 -42
View File
@@ -32,15 +32,15 @@ Foundation.
This product is developed by the Apache Avalon Project.
http://avalon.apache.org
The names "Avalon" and "Merlin" must not be used to endorse or promote
products derived from this software without prior written permission.
The names "Avalon" and "Merlin" must not be used to endorse or promote
products derived from this software without prior written permission.
For written permission, please contact pmc@avalon.apache.org.
=========================================================================
== Apache Batik Notice ==
=========================================================================
This software contains code from the World Wide Web Consortium (W3C) for the
This software contains code from the World Wide Web Consortium (W3C) for the
Document Object Model API (DOM API) and SVG Document Type Definition (DTD).
This software contains code from the International Organisation for Standardization
@@ -61,10 +61,10 @@ and are placed here unaltered.
(C) Copyright 1997,2004 International Business Machines Corporation. All rights reserved.
(C) Copyright IBM Corp. 2003.
(C) Copyright IBM Corp. 2003.
The portion of the functionTests under 'nist' was originally
developed by the National Institute of Standards and Technology (NIST),
The portion of the functionTests under 'nist' was originally
developed by the National Institute of Standards and Technology (NIST),
an agency of the United States Department of Commerce, and adapted by
International Business Machines Corporation in accordance with the NIST
Software Acknowledgment and Redistribution document at
@@ -117,8 +117,8 @@ The full snowball package is available from
== Apache Tomcat Notice ==
=========================================================================
Java compilation software for JSP pages is provided by Eclipse,
which is open source software. The orginal software and
Java compilation software for JSP pages is provided by Eclipse,
which is open source software. The orginal software and
related infomation is available at
http://www.eclipse.org.
@@ -129,7 +129,7 @@ http://www.eclipse.org.
Portions of this software were originally based on the following:
- software copyright (c) 1999, IBM Corporation., http://www.ibm.com.
- software copyright (c) 1999, Sun Microsystems., http://www.sun.com.
- voluntary contributions made by Paul Eng on behalf of the
- voluntary contributions made by Paul Eng on behalf of the
Apache Software Foundation that were originally developed at iClick, Inc.,
software copyright (c) 1999.
@@ -148,31 +148,31 @@ Portions of this software was originally based on the following:
- software copyright (c) 2003, IBM Corporation., http://www.ibm.com.
- voluntary contributions made by Ovidiu Predescu <ovidiu@cup.hp.com> on
behalf of the Apache Software Foundation that was originally developed
at Hewlett Packard Company.
at Hewlett Packard Company.
The binary distribution package (ie. jars, samples and documentation) of
this product includes software developed by the following:
- The Apache Software Foundation
- Xerces Java - see xercesImpl.README.txt
- The Apache Software Foundation
- Xerces Java - see xercesImpl.README.txt
- JAXP 1.3 APIs - see xml-apis.README.txt
- Bytecode Engineering Library - see BCEL.README.txt
- Regular Expression - see regexp.README.txt
- Scott Hudson, Frank Flannery, C. Scott Ananian
- CUP Parser Generator runtime (javacup\runtime) - see runtime.README.txt
- Scott Hudson, Frank Flannery, C. Scott Ananian
- CUP Parser Generator runtime (javacup\runtime) - see runtime.README.txt
The source distribution package (ie. all source and tools required to build
Xalan Java) of this product includes software developed by the following:
- The Apache Software Foundation
- Xerces Java - see xercesImpl.README.txt
- Xerces Java - see xercesImpl.README.txt
- JAXP 1.3 APIs - see xml-apis.README.txt
- Bytecode Engineering Library - see BCEL.README.txt
- Regular Expression - see regexp.README.txt
- Ant - see ant.README.txt
- Stylebook doc tool - see stylebook-1.0-b3_xalan-2.README.txt
- Elliot Joel Berk and C. Scott Ananian
- Stylebook doc tool - see stylebook-1.0-b3_xalan-2.README.txt
- Elliot Joel Berk and C. Scott Ananian
- Lexical Analyzer Generator (JLex) - see JLex.README.txt
=========================================================================
@@ -188,7 +188,7 @@ Portions of this software was originally based on the following:
- software copyright (c) 2001-2002, Sun Microsystems.,
http://www.sun.com.
- software copyright (c) 2003, IBM Corporation., http://www.ibm.com.
=========================================================================
== Barcode4J Notice ==
=========================================================================
@@ -210,7 +210,7 @@ Visigoth Software Society (http://www.visigoths.org/).
== JDBM Notice ==
=========================================================================
This product includes software developed by the JDBM Project
This product includes software developed by the JDBM Project
(http://jdbm.sourceforge.net/).
=========================================================================
@@ -218,7 +218,7 @@ This product includes software developed by the JDBM Project
=========================================================================
==============================================================
Jetty Web Container
Jetty Web Container
Copyright 1995-2006 Mort Bay Consulting Pty Ltd
==============================================================
@@ -226,16 +226,16 @@ The Jetty Web Container is Copyright Mort Bay Consulting Pty Ltd
unless otherwise noted. It is licensed under the apache 2.0
license.
The javax.servlet package used by Jetty is copyright
Sun Microsystems, Inc and Apache Software Foundation. It is
The javax.servlet package used by Jetty is copyright
Sun Microsystems, Inc and Apache Software Foundation. It is
distributed under the Common Development and Distribution License.
You can obtain a copy of the license at
You can obtain a copy of the license at
https://glassfish.dev.java.net/public/CDDLv1.0.html.
The UnixCrypt.java code ~Implements the one way cryptography used by
Unix systems for simple password protection. Copyright 1996 Aki Yoshida,
modified April 2001 by Iris Van den Broeke, Daniel Deville.
Permission to use, copy, modify and distribute UnixCrypt
Permission to use, copy, modify and distribute UnixCrypt
for non-commercial or commercial purposes and without fee is
granted provided that the copyright notice appears in all copies.
@@ -244,7 +244,7 @@ from project Glassfish http://glassfish.dev.java.net. Copyright 2005
Sun Microsystems, Inc. and portions Copyright Apache Software Foundation.
Some portions of the code are Copyright:
2006 Tim Vernum
2006 Tim Vernum
1999 Jason Gilbert.
The jboss integration module contains some LGPL code.
@@ -333,31 +333,31 @@ Thomas Fuchs (http://script.aculo.us).
=========================================================================
== BIS Crypto TSU exception notice ==
=========================================================================
This distribution includes cryptographic software. The country in
which you currently reside may have restrictions on the import,
possession, use, and/or re-export to another country, of
encryption software. BEFORE using any encryption software, please
This distribution includes cryptographic software. The country in
which you currently reside may have restrictions on the import,
possession, use, and/or re-export to another country, of
encryption software. BEFORE using any encryption software, please
check your country's laws, regulations and policies concerning the
import, possession, or use, and re-export of encryption software, to
import, possession, or use, and re-export of encryption software, to
see if this is permitted. See <http://www.wassenaar.org/> for more
information.
The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms. The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.
The following provides more details on the included cryptographic
software:
* Various classes in OFBiz, including DesCrypt, HashCrypt, and
* Various classes in OFBiz, including DesCrypt, HashCrypt, and
BlowFishCrypt use libraries from the Sun Java JDK API including
java.security.* and javax.crypto.* (the JCE, Java Cryptography
java.security.* and javax.crypto.* (the JCE, Java Cryptography
Extensions API)
* Other classes such as HttpClient and various related ones use
the JSSE (Java Secure Sockets Extension) API
@@ -375,5 +375,5 @@ Copyright (c) 2001-2003 jpim development team.
== JavaCC Notice ==
=========================================================================
This product includes software developed by the javacc team
This product includes software developed by the javacc team
(http://javacc.dev.java.net/). The included version is 4.1.
+15 -15
View File
@@ -1,6 +1,6 @@
DESCRIPTION
This file contains information about libraries that are supported
by code in OFBiz but that are left out of SVN because of licensing issues.
by code in OFBiz but that are left out of SVN because of licensing issues.
What is below is a list of jar files and where to put them, and the file(s)
to change to include them in the OFBiz build and/or run-time configuration.
@@ -10,7 +10,7 @@ on the old Undersun SVN server in the specialized/libraries component directory.
-=- Workflow __________________________________________________________________________________________________________________________________________________
-Shark (LGPL):
http://www.enhydra.org/workflow/shark/
http://www.enhydra.org/workflow/shark/
Current version : http://shark.objectweb.org/doc/1.1/release_notes/release_notes.html
framework/shark/lib:
js.jar
@@ -49,26 +49,26 @@ on the old Undersun SVN server in the specialized/libraries component directory.
sharkwebservice-wfxmlapi-1.2_1.jar
sharkwebservice-wfxmlutils-1.2_1.jar
sharkxpdl-standard-1.2_1.jar
wrd-1.2_1.jar
wrd-1.2_1.jar
NOTE: these jars based on a build from version 1.2_1 may be found attached
in https://issues.apache.org/jira/browse/OFBIZ-552
in https://issues.apache.org/jira/browse/OFBIZ-552
For an updated version some changes to the integration code in the
shark component may be necessary.
TO BUILD: once the jars are in place you can build from the
TO BUILD: once the jars are in place you can build from the
ofbiz/framework/shark directory, or you can add it to the build
list in the ofbiz/build.xml file in the framework-builds file list.
TO DEPLOY: once the build is done the Shark container must be setup in the
ofbiz-containers.xml file or other containers file being used.
The shark-container container should be un-commented.
TO DEPLOY, PART 2: to get the component to load on startup, and get the webapp
in place and such the shark component needs to be uncommented in the
in place and such the shark component needs to be uncommented in the
framework/component-load.xml file.
You may experiment online with Jawe XPDL editor:
http://www.enhydra.org/workflow/jawe/index.html
There is an example XPDL file in https://issues.apache.org/jira/browse/OFBIZ-552
it came from http://www.wfmc.org/standards/docs/xpdl_sample/sample%20workflow%20process.xpdl
For the moment Shark engine in OFBiz refuses to load it (OK in Jawe)
For the moment Shark engine in OFBiz refuses to load it (OK in Jawe)
-=- Web Presentation: ________________________________________________________________________________________________________________________________________________
@@ -104,7 +104,7 @@ on the old Undersun SVN server in the specialized/libraries component directory.
If you're using the Sun JDK/JRE 1.4 or greater, the jar is located under jre/lib and it's called plugin.jar.
You may also find it in the old Undersun SVN server in the specialized/libraries component directory.
TO BUILD: Copy plugin.jar in framework/base/lib. This seems only needed under Windows.
-=- Reporting: ________________________________________________________________________________________________________________________________________________
@@ -118,26 +118,26 @@ on the old Undersun SVN server in the specialized/libraries component directory.
http://java.sun.com/products/jimi
FOP may require a library called JIMI to print certain graphical formats such as GIFs. Jimi is a Sun library which cannot
be included in OFBIZ due to licensing incompatibility, but you can download it yourself at: http://java.sun.com/products/jimi/
and rename the ZIP file that comes with it as jimi-xxx.jar, then copy it into the same directory as fop.jar, which at this time
and rename the ZIP file that comes with it as jimi-xxx.jar, then copy it into the same directory as fop.jar, which at this time
is ${ofbiz.home}/framework/webapp/lib/
-=- POS _______________________________________________________________________________________________________________________________________________________
-GTK Swing (LGPL):
http://sourceforge.net/projects/gtkswing/
TO DEPLOY: base/config/pos-containers.xml:org.gtk.java.swing.plaf.gtk.GtkLookAndFeel for look and feel
TO DEPLOY: base/config/pos-containers.xml:org.gtk.java.swing.plaf.gtk.GtkLookAndFeel for look and feel
-JavaPOS hardware drivers
TO DEPLOY: specialpurpose/pos/lib/
Epson Printer TM-T88III (Proprietay licence) needs jpos18-controls.jar (version specific)
https://www.epson-pos.com/cgi-bin/sdssm/main/td_login.jsp
epsonJposService180.jar
epsonJposService180.jar
epsonJposServiceCommon.jar
Star (Proprietay licence)
http://www.star-micronics.co.jp/service/s_print/starjavapos_win32-linux-macosx_yyyymmdd.zip.htm
starjavapos.jar
starjavapos.jar
-=- Office (Word, etc) File Handling __________________________________________________________________________________________________________________________
+13 -13
View File
@@ -4,7 +4,7 @@ Welcome to Apache OFBiz!
If you have a release build all you need to run OFBiz is a 1.5 series
JDK (not just the JRE, the full J2SDK).
However if you have downloaded ofbiz from SVN then you should
However if you have downloaded ofbiz from SVN then you should
load the demo data (strongly advised) with the following command
on the command line:
@@ -28,7 +28,7 @@ http://localhost:8080/webtools/
You can log in with the user "admin" and password "ofbiz".
For more details about running a build, or for information on
getting, building, and running the source please see the
getting, building, and running the source please see the
Apache OFBiz Setup Guide:
http://docs.ofbiz.org/x/rwM
@@ -49,31 +49,31 @@ Enjoy!
=========================================================================
== BIS Crypto TSU exception notice ==
=========================================================================
This distribution includes cryptographic software. The country in
which you currently reside may have restrictions on the import,
possession, use, and/or re-export to another country, of
encryption software. BEFORE using any encryption software, please
This distribution includes cryptographic software. The country in
which you currently reside may have restrictions on the import,
possession, use, and/or re-export to another country, of
encryption software. BEFORE using any encryption software, please
check your country's laws, regulations and policies concerning the
import, possession, or use, and re-export of encryption software, to
import, possession, or use, and re-export of encryption software, to
see if this is permitted. See <http://www.wassenaar.org/> for more
information.
The U.S. Government Department of Commerce, Bureau of Industry and
Security (BIS), has classified this software as Export Commodity
Security (BIS), has classified this software as Export Commodity
Control Number (ECCN) 5D002.C.1, which includes information security
software using or performing cryptographic functions with asymmetric
algorithms. The form and manner of this Apache Software Foundation
distribution makes it eligible for export under the License Exception
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
ENC Technology Software Unrestricted (TSU) exception (see the BIS
Export Administration Regulations, Section 740.13) for both object
code and source code.
The following provides more details on the included cryptographic
software:
* Various classes in OFBiz, including DesCrypt, HashCrypt, and
* Various classes in OFBiz, including DesCrypt, HashCrypt, and
BlowFishCrypt use libraries from the Sun Java JDK API including
java.security.* and javax.crypto.* (the JCE, Java Cryptography
java.security.* and javax.crypto.* (the JCE, Java Cryptography
Extensions API)
* Other classes such as HttpClient and various related ones use
the JSSE (Java Secure Sockets Extension) API
+2 -2
View File
@@ -7,9 +7,9 @@
# 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
+2 -2
View File
@@ -7,9 +7,9 @@ REM # regarding copyright ownership. The ASF licenses this file
REM # to you under the Apache License, Version 2.0 (the
REM # "License"); you may not use this file except in compliance
REM # with the License. You may obtain a copy of the License at
REM #
REM #
REM # http://www.apache.org/licenses/LICENSE-2.0
REM #
REM #
REM # Unless required by applicable law or agreed to in writing,
REM # software distributed under the License is distributed on an
REM # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -6,9 +6,9 @@
# 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
@@ -17,7 +17,7 @@
# under the License.
###############################################################################
# User Interface properties/defaults of the extented Accounting component.
# User Interface properties/defaults of the extented Accounting component.
# what should the default of the payment to invoice processing be?
# paymentProcessing by invoice or paymentprocessing by invoiceitem?
@@ -6,9 +6,9 @@
# 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
@@ -17,7 +17,7 @@
# under the License.
###############################################################################
#
# Arithmetic properties for configuring BigDecimal calculations
# Arithmetic properties for configuring BigDecimal calculations
#
# This is only used for rounding of GL posting trial balances and should be 1 digit more than any other financial rounding setting.
@@ -6,9 +6,9 @@
# 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
@@ -206,7 +206,7 @@ payment.verisign.checkCvv2=Y
# Pre-Authorize Payments (if set to N will auto-capture)
payment.verisign.preAuth=Y
# Set to false to not transmit anything
# Set to false to not transmit anything
payment.verisign.enable_transmit=true
############################################
@@ -6,9 +6,9 @@
# 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
@@ -38,7 +38,7 @@ payment.clearcommerce.alias=UK11113322GBP
payment.clearcommerce.effectiveAlias=
# Process mode (Y: approve / N: decline / R: random / P: production) // Y,N,R = test mode Y approve always
payment.clearcommerce.processMode=Y
payment.clearcommerce.processMode=Y
# Server URL of the payment processor
payment.clearcommerce.serverURL=https://www.uat.apixml.netq.hsbc.com
@@ -7,9 +7,9 @@
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
@@ -20,12 +20,12 @@
<entity-engine-xml>
<PortletCategory portletCategoryId="ACCOUNTING" description="Accounting related data"/>
<PortalPortlet portalPortletId="ListCustomerInvoices" portletName="List Customer Invoices"
screenName="ListCustomerInvoices"
screenLocation="component://accounting/widget/InvoiceScreens.xml"
description="List Invoices for a certain customer who is just logged in"
<PortalPortlet portalPortletId="ListCustomerInvoices" portletName="List Customer Invoices"
screenName="ListCustomerInvoices"
screenLocation="component://accounting/widget/InvoiceScreens.xml"
description="List Invoices for a certain customer who is just logged in"
securityServiceName="portalPermissionIsCustomer" securityMainAction="VIEW"/>
<PortletPortletCategory portalPortletId="ListCustomerInvoices" portletCategoryId="ACCOUNTING"/>
</entity-engine-xml>
@@ -29,7 +29,7 @@ under the License.
<SecurityGroupPermission groupId="FLEXADMIN" permissionId="PAYPROC_VIEW"/>
<SecurityGroupPermission groupId="VIEWADMIN" permissionId="PAYPROC_VIEW"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="PAYPROC_ADMIN"/>
<!-- Payment Information security -->
<SecurityPermission description="View Payment Information." permissionId="PAY_INFO_VIEW"/>
<SecurityPermission description="Create Payment Information." permissionId="PAY_INFO_CREATE"/>
@@ -43,7 +43,7 @@ under the License.
<SecurityGroupPermission groupId="FLEXADMIN" permissionId="PAY_INFO_VIEW"/>
<SecurityGroupPermission groupId="VIEWADMIN" permissionId="PAY_INFO_VIEW"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="PAY_INFO_ADMIN"/>
<!-- Accounting Manager security -->
<SecurityPermission description="View operations in the Accounting Manager." permissionId="ACCOUNTING_VIEW"/>
<SecurityPermission description="Create operations in the Accounting Manager." permissionId="ACCOUNTING_CREATE"/>
@@ -57,7 +57,7 @@ under the License.
<SecurityGroupPermission groupId="FLEXADMIN" permissionId="ACCOUNTING_VIEW"/>
<SecurityGroupPermission groupId="VIEWADMIN" permissionId="ACCOUNTING_VIEW"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCOUNTING_ADMIN"/>
<!-- Manual Payment security -->
<SecurityPermission description="Manual Payment Transaction." permissionId="MANUAL_PAYMENT"/>
<SecurityGroupPermission groupId="FULLADMIN" permissionId="MANUAL_PAYMENT"/>
@@ -75,7 +75,7 @@ under the License.
<SecurityGroupPermission groupId="FULLADMIN" permissionId="ACCOUNTING_PRINT_CHECKS"/>
<SecurityGroupPermission groupId="FLEXADMIN" permissionId="ACCOUNTING_PRINT_CHECKS"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCOUNTING_PRINT_CHECKS"/>
<!-- Set up accounting organization preferences security -->
<SecurityPermission description="View organization accounting preferences" permissionId="ACCTG_PREF_VIEW"/>
<SecurityPermission description="Set organization accounting preferences" permissionId="ACCTG_PREF_CREATE"/>
@@ -87,7 +87,7 @@ under the License.
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_PREF_UPDATE"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_PREF_DELETE"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_PREF_VIEW"/>
<SecurityPermission description="Set foreign exchange rates" permissionId="ACCTG_FX_UPDATE"/>
<SecurityGroupPermission groupId="FULLADMIN" permissionId="ACCTG_FX_UPDATE"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_FX_UPDATE"/>
@@ -111,5 +111,5 @@ under the License.
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_ATX_CREATE"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_ATX_UPDATE"/>
<SecurityGroupPermission groupId="BIZADMIN" permissionId="ACCTG_ATX_DELETE"/>
</entity-engine-xml>
@@ -53,7 +53,7 @@ under the License.
<AcctgTransType acctgTransTypeId="OUTGOING_PAYMENT" description="Outgoing Payment" hasTable="N" parentTypeId=""/><!-- FIXME: replace with "DISBURSEMENT" -->
<AcctgTransType acctgTransTypeId="PAYMENT_APPL" description="Payment Applied" hasTable="N" parentTypeId=""/>
<AcctgTransEntryType acctgTransEntryTypeId="_NA_" description="Not Applicable" hasTable="N" parentTypeId=""/>
<StatusType description="Acctg Entry Reconcile" hasTable="N" parentTypeId="" statusTypeId="ACCTG_ENREC_STATUS"/>
@@ -81,11 +81,11 @@ under the License.
<Enumeration description="Automatic Replenish" enumCode="AUTOMATIC" enumId="FARP_AUTOMATIC" sequenceId="01" enumTypeId="FARP_TYPE"/>
<Enumeration description="Manual Replenish" enumCode="MANUAL" enumId="FARP_MANUAL" sequenceId="02" enumTypeId="FARP_TYPE"/>
<Enumeration description="No Replenish" enumCode="NONE" enumId="FARP_NONE" sequenceId="03" enumTypeId="FARP_TYPE"/>
<EnumerationType description="Financial Account Replenish Method" enumTypeId="FARP_METHOD" hasTable="N" parentTypeId=""/>
<Enumeration description="Top-off" enumCode="TOP_OFF" enumId="FARP_TOP_OFF" sequenceId="01" enumTypeId="FARP_METHOD"/>
<Enumeration description="Replenish-level" enumCode="REPLENISH_LEVEL" enumId="FARP_REPLENISH_LEVEL" sequenceId="02" enumTypeId="FARP_METHOD"/>
<FinAccountTransType description="Deposit" finAccountTransTypeId="DEPOSIT" hasTable="N" parentTypeId=""/>
<FinAccountTransType description="Withdraw" finAccountTransTypeId="WITHDRAWAL" hasTable="N" parentTypeId=""/>
<FinAccountTransType description="Adjustment" finAccountTransTypeId="ADJUSTMENT" hasTable="N" parentTypeId=""/>
@@ -119,7 +119,7 @@ under the License.
<Enumeration description="Initial Deposit" enumId="FATR_IDEPOSIT" enumCode="IDEPOSIT" enumTypeId="FINACCT_TRANS_REASON" sequenceId="02"/>
<Enumeration description="Replenishment" enumId="FATR_REPLENISH" enumCode="REPLENISH" enumTypeId="FINACCT_TRANS_REASON" sequenceId="03"/>
<Enumeration description="Refund" enumId="FATR_REFUND" enumCode="REFUND" enumTypeId="FINACCT_TRANS_REASON" sequenceId="04"/>
<FixedAssetType description="Equipment" fixedAssetTypeId="EQUIPMENT" hasTable="N" parentTypeId=""/>
<FixedAssetType description="The fixed asset used in the operation-routing definition" fixedAssetTypeId="PRODUCTION_EQUIPMENT" hasTable="N" parentTypeId=""/>
<FixedAssetType description="Group of machines, used for task and routing definition" fixedAssetTypeId="GROUP_EQUIPMENT" hasTable="N" parentTypeId=""/>
@@ -149,7 +149,7 @@ under the License.
<Enumeration description="Desktop" enumCode="DESKTOP" enumId="FAC_DESKTOP" sequenceId="01" enumTypeId="FXAST_COMPU_HARDWARE"/>
<Enumeration description="Laptop" enumCode="LAPTOP" enumId="FAC_LAPTOP" sequenceId="01" enumTypeId="FXAST_COMPU_HARDWARE"/>
<Enumeration description="Monitor" enumCode="MONITOR" enumId="FAC_MONITOR" sequenceId="01" enumTypeId="FXAST_COMPU_HARDWARE"/>
<EnumerationType description="Computer Software" enumTypeId="FXAST_COMPU_SOFTWARE" hasTable="N" parentTypeId="FXAST_CLASS"/>
<Enumeration description="Programming Software" enumCode="PRG_SOFTWARE" enumId="FAC_PRG_SOFTWARE" sequenceId="01" enumTypeId="FXAST_COMPU_SOFTWARE"/>
<Enumeration description="System Software" enumCode="SYS_SOFTWARE" enumId="FAC_SYS_SOFTWARE" sequenceId="01" enumTypeId="FXAST_COMPU_SOFTWARE"/>
@@ -170,7 +170,7 @@ under the License.
<StatusItem description="In Process" sequenceId="05" statusCode="IN_PROCESS" statusId="FAM_IN_PROCESS" statusTypeId="FIXEDAST_MNT_STATUS"/>
<StatusItem description="Completed" sequenceId="10" statusCode="COMPLETED" statusId="FAM_COMPLETED" statusTypeId="FIXEDAST_MNT_STATUS"/>
<StatusItem description="Cancelled" sequenceId="99" statusCode="CANCELLED" statusId="FAM_CANCELLED" statusTypeId="FIXEDAST_MNT_STATUS"/>
<!-- The following three elements set up a regularly scheduled job that will automatically create
fixed asset maintenances from ProductMaint time intervals. -->
<TemporalExpression tempExprId="FAM_AUTO_CREATE" tempExprTypeId="FREQUENCY" integer1="12" integer2="5"/>
@@ -186,10 +186,10 @@ under the License.
<FixedAssetProductType description="Sale of Asset" fixedAssetProductTypeId="FAPT_SALE"/>
<!-- These classes are used to classify gl accounts for financial statement purposes: balance sheet, income statement, cash flow statement,
statement of shareholders' equity. We could get fancier with different types of accounts: Investments vs PP&E, classes of equity,
statement of shareholders' equity. We could get fancier with different types of accounts: Investments vs PP&E, classes of equity,
classes of debt, etc. over time -->
<!--
DEBIT
|___> NON_POSTING
|
@@ -241,7 +241,7 @@ under the License.
|_________> CURRENT_LIABILITY
|
|_________> LONGTERM_LIABILITY
RESOURCE
-->
@@ -257,8 +257,8 @@ under the License.
<GlAccountClass description="Current Liability" glAccountClassId="CURRENT_LIABILITY" parentClassId="LIABILITY"/>
<GlAccountClass description="Long Term Liability" glAccountClassId="LONGTERM_LIABILITY" parentClassId="LIABILITY"/>
<GlAccountClass description="Equity" glAccountClassId="EQUITY" parentClassId="CREDIT"/>
<GlAccountClass description="Owners Equity" glAccountClassId="OWNERS_EQUITY" parentClassId="EQUITY"/>
<GlAccountClass description="Retained Earnings" glAccountClassId="RETAINED_EARNINGS" parentClassId="EQUITY"/>
<GlAccountClass description="Owners Equity" glAccountClassId="OWNERS_EQUITY" parentClassId="EQUITY"/>
<GlAccountClass description="Retained Earnings" glAccountClassId="RETAINED_EARNINGS" parentClassId="EQUITY"/>
<GlAccountClass description="Equity Distribution" glAccountClassId="DISTRIBUTION" parentClassId="DEBIT"/>
<GlAccountClass description="Return of Capital" glAccountClassId="RETURN_OF_CAPITAL" parentClassId="DISTRIBUTION"/>
<GlAccountClass description="Dividends" glAccountClassId="DIVIDEND" parentClassId="DISTRIBUTION"/>
@@ -270,7 +270,7 @@ under the License.
<GlAccountClass description="Cash Expense" glAccountClassId="CASH_EXPENSE" parentClassId="EXPENSE"/>
<GlAccountClass description="Interest Expense" glAccountClassId="INTEREST_EXPENSE" parentClassId="CASH_EXPENSE"/> <!-- useful for EBITDA, coverage ratios, etc. -->
<GlAccountClass description="Cost of Goods Sold Expense" glAccountClassId="COGS_EXPENSE" parentClassId="CASH_EXPENSE"/> <!-- used for Gross Profit -->
<GlAccountClass description="Selling, General, and Administrative Expense" glAccountClassId="SGA_EXPENSE" parentClassId="CASH_EXPENSE"/>
<GlAccountClass description="Selling, General, and Administrative Expense" glAccountClassId="SGA_EXPENSE" parentClassId="CASH_EXPENSE"/>
<GlAccountClass description="Non-Cash Expense" glAccountClassId="NON_CASH_EXPENSE" parentClassId="EXPENSE"/>
<GlAccountClass description="Depreciation" glAccountClassId="DEPRECIATION" parentClassId="NON_CASH_EXPENSE"/>
<GlAccountClass description="Amortization" glAccountClassId="AMORTIZATION" parentClassId="NON_CASH_EXPENSE"/>
@@ -303,7 +303,7 @@ under the License.
<GlAccountType description="Inventory Item Value Adjustment" glAccountTypeId="INV_ADJ_VAL" hasTable="N" parentTypeId=""/>
<GlAccountType description="Raw Materials Inventory" glAccountTypeId="RAWMAT_INVENTORY" hasTable="N" parentTypeId=""/>
<GlAccountType description="Work In Progress Inventory" glAccountTypeId="WIP_INVENTORY" hasTable="N" parentTypeId=""/>
<GlAccountType description="Tax" glAccountTypeId="TAX_ACCOUNT" hasTable="N" parentTypeId=""/>
<GlAccountType description="Profit Loss" glAccountTypeId="PROFIT_LOSS_ACCOUNT" hasTable="N" parentTypeId=""/>
<GlAccountType description="Sales" glAccountTypeId="SALES_ACCOUNT" hasTable="N" parentTypeId=""/>
@@ -325,11 +325,11 @@ under the License.
<GlAccountType description="Uninvoiced Shipment Receipts" glAccountTypeId="UNINVOICED_SHIP_RCPT" hasTable="N" parentTypeId="CURRENT_LIABILITY"/>
<GlAccountType description="Purchase Price Variance" glAccountTypeId="PURCHASE_PRICE_VAR" hasTable="N" parentTypeId="OTHER_EXPENSE"/>
<GlAccountType description="Prepaid Expenses" glAccountTypeId="PREPAID_EXPENSES" hasTable="N" parentTypeId="CURRENT_ASSET"/>
<GlAccountType description="Income" glAccountTypeId="INCOME" hasTable="N" parentTypeId=""/>
<GlAccountType description="Other Income" glAccountTypeId="OTHER_INCOME" hasTable="N" parentTypeId="INCOME"/>
<GlAccountType description="Interest Income" glAccountTypeId="INTEREST_INCOME" hasTable="N" parentTypeId="INCOME"/>
<GlAccountType description="Interest Income Receivables" glAccountTypeId="INTRSTINC_RECEIVABLE" hasTable="N" parentTypeId="ACCOUNTS_RECEIVABLE"/>
<GlAccountType description="Prepaid Expenses" glAccountTypeId="PREPAID_EXPENSES" hasTable="N" parentTypeId="CURRENT_ASSET"/>
@@ -347,7 +347,7 @@ under the License.
<GlAccountType description="Foreign Exchange Gain/Loss" glAccountTypeId="FX_GAIN_LOSS_ACCT" hasTable="N" parentTypeId="OTHER_EXPENSE"/>
<GlAccountType description="Foreign Exchange Gain" glAccountTypeId="FX_GAIN_ACCOUNT" hasTable="N" parentTypeId="FX_GAIN_LOSS_ACCT"/>
<GlAccountType description="Foreign Exchange Loss" glAccountTypeId="FX_LOSS_ACCOUNT" hasTable="N" parentTypeId="FX_GAIN_LOSS_ACCT"/>
<GlResourceType description="Money" glResourceTypeId="MONEY"/>
<GlResourceType description="Raw Materials" glResourceTypeId="RAW_MATERIALS"/>
<GlResourceType description="Labor" glResourceTypeId="LABOR"/>
@@ -433,7 +433,7 @@ under the License.
<InvoiceItemType description="Invoice Inventory Product Item" hasTable="N" invoiceItemTypeId="PINV_INVPRD_ITEM" parentTypeId="PINV_PROD_ITEM"/>
<InvoiceItemType description="Invoice Supplies (to Expense) Product Item" hasTable="N" invoiceItemTypeId="PINV_SUPLPRD_ITEM" parentTypeId="PINV_PROD_ITEM"/>
<InvoiceItemType description="Invoice Fixed Asset Product Item" hasTable="N" invoiceItemTypeId="PINV_FXASTPRD_ITEM" parentTypeId="PINV_PROD_ITEM"/>
<InvoiceItemType description="Invoice Work-Effort Item" hasTable="N" invoiceItemTypeId="PINV_WE_ITEM" parentTypeId=""/>
<InvoiceItemType description="Invoice Time-Entry Item" hasTable="N" invoiceItemTypeId="PINV_TE_ITEM" parentTypeId=""/>
@@ -484,11 +484,11 @@ under the License.
<InvoiceItemType description="Return Warranty" hasTable="N" invoiceItemTypeId="SRT_WARRANTY_ADJ" parentTypeId=""/>
<InvoiceItemType description="Return Marketing Package Adjustment" hasTable="N" invoiceItemTypeId="SRT_MKTG_PKG_ADJ" parentTypeId=""/>
<InvoiceItemType description="Return Manual Adjustment" hasTable="N" invoiceItemTypeId="SRT_MAN_ADJ" parentTypeId=""/>
<!-- invoice item types for commission invoices -->
<InvoiceItemType description="Commission Invoice Line Item" hasTable="N" invoiceItemTypeId="COMM_INV_ITEM" parentTypeId=""/>
<InvoiceItemType description="Commission Invoice Adjustment" hasTable="N" invoiceItemTypeId="COMM_INV_ADJ" parentTypeId=""/>
<InvoiceType description="Purchase Invoice" hasTable="N" invoiceTypeId="PURCHASE_INVOICE" parentTypeId="PURCHASE_INVOICE"/>
<InvoiceType description="Sales Invoice" hasTable="N" invoiceTypeId="SALES_INVOICE" parentTypeId="SALES_INVOICE"/>
<InvoiceType description="Customer Return" hasTable="N" invoiceTypeId="CUST_RTN_INVOICE" parentTypeId="PURCHASE_INVOICE"/>
@@ -573,14 +573,14 @@ under the License.
<!-- items for commission invoices -->
<InvoiceItemTypeMap invoiceTypeId="COMMISSION_INVOICE" invoiceItemMapKey="COM_COMM_ITEM" invoiceItemTypeId="COMM_INV_ITEM"/>
<InvoiceItemTypeMap invoiceTypeId="COMMISSION_INVOICE" invoiceItemMapKey="COM_COMM_ADJ" invoiceItemTypeId="COMM_INV_ADJ"/>
<InvoiceItemTypeMap invoiceTypeId="INTEREST_INVOICE" invoiceItemMapKey="INT_INV_CHRG" invoiceItemTypeId="INV_INTRST_CHRG"/>
<!--New invoiceType: "Payrol"-->
<InvoiceType description="Payrol" hasTable="N" invoiceTypeId="PAYROL_INVOICE" parentTypeId="PURCHASE_INVOICE"/>
<!-- invoiceItem Types:-->
<InvoiceItemType description="Payrol" hasTable="N" invoiceItemTypeId="PAYROL" parentTypeId=""/><!-- to group the itemType parentId's -->
<InvoiceItemType description="Earnings and Hours" hasTable="N" invoiceItemTypeId="PAYROL_EARN_HOURS" parentTypeId="PAYROL"/>
<InvoiceItemType description="Hourly Rate" hasTable="N" invoiceItemTypeId="PAYROL_HRLY_RATE" parentTypeId="PAYROL_EARN_HOURS"/>
<InvoiceItemType description="Sick Hourly Rate" hasTable="N" invoiceItemTypeId="PAYROL_HRLY_RATE_SIC" parentTypeId="PAYROL_EARN_HOURS"/>
@@ -594,7 +594,7 @@ under the License.
<InvoiceItemType description="Office Exp. reimboursement" hasTable="N" invoiceItemTypeId="PAYROL_OFF_EXP_REIMB" parentTypeId="PAYROL_EARN_HOURS"/>
<InvoiceItemType description="Pay Period adj(over pay)" hasTable="N" invoiceItemTypeId="PAYROL_PAYPER_OVRPAY" parentTypeId="PAYROL_EARN_HOURS"/>
<InvoiceItemType description="Pay Period adj pay" hasTable="N" invoiceItemTypeId="PAYROL_PAYPER_PAY" parentTypeId="PAYROL_EARN_HOURS"/>
<InvoiceItemType description="Deductions from Gross" hasTable="N" invoiceItemTypeId="PAYROL_DD_FROM_GROSS" parentTypeId="PAYROL"/>
<InvoiceItemType description="125*Compy. Contr Other Prem." hasTable="N" invoiceItemTypeId="PAYROL_DD_125COMPY" parentTypeId="PAYROL_DD_FROM_GROSS" defaultGlAccountId=""/>/>
<InvoiceItemType description="125*PPO (pre tax)" hasTable="N" invoiceItemTypeId="PAYROL_DD_125PPO" parentTypeId="PAYROL_DD_FROM_GROSS" defaultGlAccountId=""/>
@@ -609,13 +609,13 @@ under the License.
<InvoiceItemType description="Union Dues" hasTable="N" invoiceItemTypeId="PAYROL_DD_UNION" parentTypeId="PAYROL_DD_FROM_GROSS" defaultGlAccountId=""/>
<InvoiceItemType description="Unpaid Salary Time off." hasTable="N" invoiceItemTypeId="PAYROL_DD_SAL_TIMOFF" parentTypeId="PAYROL_DD_FROM_GROSS" defaultGlAccountId=""/>
<InvoiceItemType description="Wage Garnishment" hasTable="N" invoiceItemTypeId="PAYROL_DD_WAG_GARN" parentTypeId="PAYROL_DD_FROM_GROSS" defaultGlAccountId=""/>
<InvoiceItemType description="Taxes" hasTable="N" invoiceItemTypeId="PAYROL_TAXES" parentTypeId="PAYROL"/>
<InvoiceItemType description="Federal Witholding" hasTable="N" invoiceItemTypeId="PAYROL_TAX_FEDERAL" parentTypeId="PAYROL_TAXES" defaultGlAccountId=""/>
<InvoiceItemType description="Social Security Employee" hasTable="N" invoiceItemTypeId="PAYROL_SOC_SEC_EMPL" parentTypeId="PAYROL_TAXES" defaultGlAccountId=""/>
<InvoiceItemType description="Medicare Employee" hasTable="N" invoiceItemTypeId="PAYROL_TAX_MED_EMPL" parentTypeId="PAYROL_TAXES" defaultGlAccountId=""/>
<InvoiceItemType description="MD Withholding" hasTable="N" invoiceItemTypeId="PAYROL_TAX_MD_WITHOL" parentTypeId="PAYROL_TAXES" defaultGlAccountId=""/>
<!-- An Enumeration to identify the taxable invoice item types. For these, the only important fields are enumId and enumTypeId. -->
<EnumerationType description="Taxable Invoice Item Types" enumTypeId="TAXABLE_INV_ITM_TY" hasTable="N" parentTypeId=""/>
<Enumeration description="Sales Invoice Sales Tax" enumCode="INV_SALES_TAX" enumId="INV_SALES_TAX" sequenceId="01" enumTypeId="TAXABLE_INV_ITM_TY"/>
@@ -623,7 +623,7 @@ under the License.
<Enumeration description="Purchase Invoice Sales Tax" enumCode="PINV_SALES_TAX" enumId="PINV_SALES_TAX" sequenceId="03" enumTypeId="TAXABLE_INV_ITM_TY"/>
<Enumeration description="Purchase Invoice Line Item Sales Tax" enumCode="PITM_SALES_TAX" enumId="PITM_SALES_TAX" sequenceId="04" enumTypeId="TAXABLE_INV_ITM_TY"/>
<Enumeration description="Customer Return Sales Tax Adjustment" enumCode="CRT_SALES_TAX_ADJ" enumId="CRT_SALES_TAX_ADJ" sequenceId="05" enumTypeId="TAXABLE_INV_ITM_TY"/>
<PaymentMethodType description="Credit Card" paymentMethodTypeId="CREDIT_CARD"/>
<PaymentMethodType description="Gift Card" paymentMethodTypeId="GIFT_CARD"/>
<PaymentMethodType description="Gift Certificate" paymentMethodTypeId="GIFT_CERTIFICATE"/>
@@ -663,8 +663,8 @@ under the License.
<!-- payment types for POS PAID IN/OUT -->
<PaymentType description="POS Paid Out" hasTable="N" parentTypeId="DISBURSEMENT" paymentTypeId="POS_PAID_OUT"/>
<PaymentType description="POS Paid In" hasTable="N" parentTypeId="RECEIPT" paymentTypeId="POS_PAID_IN"/>
<PaymentType description="POS Paid In" hasTable="N" parentTypeId="RECEIPT" paymentTypeId="POS_PAID_IN"/>
<!-- Credit Cart Types -->
<EnumerationType description="Credit Card Type" enumTypeId="CREDIT_CARD_TYPE" hasTable="N" parentTypeId=""/>
<Enumeration description="Visa" enumCode="Visa" enumId="CCT_VISA" sequenceId="01" enumTypeId="CREDIT_CARD_TYPE"/>
@@ -679,7 +679,7 @@ under the License.
<Enumeration description="Switch" enumCode="Switch" enumId="CCT_SWITCH" sequenceId="10" enumTypeId="CREDIT_CARD_TYPE"/>
<Enumeration description="Visa Electron" enumCode="VisaElectron" enumId="CCT_VISAELECTRON" sequenceId="11" enumTypeId="CREDIT_CARD_TYPE"/>
<Enumeration description="Universal Air Travel Plan" enumCode="UATP" enumId="CCT_UATP" sequenceId="12" enumTypeId="CREDIT_CARD_TYPE"/>
<StatusType description="Budget" hasTable="N" parentTypeId="" statusTypeId="BUDGET_STATUS"/>
<StatusType description="Party Asset" hasTable="N" parentTypeId="" statusTypeId="PARTY_ASSET_STATUS"/>
@@ -718,8 +718,8 @@ under the License.
<StatusValidChange condition="" statusId="INVOICE_READY" statusIdTo="INVOICE_PAID" transitionName="Pay"/>
<StatusValidChange condition="" statusId="INVOICE_READY" statusIdTo="INVOICE_WRITEOFF" transitionName="Write Off"/>
<StatusValidChange condition="" statusId="INVOICE_PAID" statusIdTo="INVOICE_READY" transitionName="Unpay"/>
<!-- payment status -->
<StatusType description="Payment Status" hasTable="N" parentTypeId="" statusTypeId="PMNT_STATUS"/>
<StatusItem description="Not Paid" sequenceId="01" statusCode="NOT_PAID" statusId="PMNT_NOT_PAID" statusTypeId="PMNT_STATUS"/>
@@ -732,7 +732,7 @@ under the License.
<StatusValidChange condition="" statusId="PMNT_NOT_PAID" statusIdTo="PMNT_CANCELLED" transitionName="Payment Cancelled"/>
<StatusValidChange condition="" statusId="PMNT_SENT" statusIdTo="PMNT_CONFIRMED" transitionName="Payment Confirmed"/>
<StatusValidChange condition="" statusId="PMNT_RECEIVED" statusIdTo="PMNT_CONFIRMED" transitionName="Payment Confirmed"/>
<SettlementTerm settlementTermId="COD" termName="Cash Due on Delivery" termValue="0" uomId="TF_day"/>
<SettlementTerm settlementTermId="NET_15" termName="Net Due in 15 Days" termValue="15" uomId="TF_day"/>
<SettlementTerm settlementTermId="NET_30" termName="Net Due in 30 Days" termValue="30" uomId="TF_day"/>
@@ -768,21 +768,21 @@ under the License.
<EnumerationType description="Order Sequence Mode" enumTypeId="ORDER_SEQMD" hasTable="N" parentTypeId=""/>
<Enumeration description="Standard (faster, may have gaps, per system)" enumCode="STANDARD" enumId="ODRSQ_STANDARD" sequenceId="01" enumTypeId="ORDER_SEQMD"/>
<Enumeration description="Enforced Sequence (no gaps, per organization)" enumCode="ENF_SEQ" enumId="ODRSQ_ENF_SEQ" sequenceId="02" enumTypeId="ORDER_SEQMD"/>
<!-- Standard Industrial Cost Types -->
<FixedAssetStdCostType description="Standard Setup Cost" hasTable="N" parentTypeId="" fixedAssetStdCostTypeId="SETUP_COST"/>
<FixedAssetStdCostType description="Standard Usage Cost" hasTable="N" parentTypeId="" fixedAssetStdCostTypeId="USAGE_COST"/>
<!-- Example: California is a tax exemption inheritor of the USA, there is a tax exemption inheritance from USA to CA, taxAuthGeoId=USA toTaxAuthGeoId=CA -->
<!-- Example: California is a tax exemption inheritor of the USA, there is a tax exemption inheritance from USA to CA, taxAuthGeoId=USA toTaxAuthGeoId=CA -->
<TaxAuthorityAssocType taxAuthorityAssocTypeId="EXEMPT_INHER" description="Exemption Inheritance"/>
<TaxAuthorityAssocType taxAuthorityAssocTypeId="COLLECT_AGENT" description="Collection Agent"/>
<TaxAuthorityRateType taxAuthorityRateTypeId="SALES_TAX" description="Sales Tax"/>
<TaxAuthorityRateType taxAuthorityRateTypeId="USE_TAX" description="Use Tax"/>
<TaxAuthorityRateType taxAuthorityRateTypeId="INCOME_TAX" description="Income Tax"/>
<TaxAuthorityRateType taxAuthorityRateTypeId="EXPORT_TAX" description="Export Tax"/>
<TaxAuthorityRateType taxAuthorityRateTypeId="IMPORT_TAX" description="Import Tax"/>
<!-- Rate Types -->
<RateType rateTypeId="STANDARD" description="Standard Rate"/>
<RateType rateTypeId="DISCOUNTED" description="Discounted Rate"/>
@@ -795,7 +795,7 @@ under the License.
<PeriodType description="Rate amount per Week" periodTypeId="RATE_WEEK" periodLength="1" uomId="TF_wk"/>
<PeriodType description="Rate amount per month" periodTypeId="RATE_MONTH" periodLength="1" uomId="TF_mon"/>
<PeriodType description="Rate amount per Quarter" periodTypeId="RATE_QUARTER" periodLength="3" uomId="TF_mon"/>
<!-- create 'Not Applicable' records-->
<WorkEffort workEffortId="_NA_"/>
<EmplPositionType emplPositionTypeId="_NA_"/>
@@ -803,7 +803,7 @@ under the License.
<WebSite webSiteId="ACCOUNTING" siteName="Accounting Manager" visualThemeSetId="BACKOFFICE"/>
<WebSite webSiteId="ACCOUNTING_P" siteName="Account Payable Manager" visualThemeSetId="BACKOFFICE"/>
<WebSite webSiteId="ACCOUNTING_R" siteName="Account Receivable Manager" visualThemeSetId="BACKOFFICE"/>
<!-- Points of Title Transfer -->
<EnumerationType description="Points of Title Transfer" enumTypeId="PTSOFTTFR" hasTable="N" parentTypeId=""/>
<Enumeration description="Desination" enumCode="DEST" enumId="POTT_DEST" sequenceId="01" enumTypeId="PTSOFTTFR"/>
@@ -823,50 +823,50 @@ under the License.
<Enumeration description="Delivered Ex Quay" enumCode="DEQ" enumId="POTT_DEQ" sequenceId="21" enumTypeId="PTSOFTTFR"/>
<Enumeration description="Delivered Duty Paid" enumCode="DDP" enumId="POTT_DDP" sequenceId="22" enumTypeId="PTSOFTTFR"/>
<Enumeration description="Delivered Duty Unpaid" enumCode="DDQ" enumId="POTT_DDQ" sequenceId="23" enumTypeId="PTSOFTTFR"/>
<ProductAverageCostType productAverageCostTypeId="SIMPLE_AVG_COST" hasTable="N" description="Simple Average Cost"/>
<ProductAverageCostType productAverageCostTypeId="WEIGHTED_AVG_COST" hasTable="N" description="Weighted Average Cost"/>
<ProductAverageCostType productAverageCostTypeId="MOVING_AVG_COST" hasTable="N" description="Moving Average Cost"/>
<!--
INCOTERM options found here: http://www.foreign-trade.com/reference/incoterms.cfm
EX-Works
One of the simplest and most basic shipment arrangements places the minimum responsibility on the seller with greater responsibility on the buyer. In an EX-Works transaction, goods are basically made available for pickup at the shipper/seller's factory or warehouse and "delivery" is accomplished when the merchandise is released to the consignee's freight forwarder. The buyer is responsible for making arrangements with their forwarder for insurance, export clearance and handling all other paperwork.
FOB (Free On Board)
One of the most commonly used-and misused-terms, FOB means that the shipper/seller uses his freight forwarder to move the merchandise to the port or designated point of origin. Though frequently used to describe inland movement of cargo, FOB specifically refers to ocean or inland waterway transportation of goods. "Delivery" is accomplished when the shipper/seller releases the goods to the buyer's forwarder. The buyer's responsibility for insurance and transportation begins at the same moment.
FCA (Free Carrier)
In this type of transaction, the seller is responsible for arranging transportation, but he is acting at the risk and the expense of the buyer. Where in FOB the freight forwarder or carrier is the choice of the buyer, in FCA the seller chooses and works with the freight forwarder or the carrier. "Delivery" is accomplished at a predetermined port or destination point and the buyer is responsible for Insurance.
FAS (Free Alongside Ship)*
In these transactions, the buyer bears all the transportation costs and the risk of loss of goods. FAS requires the shipper/seller to clear goods for export, which is a reversal from past practices. Companies selling on these terms will ordinarily use their freight forwarder to clear the goods for export. "Delivery" is accomplished when the goods are turned over to the Buyers Forwarder for insurance and transportation.
CFR (Cost and Freight)
This term formerly known as CNF (C&F) defines two distinct and separate responsibilities-one is dealing with the actual cost of merchandise "C" and the other "F" refers to the freight charges to a predetermined destination point. It is the shipper/seller's responsibility to get goods from their door to the port of destination. "Delivery" is accomplished at this time. It is the buyer's responsibility to cover insurance from the port of origin or port of shipment to buyer's door. Given that the shipper is responsible for transportation, the shipper also chooses the forwarder.
CIF (Cost, Insurance and Freight)
This arrangement similar to CFR, but instead of the buyer insuring the goods for the maritime phase of the voyage, the shipper/seller will insure the merchandise. In this arrangement, the seller usually chooses the forwarder. "Delivery" as above, is accomplished at the port of destination.
CPT (Carriage Paid To)
In CPT transactions the shipper/seller has the same obligations found with CIF, with the addition that the seller has to buy cargo insurance, naming the buyer as the insured while the goods are in transit.
CIP (Carriage and Insurance Paid To)
This term is primarily used for multimodal transport. Because it relies on the carrier's insurance, the shipper/seller is only required to purchase minimum coverage. When this particular agreement is in force, Freight Forwarders often act in effect, as carriers. The buyer's insurance is effective when the goods are turned over to the Forwarder.
DAF (Delivered At Frontier)
Here the seller's responsibility is to hire a forwarder to take goods to a named frontier, which usually a border crossing point, and clear them for export. "Delivery" occurs at this time. The buyer's responsibility is to arrange with their forwarder for the pick up of the goods after they are cleared for export, carry them across the border, clear them for importation and effect delivery. In most cases, the buyer's forwarder handles the task of accepting the goods at the border across the foreign soil.
DES (Delivered Ex Ship)
In this type of transaction, it is the seller's responsibility to get the goods to the port of destination or to engage the forwarder to the move cargo to the port of destination uncleared. "Delivery" occurs at this time. Any destination charges that occur after the ship is docked are the buyer's responsibility.
DEQ (Delivered Ex Quay)*
In this arrangement, the buyer/consignee is responsible for duties and charges and the seller is responsible for delivering the goods to the quay, wharf or port of destination. In a reversal of previous practice, the buyer must also arrange for customs clearance.
DDP (Delivered Duty Paid)
DDP terms tend to be used in intermodal or courier-type shipments. Whereby, the shipper/seller is responsible for dealing with all the tasks involved in moving goods from the manufacturing plant to the buyer/consignee's door. It is the shipper/seller's responsibility to insure the goods and absorb all costs and risks including the payment of duty and fees.
DDQ (Delivered Duty Unpaid)
This arrangement is basically the same as with DDP, except for the fact that the buyer is responsible for the duty, fees and taxes.
-->
File diff suppressed because it is too large Load Diff
@@ -58,12 +58,12 @@ under the License.
<InvoiceItemType invoiceItemTypeId="INV_TE_ITEM" defaultGlAccountId="401000"/>
<!-- invoice item types for purchase (AP) invoices -->
<InvoiceItemType invoiceItemTypeId="PINVOICE_ADJ" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINVOICE_ADJ" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_PROMOTION_ADJ" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_DISCOUNT_ADJ" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="P_FEE" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="P_FEE" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_MISC_CHARGE" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_SALES_TAX" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_SALES_TAX" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_SHIP_CHARGES" defaultGlAccountId="510000"/>
<InvoiceItemType invoiceItemTypeId="PINV_SURCHARGE_ADJ" defaultGlAccountId="516100"/>
<InvoiceItemType invoiceItemTypeId="PINV_ADD_FEATURE" defaultGlAccountId="516100"/>
@@ -168,11 +168,11 @@ under the License.
<CostComponentCalc costComponentCalcId="EXAMPLE_COST" costGlAccountTypeId="OPERATING_EXPENSE"/>
<!-- General Ledger Setup for the "Company" organization for "Company" -->
<!-- GL journal for suspended transactions (failed post) -->
<GlJournal organizationPartyId="Company" glJournalId="ERROR_JOURNAL" glJournalName="Suspense transactions"/>
<PartyAcctgPreference partyId="Company" taxFormId="US_IRS_1120" cogsMethodId="COGS_AVG_COST" baseCurrencyUomId="USD"
<PartyAcctgPreference partyId="Company" taxFormId="US_IRS_1120" cogsMethodId="COGS_AVG_COST" baseCurrencyUomId="USD"
invoiceSequenceEnumId="INVSQ_ENF_SEQ" invoiceIdPrefix="CI"
quoteSequenceEnumId="INVSQ_ENF_SEQ" quoteIdPrefix="CQ"
orderSequenceEnumId="INVSQ_ENF_SEQ" orderIdPrefix="CO"
@@ -230,7 +230,7 @@ under the License.
<GlAccountOrganization organizationPartyId="Company" glAccountId="804000" fromDate="2001-01-01 00:00:00.0"/>
<GlAccountOrganization organizationPartyId="Company" glAccountId="810000" fromDate="2001-01-01 00:00:00.0"/>
<GlAccountOrganization organizationPartyId="Company" glAccountId="900000" fromDate="2001-01-01 00:00:00.0"/>
<!-- Default mapping between account types and account ids -->
<GlAccountTypeDefault organizationPartyId="Company" glAccountTypeId="ACCOUNTS_RECEIVABLE" glAccountId="120000"/>
<GlAccountTypeDefault organizationPartyId="Company" glAccountTypeId="INTRSTINC_RECEIVABLE" glAccountId="121800"/>
@@ -344,7 +344,7 @@ under the License.
<CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6017" periodTypeId="FISCAL_QUARTER" fromDate="2010-04-01" thruDate="2010-07-01" isClosed="N" periodNum="2" periodName="2010/Q2" parentPeriodId="6015"/>
<CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6018" periodTypeId="FISCAL_QUARTER" fromDate="2010-07-01" thruDate="2010-10-01" isClosed="N" periodNum="3" periodName="2010/Q3" parentPeriodId="6015"/>
<CustomTimePeriod organizationPartyId="Company" customTimePeriodId="6019" periodTypeId="FISCAL_QUARTER" fromDate="2010-10-01" thruDate="2011-01-01" isClosed="N" periodNum="4" periodName="2010/Q4" parentPeriodId="6015"/>
<UomConversionDated uomId="USD" uomIdTo="EUR" fromDate="2001-01-01 00:00:00.0" conversionFactor="0.7"/><!-- to convert demo invoice -->
<UomConversionDated uomId="USD" uomIdTo="EUR" fromDate="2001-01-01 00:00:00.0" conversionFactor="0.7"/><!-- to convert demo invoice -->
</entity-engine-xml>
@@ -31,43 +31,43 @@ under the License.
<PartyContactMechPurpose partyId="Company" contactMechId="9000" contactMechPurposeTypeId="BILLING_LOCATION" fromDate="2000-01-01 00:00:00.000"/>
<PartyContactMechPurpose partyId="Company" contactMechId="9000" contactMechPurposeTypeId="GENERAL_LOCATION" fromDate="2000-01-01 00:00:00.000"/>
<PartyContactMechPurpose partyId="Company" contactMechId="9000" contactMechPurposeTypeId="PAYMENT_LOCATION" fromDate="2000-01-01 00:00:00.000"/>
<PartyGeoPoint partyId="Company" geoPointId="9000" fromDate="2009-01-09 00:00:00.000"/>
<PartyGeoPoint partyId="Company" geoPointId="9000" fromDate="2009-01-09 00:00:00.000"/>
<!-- Sub-Organizations -->
<Party partyId="MARKETING" partyTypeId="PARTY_GROUP" createdDate="2004-03-27 09:37:40.989" createdByUserLogin="admin" lastModifiedDate="2004-03-27 09:37:40.989" lastModifiedByUserLogin="admin"/>
<PartyGroup partyId="MARKETING" groupName="Marketing department"/>
<PartyRole partyId="MARKETING" roleTypeId="INTERNAL_ORGANIZATIO"/>
<PartyRole partyId="MARKETING" roleTypeId="_NA_"/>
<PartyRelationship partyIdFrom="Company" partyIdTo="MARKETING" partyRelationshipTypeId="GROUP_ROLLUP" roleTypeIdFrom="_NA_" roleTypeIdTo="_NA_" fromDate="2001-05-13 00:00:00.000"/>
<Party partyId="ACCOUNTING" partyTypeId="PARTY_GROUP" createdDate="2004-03-27 09:37:40.989" createdByUserLogin="admin" lastModifiedDate="2004-03-27 09:37:40.989" lastModifiedByUserLogin="admin"/>
<PartyGroup partyId="ACCOUNTING" groupName="Accounting department"/>
<PartyRole partyId="ACCOUNTING" roleTypeId="INTERNAL_ORGANIZATIO"/>
<PartyRole partyId="ACCOUNTING" roleTypeId="_NA_"/>
<PartyRelationship partyIdFrom="Company" partyIdTo="ACCOUNTING" partyRelationshipTypeId="GROUP_ROLLUP" roleTypeIdFrom="_NA_" roleTypeIdTo="_NA_" fromDate="2001-05-13 00:00:00.000"/>
<Party partyId="SALES" partyTypeId="PARTY_GROUP" createdDate="2004-03-27 09:37:40.989" createdByUserLogin="admin" lastModifiedDate="2004-03-27 09:37:40.989" lastModifiedByUserLogin="admin"/>
<PartyGroup partyId="SALES" groupName="Sales department"/>
<PartyRole partyId="SALES" roleTypeId="INTERNAL_ORGANIZATIO"/>
<PartyRole partyId="SALES" roleTypeId="_NA_"/>
<PartyRelationship partyIdFrom="Company" partyIdTo="SALES" partyRelationshipTypeId="GROUP_ROLLUP" roleTypeIdFrom="_NA_" roleTypeIdTo="_NA_" fromDate="2001-05-13 00:00:00.000"/>
<Party partyId="DEV" partyTypeId="PARTY_GROUP" createdDate="2004-03-27 09:37:40.989" createdByUserLogin="admin" lastModifiedDate="2004-03-27 09:37:40.989" lastModifiedByUserLogin="admin"/>
<PartyGroup partyId="DEV" groupName="Development department"/>
<PartyRole partyId="DEV" roleTypeId="INTERNAL_ORGANIZATIO"/>
<PartyRole partyId="DEV" roleTypeId="_NA_"/>
<PartyRelationship partyIdFrom="Company" partyIdTo="DEV" partyRelationshipTypeId="GROUP_ROLLUP" roleTypeIdFrom="_NA_" roleTypeIdTo="_NA_" fromDate="2001-05-13 00:00:00.000"/>
<Party partyId="TESTING" partyTypeId="PARTY_GROUP" createdDate="2004-03-27 09:37:40.989" createdByUserLogin="admin" lastModifiedDate="2004-03-27 09:37:40.989" lastModifiedByUserLogin="admin"/>
<PartyGroup partyId="TESTING" groupName="Testing department"/>
<PartyRole partyId="TESTING" roleTypeId="INTERNAL_ORGANIZATIO"/>
<PartyRole partyId="TESTING" roleTypeId="_NA_"/>
<PartyRelationship partyIdFrom="Company" partyIdTo="TESTING" partyRelationshipTypeId="GROUP_ROLLUP" roleTypeIdFrom="_NA_" roleTypeIdTo="_NA_" fromDate="2001-05-13 00:00:00.000"/>
<!-- demo rates -->
<RateAmount rateTypeId="STANDARD" rateCurrencyUomId="USD" periodTypeId="RATE_HOUR" workEffortId="_NA_" partyId="_NA_" emplPositionTypeId="_NA_" fromDate="2000-01-01 00:00:00.000" rateAmount="95.0"/>
<RateAmount rateTypeId="DISCOUNTED" rateCurrencyUomId="USD" periodTypeId="RATE_HOUR" workEffortId="_NA_" partyId="_NA_" emplPositionTypeId="_NA_" fromDate="2000-01-01 00:00:00.000" rateAmount="55.0"/>
<RateAmount rateTypeId="OVERTIME" rateCurrencyUomId="USD" periodTypeId="RATE_HOUR" workEffortId="_NA_" partyId="_NA_" emplPositionTypeId="_NA_" fromDate="2000-01-01 00:00:00.000" rateAmount="125.0"/>
</entity-engine-xml>
@@ -36,6 +36,6 @@ under the License.
</map-HashMap>
</ofbiz-ser>
]]></runtimeInfo>
</RuntimeData>
</RuntimeData>
<JobSandbox jobId="8500" jobName="Generate Invoice template" runTime="2008-05-14 00:00:00.000" serviceName="autoGenerateInvoiceFromExistingInvoice" runtimeDataId="8501" poolId="pool" runAsUser="system" recurrenceInfoId="400"/>
</entity-engine-xml>
@@ -56,7 +56,7 @@ under the License.
<InvoiceStatus statusId="INVOICE_IN_PROCESS" invoiceId="demo11001" statusDate="2006-04-25 12:46:27.122" lastUpdatedStamp="2006-04-25 12:46:27.492" lastUpdatedTxStamp="2006-04-25 12:46:27.426" createdStamp="2006-04-25 12:46:27.492" createdTxStamp="2006-04-25 12:46:27.426"/>
<InvoiceStatus statusId="INVOICE_APPROVED" invoiceId="demo11001" statusDate="2006-04-25 12:46:27.122" lastUpdatedStamp="2006-04-25 12:46:27.492" lastUpdatedTxStamp="2006-04-25 12:46:27.426" createdStamp="2006-04-25 12:46:27.492" createdTxStamp="2006-04-25 12:46:27.426"/>
<Payment paymentId="demo10001" paymentTypeId="CUSTOMER_PAYMENT" paymentMethodTypeId="EFT_ACCOUNT" partyIdFrom="EuroCustomer" partyIdTo="Company" statusId="PMNT_RECEIVED" effectiveDate="2006-04-25 12:56:54.292" amount="820.97" currencyUomId="USD" actualCurrencyAmount="543.23" actualCurrencyUomId="EUR"/>
<PaymentApplication paymentApplicationId="demo11000" paymentId="demo10001" invoiceId="demo11001" amountApplied="543.23"/>
<PaymentApplication paymentApplicationId="demo11000" paymentId="demo10001" invoiceId="demo11001" amountApplied="543.23"/>
<!-- show on customer invoice list when DemoCustomer logs on to myportal -->
<Party partyId="DemoCustCompany" partyTypeId="PARTY_GROUP"/>
+4 -4
View File
@@ -18,18 +18,18 @@
under the License.
-->
<entity-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<entity-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entity-eca.xsd">
<!-- To maintain FinAccount.actualBalance and FinAccount.availableBalance -->
<eca entity="FinAccountTrans" operation="create-store" event="return">
<action service="updateFinAccountBalancesFromTrans" mode="sync"/>
<action service="updateFinAccountBalancesFromTrans" mode="sync"/>
</eca>
<!-- To maintain FinAccount.availableBalance -->
<eca entity="FinAccountAuth" operation="create-store" event="return">
<action service="updateFinAccountBalancesFromAuth" mode="sync"/>
</eca>
<!-- an example of how to use the watchEntity service to watch the actualBalance field
<eca entity="FinAccount" operation="create-store" event="run">
<set field-name="fieldName" value="actualBalance"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<entitygroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<entitygroup xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitygroup.xsd">
<!-- ========================================================= -->
@@ -93,7 +93,7 @@ under the License.
<prim-key field="budgetItemSeqId"/>
<relation type="one" fk-name="BDGTITM_TO_BDGT" rel-entity-name="Budget">
<key-map field-name="budgetId"/>
</relation>
</relation>
<relation type="one" fk-name="BUDGET_ITEM_BTYP" rel-entity-name="BudgetItemType">
<key-map field-name="budgetItemTypeId"/>
</relation>
@@ -329,7 +329,7 @@ under the License.
<!-- org.ofbiz.accounting.finaccount -->
<!-- financial account entities for gift certificates, calling cards, or customer accounts -->
<!-- ========================================================= -->
<entity entity-name="FinAccount" package-name="org.ofbiz.accounting.finaccount" title="Financial Account Entity">
<field name="finAccountId" type="id-ne"></field>
<field name="finAccountTypeId" type="id"></field>
@@ -502,8 +502,8 @@ under the License.
<key-map field-name="attrName"/>
</relation>
</entity>
<entity entity-name="FinAccountTransType"
package-name="org.ofbiz.accounting.finaccount"
<entity entity-name="FinAccountTransType"
package-name="org.ofbiz.accounting.finaccount"
default-resource-name="AccountingEntityLabels"
title="Financial Account Transaction Type Entity">
<field name="finAccountTransTypeId" type="id-ne"></field>
@@ -530,14 +530,14 @@ under the License.
<key-map field-name="finAccountTransTypeId"/>
</relation>
</entity>
<entity entity-name="FinAccountType"
package-name="org.ofbiz.accounting.finaccount"
<entity entity-name="FinAccountType"
package-name="org.ofbiz.accounting.finaccount"
default-resource-name="AccountingEntityLabels"
title="Financial Account Type Entity">
<field name="finAccountTypeId" type="id-ne"></field>
<field name="parentTypeId" type="id-ne"></field>
<field name="replenishEnumId" type="id-ne"></field>
<field name="isRefundable" type="indicator"></field>
<field name="isRefundable" type="indicator"></field>
<field name="hasTable" type="indicator"></field>
<field name="description" type="description"></field>
<prim-key field="finAccountTypeId"/>
@@ -581,7 +581,7 @@ under the License.
</relation>
</entity>
<view-entity entity-name="FinAccountTransSum" package-name="org.ofbiz.accounting.finaccount" title="Financial Account Transactio Sum">
<description>View entity to help calculate total of financial account transactions by doing a query for the sum of all amounts
<description>View entity to help calculate total of financial account transactions by doing a query for the sum of all amounts
on a range of transactionDates for a given finAccountId, finAccountTransTypeId</description>
<member-entity entity-alias="FAT" entity-name="FinAccountTrans"/>
<alias entity-alias="FAT" name="finAccountId" group-by="true"/>
@@ -590,7 +590,7 @@ under the License.
<alias entity-alias="FAT" name="amount" function="sum"/>
</view-entity>
<view-entity entity-name="FinAccountAuthSum" package-name="org.ofbiz.accounting.finaccount" title="Financial Account Authorization Sum">
<description>View entity to help calculate total of financial account authorizations by doing a query for the sum of all amounts
<description>View entity to help calculate total of financial account authorizations by doing a query for the sum of all amounts
on a range of transactionDates for a given finAccountId. Note there is no auth type to consider here, but authorizations do
have from and thru dates</description>
<member-entity entity-alias="FAA" entity-name="FinAccountAuth"/>
@@ -598,13 +598,13 @@ under the License.
<alias entity-alias="FAA" name="authorizationDate" group-by="false"/>
<alias entity-alias="FAA" name="fromDate" group-by="false"/>
<alias entity-alias="FAA" name="thruDate" group-by="false"/>
<alias entity-alias="FAA" name="amount" function="sum"/>
<alias entity-alias="FAA" name="amount" function="sum"/>
</view-entity>
<!-- ========================================================= -->
<!-- org.ofbiz.accounting.fixedasset -->
<!-- ========================================================= -->
<entity entity-name="DepreciationMethod"
package-name="org.ofbiz.accounting.fixedasset"
title="Depreciation Method Entity">
@@ -732,12 +732,12 @@ under the License.
<key-map field-name="geoPointId"/>
</relation>
</entity>
<view-entity entity-name="FixedAssetAndGeoPoint" package-name="org.ofbiz.accounting.fixedasset" title="Fixed Asset and Geo Point View Entity">
<member-entity entity-alias="FA" entity-name="FixedAsset"/>
<member-entity entity-alias="FAGPT" entity-name="FixedAssetGeoPoint"/>
<member-entity entity-alias="GPT" entity-name="GeoPoint"/>
<alias-all entity-alias="GPT"/>
<alias-all entity-alias="GPT"/>
<alias entity-alias="FA" name="fixedAssetId"/>
<alias entity-alias="FAGPT" name="fromDate"/>
<alias entity-alias="FAGPT" name="thruDate"/>
@@ -757,8 +757,8 @@ under the License.
<relation type="one-nofk" rel-entity-name="GeoPoint">
<key-map field-name="geoPointId"/>
</relation>
</view-entity>
</view-entity>
<entity entity-name="FixedAssetIdent"
package-name="org.ofbiz.accounting.fixedasset"
title="Fixed Asset Identification Entity">
@@ -818,7 +818,7 @@ under the License.
<relation type="one" fk-name="FXDASTMNT_SI" rel-entity-name="StatusItem">
<key-map field-name="statusId"/>
</relation>
</entity>
<entity entity-name="FixedAssetMaintMeter"
package-name="org.ofbiz.accounting.fixedasset"
@@ -1019,7 +1019,7 @@ under the License.
<key-map field-name="roleTypeId"/>
</view-link>
</view-entity>
<entity entity-name="FixedAssetMaintOrder" package-name="org.ofbiz.accounting.fixedasset" title="Fixed Asset Maintance And Order Entity">
<field name="fixedAssetId" type="id-ne"></field>
<field name="maintHistSeqId" type="id-ne"></field>
@@ -1041,13 +1041,13 @@ under the License.
</relation>
</entity>
<entity entity-name="AccommodationClass"
<entity entity-name="AccommodationClass"
package-name="org.ofbiz.accounting.fixedasset"
title="Accommodation Class">
<field name="accommodationClassId" type="id-ne"></field>
<field name="parentClassId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="accommodationClassId"/>
<prim-key field="accommodationClassId"/>
<relation type="one" fk-name="ACCOMM_CLASS_PAR" title="Parent" rel-entity-name="AccommodationClass">
<key-map field-name="parentClassId" rel-field-name="accommodationClassId"/>
</relation>
@@ -1067,17 +1067,17 @@ under the License.
<relation type="one" fk-name="SPOT_FA" rel-entity-name="FixedAsset">
<key-map field-name="fixedAssetId"/>
</relation>
</entity>
<entity entity-name="AccommodationMap"
</entity>
<entity entity-name="AccommodationMap"
package-name="org.ofbiz.accounting.fixedasset"
title="Accommodation Map">
<field name="accommodationMapId" type="id-ne"></field>
<field name="accommodationMapId" type="id-ne"></field>
<field name="accommodationClassId" type="id-ne"></field>
<field name="fixedAssetId" type="id"></field>
<field name="accommodationMapTypeId" type="id"></field>
<field name="numberOfSpaces" type="numeric"></field>
<prim-key field="accommodationMapId"/>
<field name="numberOfSpaces" type="numeric"></field>
<prim-key field="accommodationMapId"/>
<relation type="one" fk-name="ACMD_MAP_CLASS" rel-entity-name="AccommodationClass">
<key-map field-name="accommodationClassId"/>
</relation>
@@ -1088,15 +1088,15 @@ under the License.
<key-map field-name="accommodationMapTypeId"/>
</relation>
</entity>
<entity entity-name="AccommodationMapType"
<entity entity-name="AccommodationMapType"
package-name="org.ofbiz.accounting.fixedasset"
title="Accommodation Map Type">
<field name="accommodationMapTypeId" type="id-ne"></field>
<field name="description" type="description"></field>
<prim-key field="accommodationMapTypeId"/>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.accounting.invoice -->
<!-- ========================================================= -->
@@ -2500,7 +2500,7 @@ under the License.
<key-map field-name="contactMechId"/>
</relation>
</entity>
<entity entity-name="GiftCard"
package-name="org.ofbiz.accounting.payment"
title="Gift Card Information Entity">
@@ -2555,7 +2555,7 @@ under the License.
<key-map field-name="surveyResponseId"/>
</relation>
</entity>
<entity entity-name="Payment"
package-name="org.ofbiz.accounting.payment"
title="Payment Entity">
@@ -2639,7 +2639,7 @@ under the License.
package-name="org.ofbiz.accounting.payment"
never-cache="true"
title="Payment and Payment type View Entity">
<member-entity entity-alias="PY" entity-name="Payment"/>
<member-entity entity-alias="PY" entity-name="Payment"/>
<member-entity entity-alias="TY" entity-name="PaymentType"/>
<alias-all entity-alias="PY"/>
<alias-all entity-alias="TY">
@@ -2698,7 +2698,7 @@ under the License.
<field name="invoiceId" type="id"></field>
<field name="invoiceItemSeqId" type="id"></field>
<field name="billingAccountId" type="id"></field>
<field name="overrideGlAccountId" type="id"><description>If filled in, payment is applied directly against this GL account</description></field>
<field name="overrideGlAccountId" type="id"><description>If filled in, payment is applied directly against this GL account</description></field>
<field name="toPaymentId" type="id"><!-- To be used when a payment is based on or comes from another payment, like a payment that is a return of a mistaken or over-payment --></field>
<field name="taxAuthGeoId" type="id"/>
<field name="amountApplied" type="currency-amount"></field>
@@ -2856,7 +2856,7 @@ under the License.
<key-map field-name="contactMechId"/>
</relation>
</view-entity>
<view-entity entity-name="PaymentMethodAndGiftCard"
package-name="org.ofbiz.accounting.payment"
never-cache="true"
@@ -2888,7 +2888,7 @@ under the License.
<relation type="one-nofk" rel-entity-name="PostalAddress">
<key-map field-name="contactMechId"/>
</relation>
</view-entity>
</view-entity>
<entity entity-name="PaymentMethodType"
package-name="org.ofbiz.accounting.payment"
title="PaymentMethodType Entity" default-resource-name="AccountingEntityLabels">
@@ -3036,11 +3036,11 @@ under the License.
<field name="lastModifiedByUserLogin" type="id-vlong"></field>
<prim-key field="merchantId"/>
</entity>
<!-- ========================================================= -->
<!-- org.ofbiz.accounting.tax -->
<!-- ========================================================= -->
<entity entity-name="PartyTaxAuthInfo" package-name="org.ofbiz.accounting.tax" title="Party Tax Information Entity">
<description></description>
<field name="partyId" type="id-ne"></field>
@@ -3190,7 +3190,7 @@ under the License.
<member-entity entity-alias="PAP" entity-name="PartyAcctgPreference"/>
<alias-all entity-alias="TAGA"/>
<alias-all entity-alias="GLAO"/>
<alias entity-alias="PAP" name="baseCurrencyUomId"/>
<alias entity-alias="PAP" name="baseCurrencyUomId"/>
<view-link entity-alias="TAGA" rel-entity-alias="GLAO">
<key-map field-name="glAccountId"/>
<key-map field-name="organizationPartyId"/>
@@ -3280,7 +3280,7 @@ under the License.
<prim-key field="county"/>
<prim-key field="fromDate"/>
</entity>
<entity entity-name="PartyGlAccount" package-name="org.ofbiz.accounting.ledger" title="Party Gl Account Entity">
<field name="organizationPartyId" type="id-ne"/>
<field name="partyId" type="id-ne"/>
@@ -3306,14 +3306,14 @@ under the License.
</relation>
<relation type="one" fk-name="PRTYGLACCT_GLAT" rel-entity-name="GlAccountType">
<key-map field-name="glAccountTypeId"/>
</relation>
</relation>
<relation type="one" fk-name="PRTYGLACCT_GLACCT" rel-entity-name="GlAccount">
<key-map field-name="glAccountId"/>
</relation>
</entity>
<view-entity entity-name="GlAccOrgAndAcctgTransAndEntry"
package-name="org.ofbiz.accounting.ledger"
<view-entity entity-name="GlAccOrgAndAcctgTransAndEntry"
package-name="org.ofbiz.accounting.ledger"
title="GlAccountOrganization, AcctgTransEntry, and AccTrans View Entity Group-By organizationPartyId, glAccountId, debitCreditFlag">
<member-entity entity-alias="GAO" entity-name="GlAccountOrganization"/>
<member-entity entity-alias="ATE" entity-name="AcctgTransEntry"/>
@@ -3321,7 +3321,7 @@ under the License.
<alias entity-alias="GAO" name="glAccountId" group-by="true"/>
<alias entity-alias="ATE" name="debitCreditFlag" group-by="true"/>
<alias entity-alias="ATR" name="isPosted" group-by="true"/>
<alias entity-alias="ATR" name="transactionDate" group-by="true"/>
<alias entity-alias="ATR" name="transactionDate" group-by="true"/>
<alias entity-alias="ATE" name="acctgTransId" group-by="true"/>
<alias entity-alias="ATE" name="organizationPartyId" group-by="true"/>
<alias entity-alias="ATE" name="totalAmount" field="amount" function="sum"/>
@@ -3431,5 +3431,5 @@ under the License.
<key-map field-name="rateTypeId"/>
</relation>
</entity>
</entitymodel>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd">
<!-- ========================================================= -->
<!-- ======================== Defaults ======================= -->
@@ -101,7 +101,7 @@ under the License.
<prim-key field="invoiceId"/>
<prim-key field="invoiceItemSeqId"/>
<relation type="one" fk-name="SIIF_INVDATE" rel-entity-name="DateDimension">
<key-map field-name="invoiceDateDimId" rel-field-name="dimensionId"/>
</relation>
@@ -119,7 +119,7 @@ under the License.
<!-- ========================================================= -->
<view-entity entity-name="SalesInvoiceItemStarSchema" package-name="org.ofbiz.bi.starschema.accounting" title="Sales Invoice Item Star Schema">
<description>Invoice Item star schema (Profit and Loss Statement).</description>
<member-entity entity-alias="SIIF" entity-name="SalesInvoiceItemFact"/>
<member-entity entity-alias="IDD" entity-name="DateDimension"/>
<member-entity entity-alias="PD" entity-name="ProductDimension"/>
@@ -161,5 +161,5 @@ under the License.
</view-link>
</view-entity>
</entitymodel>
+3 -3
View File
@@ -45,7 +45,7 @@ under the License.
<entity-resource type="data" reader-name="demo" loader="main" location="data/DemoOrganizationData.xml"/>
<entity-resource type="data" reader-name="demo" loader="main" location="data/DemoGlSetupData.xml"/>
<entity-resource type="data" reader-name="demo" loader="main" location="data/PaymentsInvoices.xml"/>
<!-- General Payment Service Definitions -->
<service-resource type="model" loader="main" location="servicedef/services_agreement.xml"/>
<service-resource type="model" loader="main" location="servicedef/services_admin.xml"/>
@@ -60,7 +60,7 @@ under the License.
<service-resource type="model" loader="main" location="servicedef/services_rate.xml"/>
<service-resource type="model" loader="main" location="servicedef/services_cost.xml"/>
<service-resource type="model" loader="main" location="servicedef/services_olap.xml"/>
<!-- Payment Processor/Gateway Service Definitions -->
<service-resource type="model" loader="main" location="servicedef/services_clearcommerce.xml"/>
<service-resource type="model" loader="main" location="servicedef/services_cybersource.xml"/>
@@ -84,7 +84,7 @@ under the License.
location="webapp/accounting"
base-permission="OFBTOOLS,ACCOUNTING"
mount-point="/accounting"/>
<webapp name="ar"
title="AR"
server="default-server"
@@ -17,13 +17,13 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- ========= Miscellaenous services for accounting ========= -->
<simple-method method-name="createPartyAcctgPreference"
<simple-method method-name="createPartyAcctgPreference"
short-description="Create accounting preference settings for a party">
<!-- permission checking is done in the services definition file (services_other.xml) -->
<!-- check that the party is an INTERNAL_ORGANIZATION, as defined in PartyRole -->
<set from-field="parameters.partyId" field="lookupParams.partyId"/>
<set value="INTERNAL_ORGANIZATIO" field="lookupParams.roleTypeId"/>
@@ -32,7 +32,7 @@ under the License.
<add-error><fail-property resource="AccountingUiLabels" property="AccountingPartyMustBeInternalOrganization"/></add-error>
<check-errors/>
</if-empty>
<!-- Does not check if the Party is actually a company because real people have to pay taxes too -->
<!-- Does not check if the Party is actually a company because real people have to pay taxes too -->
<!-- TODO: maybe check to make sure that all fields are not null -->
<make-value value-field="newEntity" entity-name="PartyAcctgPreference"/>
@@ -40,7 +40,7 @@ under the License.
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="getPartyAccountingPreferences"
short-description="Get the accounting preference settings for a party (organization)">
<make-value entity-name="PartyAcctgPreference" value-field="aggregatedPartyAcctgPref"/>
@@ -61,7 +61,7 @@ under the License.
<field-map field-name="partyId" from-field="currentOrganizationPartyId"/>
</entity-one>
<set field="containsEmptyFields" type="Boolean" value="false"/>
<if-not-empty field="currentPartyAcctgPref">
<iterate-map map="currentPartyAcctgPref" key="entityKey" value="entityValue">
<if-empty field="aggregatedPartyAcctgPref.${entityKey}">
@@ -77,40 +77,40 @@ under the License.
<set field="containsEmptyFields" type="Boolean" value="true"/>
</else>
</if-not-empty>
<entity-and entity-name="PartyRelationship" list="parentPartyRelationships" filter-by-date="true">
<field-map field-name="partyIdTo" from-field="currentOrganizationPartyId"/>
<field-map field-name="partyRelationshipTypeId" value="GROUP_ROLLUP"/>
<field-map field-name="roleTypeIdFrom" value="_NA_"/>
<field-map field-name="roleTypeIdTo" value="_NA_"/>
</entity-and>
<if-not-empty field="parentPartyRelationships">
<first-from-list list="parentPartyRelationships" entry="parentPartyRelationship"/>
<set field="currentOrganizationPartyId" from-field="parentPartyRelationship.partyIdFrom"/>
<else>
<clear-field field="currentOrganizationPartyId"/>
</else>
</else>
</if-not-empty>
</then>
</while>
<if-not-empty field="aggregatedPartyAcctgPref">
<set field="aggregatedPartyAcctgPref.partyId" from-field="parameters.organizationPartyId"/>
<field-to-result field="aggregatedPartyAcctgPref" result-name="partyAccountingPreference"/>
</if-not-empty>
</simple-method>
<!-- update currency conversion rates in the UomConversionDated entity -->
<simple-method method-name="updateFXConversion" short-description="Update Foreign Exchange conversion rate">
<!-- set the FX rate changes as of now -->
<if-empty field="parameters.asOfTimestamp">
<now-timestamp field="nowTimestamp"/>
<else>
<set from-field="parameters.asOfTimestamp" field="nowTimestamp"/>
</else>
<set from-field="parameters.asOfTimestamp" field="nowTimestamp"/>
</else>
</if-empty>
<!-- find the existing exchange rates for this currency pair -->
<entity-condition entity-name="UomConversionDated" list="uomConversions" filter-by-date="true">
<condition-list>
@@ -119,13 +119,13 @@ under the License.
<condition-expr field-name="purposeEnumId" operator="equals" from-field="parameters.purposeEnumId" ignore-if-empty="true"/>
</condition-list>
</entity-condition>
<!-- expire all of them -->
<iterate list="uomConversions" entry="uomConversion">
<set from-field="nowTimestamp" field="uomConversion.thruDate"/>
</iterate>
<store-list list="uomConversions"/>
<!-- now create a new conversion relationship -->
<set-service-fields to-map="createParams" service-name="createUomConversionDated" map="parameters"/>
<set from-field="nowTimestamp" field="createParams.fromDate"/>
@@ -18,13 +18,13 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- ================================================================ -->
<!-- Agreement Services -->
<!-- ================================================================ -->
<!-- create a new Agreement -->
<simple-method method-name="createAgreement" short-description="Create an Agreement">
<!-- create new entity and create all the fields -->
@@ -58,7 +58,7 @@ under the License.
<!-- cancel an existing Agreement -->
<simple-method method-name="cancelAgreement" short-description="Cancel an existing Agreement">
<entity-one entity-name="Agreement" value-field="agreement" auto-field-map="true"/>
<check-errors/>
<check-errors/>
<now-timestamp field="nowTimestamp"/>
<set from-field="nowTimestamp" field="agreement.thruDate"/>
<store-value value-field="agreement"/>
@@ -184,7 +184,7 @@ under the License.
<remove-value value-field="agreementTerm"/>
<check-errors/>
</simple-method>
<!-- create a new AgreementPromoAppl -->
<simple-method method-name="createAgreementPromoAppl" short-description="Create an AgreementPromoAppl">
<make-value value-field="newEntity" entity-name="AgreementPromoAppl"/>
@@ -210,7 +210,7 @@ under the License.
<remove-value value-field="agreementPromoAppl"/>
<check-errors/>
</simple-method>
<!-- create a new AgreementProductAppl -->
<simple-method method-name="createAgreementProductAppl" short-description="Create an AgreementProductAppl">
<make-value value-field="newEntity" entity-name="AgreementProductAppl"/>
@@ -288,7 +288,7 @@ under the License.
<remove-value value-field="agreementGeographicalApplic"/>
<check-errors/>
</simple-method>
<!-- Agreement Role -->
<simple-method method-name="createAgreementRole" short-description="Create an Agreement Role">
<make-value entity-name="AgreementRole" value-field="newEntity"/>
@@ -296,13 +296,13 @@ under the License.
<set-nonpk-fields value-field="newEntity" map="parameters"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateAgreementRole" short-description="Update an Agreement Role">
<entity-one entity-name="AgreementRole" value-field="lookedUpValue"/>
<set-pk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="deleteAgreementRole" short-description="Delete an Agreement Role">
<entity-one entity-name="AgreementRole" value-field="agreementRole"/>
<remove-value value-field="agreementRole"/>
@@ -315,13 +315,13 @@ under the License.
<add-error><fail-property resource="AccountingUiLabels" property="AccountingAgreementWorkEffortApplAlreadyExists"/></add-error>
<check-errors/>
<else>
<make-value value-field="newEntity" entity-name="AgreementWorkEffortAppl"/>
<make-value value-field="newEntity" entity-name="AgreementWorkEffortAppl"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</else>
</if-not-empty>
</simple-method>
<simple-method method-name="deleteAgreementWorkEffortAppl" short-description="Remove a link between a WorkEffort and a Agreement Appl">
<entity-one entity-name="AgreementWorkEffortAppl" value-field="agreementWorkEffortAppl"/>
<remove-value value-field="agreementWorkEffortAppl"/>
@@ -18,9 +18,9 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="createCostComponentCalc" short-description="Create a CostComponentCalc entry">
<make-value entity-name="CostComponentCalc" value-field="newEntity"/>
<sequenced-id sequence-name="CostComponentCalc" field="costComponentCalcId"/>
@@ -21,23 +21,23 @@ under the License.
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- FinAccountTrans Services -->
<!-- FinAccountTrans Services -->
<simple-method method-name="postFinAccountTransToGl" short-description="Post a Financial Account Transaction to the General Ledger">
<!-- NOTE: this is not yet complete -->
<!-- NOTE: this will behave differently depending on how the FinAccount is used, see comments on different GlAccounts for trans entries below -->
<now-timestamp field="nowTimestamp"/>
<entity-one entity-name="FinAccountTrans" value-field="finAccountTrans"/>
<set field="finAccountId" from-field="finAccountTrans.finAccountId"/>
<entity-one entity-name="FinAccount" value-field="finAccount"/>
<set field="organizationPartyId" from-field="finAccount.organizationPartyId"/>
<!-- Figure out which GlAccount to post to using finAccount.postToGlAccountId or if not specified then use FinAccountTypeGlAccount -->
<if-not-empty field="finAccount.postToGlAccountId">
<set field="glAccountId" from-field="finAccount.postToGlAccountId"/>
<else>
<entity-one entity-name="FinAccountTypeGlAccount" value-field="finAccountTypeGlAccount" auto-field-map="false">
<field-map field-name="organizationPartyId"/>
@@ -54,7 +54,7 @@ under the License.
<set field="createAcctgTransAndEntriesMap.transactionDate" from-field="nowTimestamp"/>
<set field="createAcctgTransAndEntriesMap.glFiscalTypeId" value="ACTUAL"/>
<set field="createAcctgTransAndEntriesMap.partyId" from-field="finAccount.ownerPartyId"/>
<!-- set initial values for Main AcctgTransEntry -->
<make-value value-field="mainAcctgTransEntry" entity-name="AcctgTransEntry"/>
<set field="mainAcctgTransEntry.glAccountId" from-field="glAccountId"/>
@@ -63,7 +63,7 @@ under the License.
<set field="mainAcctgTransEntry.amount" from-field="finAccountTrans.amount"/>
<set field="mainAcctgTransEntry.acctgTransEntryTypeId" value="_NA_"/>
<set field="mainAcctgTransEntry.acctgTransEntrySeqId" value="01"/>
<!-- set initial values for Offset AcctgTransEntry -->
<make-value value-field="offsetAcctgTransEntry" entity-name="AcctgTransEntry"/>
<set field="offsetAcctgTransEntry.organizationPartyId" from-field="finAccount.organizationPartyId"/>
@@ -71,17 +71,17 @@ under the License.
<set field="offsetAcctgTransEntry.amount" from-field="finAccountTrans.amount"/>
<set field="offsetAcctgTransEntry.acctgTransEntryTypeId" value="_NA_"/>
<set field="offsetAcctgTransEntry.acctgTransEntrySeqId" value="02"/>
<!-- Find the other side to post to/from -
if payment directory to account do from Payment;
if from account refill product purchase pull from special account where those funds wait;
<!-- Find the other side to post to/from -
if payment directory to account do from Payment;
if from account refill product purchase pull from special account where those funds wait;
if purchase on account, balance like bank acount received or something -->
<if>
<condition><if-compare field="finAccountTrans.finAccountTransTypeId" operator="equals" value="DEPOSIT"/></condition>
<then>
<!-- TODO: somehow check to see if the deposit was not from a product, or didn't get into the general CUSTOMER CREDITS 213000 account -->
<!--
<!--
Handle the case where a product is purchased to deposit to account.
The Product should be setup so that funds go to the general CUSTOMER CREDITS account, 213000.
This will simply transfer from that account to the configured account above.
@@ -96,9 +96,9 @@ under the License.
<condition><if-compare field="finAccountTrans.finAccountTransTypeId" operator="equals" value="WITHDRAWAL"/></condition>
<then>
<!-- TODO: somehow determine if this is an order placed against the account or some other type of withdrawal -->
<!-- TODO: handle order placed against (paid for with) the account -->
<set field="mainAcctgTransEntry.debitCreditFlag" value="C"/>
<set field="offsetAcctgTransEntry.debitCreditFlag" value="D"/>
<set field="createAcctgTransAndEntriesMap.acctgTransTypeId" value="PAYMENT_ACCTG_TRANS"/>
@@ -108,16 +108,16 @@ under the License.
<condition><if-compare field="finAccountTrans.finAccountTransTypeId" operator="equals" value="ADJUSTMENT"/></condition>
<then>
<!-- TODO: what to do for an adjustment? for now nothing, will error out below -->
<!-- if positive will go to one account for write-off, if negative will go to another account for a fee -->
<!-- these will reverse depending on positive/negative amount -->
<set field="mainAcctgTransEntry.debitCreditFlag" value="D"/>
<set field="offsetAcctgTransEntry.debitCreditFlag" value="C"/>
</then>
</else-if>
</if>
<!-- Make sure we have the glAccountId, glAccountIdOffset, organizationPartyId -->
<if-empty field="mainAcctgTransEntry.glAccountId">
<add-error><fail-message message="Cannot post FinAccountTrans with ID [${parameters.finAccountTransId}] to GL, could not find Main glAccountId"/></add-error>
@@ -129,7 +129,7 @@ under the License.
<add-error><fail-message message="Cannot post FinAccountTrans with ID [${parameters.finAccountTransId}] to GL, could not find organizationPartyId"/></add-error>
</if-empty>
<check-errors/>
<!-- Post the finAccountTrans.amount to/from the given GlAccounts -->
<set field="createAcctgTransAndEntriesMap.acctgTransEntries[]" from-field="mainAcctgTransEntry"/>
<set field="createAcctgTransAndEntriesMap.acctgTransEntries[]" from-field="offsetAcctgTransEntry"/>
@@ -20,7 +20,7 @@ under the License.
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="getArithmeticSettingsInline" short-description="getArithmeticSettingsInline">
<property-to-field resource="arithmetic" property="finaccount.decimals" field="roundingDecimals" default="2"/>
<property-to-field resource="arithmetic" property="finaccount.roundingSimpleMethod" field="roundingMode" default="HalfUp"/>
@@ -29,12 +29,12 @@ under the License.
<simple-method method-name="createFinAccount" short-description="Create a Financial Account">
<call-simple-method method-name="getArithmeticSettingsInline"/>
<!-- if no statusId set to default to FNACT_ACTIVE -->
<if-empty field="parameters.statusId">
<set field="parameters.statusId" value="FNACT_ACTIVE"/>
</if-empty>
<make-value value-field="newEntity" entity-name="FinAccount"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
@@ -47,9 +47,9 @@ under the License.
<!-- set the currency if none is already set -->
<if-empty field="newEntity.currencyUomId">
<property-to-field resource="general" property="currency.uom.id.default" field="defaultCurrency"/>
<set field="newEntity.currencyUomId" from-field="defaultCurrency"/>
<set field="newEntity.currencyUomId" from-field="defaultCurrency"/>
</if-empty>
<!-- set the refundable flag from the type; if not set -->
@@ -71,7 +71,7 @@ under the License.
</then>
</if>
</if-empty>
<!-- make sure the replenishLevel is a sane number -->
<calculate field="newEntity.replenishLevel" decimal-scale="${roundingDecimals}" rounding-mode="${roundingMode}">
<calcop operator="get" field="newEntity.replenishLevel"/>
@@ -79,13 +79,13 @@ under the License.
<create-value value-field="newEntity"/>
<field-to-result field="newEntity.finAccountId" result-name="finAccountId"/>
<set-service-fields service-name="createFinAccountStatus" map="newEntity" to-map="createFinAccountStatusMap"/>
<call-service service-name="createFinAccountStatus" in-map-name="createFinAccountStatusMap"/>
</simple-method>
<simple-method method-name="updateFinAccount" short-description="Update a Financial Account">
<call-simple-method method-name="getArithmeticSettingsInline"/>
<entity-one entity-name="FinAccount" value-field="lookedUpValue"/>
<field-to-result field="lookedUpValue.replenishPaymentId" result-name="oldReplenishPaymentId"/>
<field-to-result field="lookedUpValue.replenishLevel" result-name="oldReplenishLevel"/>
@@ -113,7 +113,7 @@ under the License.
<check-errors/>
</if-empty>
</if-not-empty>
<!-- before we set the nonpk fields, if the statusId is different save a status history record -->
<set-service-fields service-name="createFinAccountStatus" map="parameters" to-map="createFinAccountStatusMap"/>
<call-service service-name="createFinAccountStatus" in-map-name="createFinAccountStatusMap"/>
@@ -127,19 +127,19 @@ under the License.
<calcop operator="get" field="lookedUpValue.replenishLevel"/>
</calculate>
<store-value value-field="lookedUpValue"/>
<field-to-result field="lookedUpValue.replenishPaymentId" result-name="replenishPaymentId"/>
<field-to-result field="lookedUpValue.replenishLevel" result-name="replenishLevel"/>
<field-to-result field="lookedUpValue.finAccountId" result-name="finAccountId"/>
<field-to-result field="lookedUpValue.finAccountId" result-name="finAccountId"/>
</simple-method>
<simple-method method-name="deleteFinAccount" short-description="Delete a Financial Account">
<entity-one value-field="finAccount" entity-name="FinAccount"/>
<remove-value value-field="finAccount"/>
</simple-method>
<simple-method method-name="createFinAccountStatus" short-description="Create FinAccountStatus">
<now-timestamp field="nowTimestamp"/>
<!-- find the most recent status record and set the statusEndDate -->
<entity-and entity-name="FinAccountStatus" list="oldFinAccountStatusList">
<field-map field-name="finAccountId" from-field="parameters.finAccountId"/>
@@ -150,18 +150,18 @@ under the License.
<set field="oldFinAccountStatus.statusEndDate" from-field="nowTimestamp"/>
<store-value value-field="oldFinAccountStatus"/>
</if-not-empty>
<make-value entity-name="FinAccountStatus" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set field="newEntity.statusDate" from-field="nowTimestamp"/>
<create-value value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<!-- FinAccountTrans Services -->
<!-- FinAccountTrans Services -->
<simple-method method-name="createFinAccountTrans" short-description="Create a Financial Account Transaction">
<call-simple-method method-name="getArithmeticSettingsInline"/>
<make-value value-field="newEntity" entity-name="FinAccountTrans"/>
<set-nonpk-fields value-field="newEntity" map="parameters"/>
<sequenced-id sequence-name="FinAccountTrans" field="newEntity.finAccountTransId"/>
@@ -173,7 +173,7 @@ under the License.
<if-empty field="newEntity.entryDate">
<set from-field="nowTimestamp" field="newEntity.entryDate"/>
</if-empty>
<set field="newEntity.performedByPartyId" from-field="userLogin.partyId"/>
<!-- make sure the amount is a sane number -->
@@ -189,7 +189,7 @@ under the License.
<field-to-result field="newEntity.finAccountTransId" result-name="finAccountTransId"/>
</simple-method>
<!-- FinAccountRole Services -->
<!-- FinAccountRole Services -->
<simple-method method-name="createFinAccountRole" short-description="Create a Financial Account Role">
<make-value value-field="newEntity" entity-name="FinAccountRole"/>
<set-pk-fields value-field="newEntity" map="parameters"/>
@@ -211,15 +211,15 @@ under the License.
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- FinAccountAuth Services -->
<!-- FinAccountAuth Services -->
<simple-method method-name="createFinAccountAuth" short-description="Create a Financial Account Authorization">
<call-simple-method method-name="getArithmeticSettingsInline"/>
<make-value value-field="newEntity" entity-name="FinAccountAuth"/>
<set-nonpk-fields value-field="newEntity" map="parameters"/>
<sequenced-id sequence-name="FinAccountAuth" field="newEntity.finAccountAuthId"/>
<now-timestamp field="nowTimestamp"/>
<if-empty field="newEntity.authorizationDate">
<set from-field="nowTimestamp" field="newEntity.authorizationDate"/>
@@ -236,7 +236,7 @@ under the License.
<if-compare-field field="newEntity.amount" to-field="originalAmount" operator="not-equals" type="BigDecimal">
<log level="warning" message="In createFinAccountAuth had to round the amount from [${originalAmount}] to [${newEntity.amount}]"></log>
</if-compare-field>
<create-value value-field="newEntity"/>
<field-to-result field="newEntity.finAccountAuthId" result-name="finAccountAuthId"/>
</simple-method>
@@ -250,7 +250,7 @@ under the License.
</if-empty>
<store-value value-field="finAccountAuth"/>
</simple-method>
<!-- Some methods to maintain FinAccount.actualBalance and FinAccount.availableBalance -->
<simple-method method-name="updateFinAccountBalancesFromTrans" short-description="">
<if-not-empty field="parameters.finAccountId">
@@ -260,7 +260,7 @@ under the License.
<set field="finAccountId" from-field="mainFinAccountTrans.finAccountId"/>
</else>
</if-not-empty>
<call-simple-method method-name="inlineUpdateFinAccountActualAndAvailableBalance"/>
</simple-method>
<simple-method method-name="updateFinAccountBalancesFromAuth" short-description="">
@@ -271,15 +271,15 @@ under the License.
<set field="finAccountId" from-field="mainFinAccountAuth.finAccountId"/>
</else>
</if-not-empty>
<call-simple-method method-name="inlineUpdateFinAccountActualAndAvailableBalance"/>
</simple-method>
<simple-method method-name="inlineUpdateFinAccountActualAndAvailableBalance" short-description="">
<call-simple-method method-name="getArithmeticSettingsInline"/>
<!-- NOTE: finAccountId should always be in place -->
<!-- Get all of the records for the account from the database and sum everything up again, make sure we don't have any errors propagated over time -->
<entity-condition entity-name="FinAccountTrans" list="finAccountTransList">
<condition-expr field-name="finAccountId" from-field="finAccountId"/>
</entity-condition>
@@ -316,7 +316,7 @@ under the License.
</calcop>
</calculate>
</iterate>
<!-- Okay, now just store the results -->
<entity-one entity-name="FinAccount" value-field="finAccount"/>
<log level="info" message="In updateFinAccountBalancesFromTrans/Auth updating FinAccount with ID [${finAccountId}] with actualBalance: ${finAccount.actualBalance} -> ${actualBalanceSum}, and availableBalance: ${finAccount.availableBalance} -> ${availableBalanceSum}"/>
@@ -324,7 +324,7 @@ under the License.
<set field="finAccount.availableBalance" from-field="availableBalanceSum"/>
<store-value value-field="finAccount"/>
</simple-method>
<!-- FinAccountTypeGlAccount methods -->
<simple-method method-name="createFinAccountTypeGlAccount" short-description="Create an FinAccountTypeGlAccount">
<make-value value-field="newEntity" entity-name="FinAccountTypeGlAccount"/>
@@ -332,18 +332,18 @@ under the License.
<set-pk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateFinAccountTypeGlAccount" short-description="Update an FinAccountTypeGlAccount">
<entity-one entity-name="FinAccountTypeGlAccount" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="deleteFinAccountTypeGlAccount" short-description="Delete an FinAccountTypeGlAccount">
<entity-one entity-name="FinAccountTypeGlAccount" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- VarianceReasonGlAccount methods -->
<simple-method method-name="createVarianceReasonGlAccount" short-description="Create a Variance Reason Gl Account">
<make-value entity-name="VarianceReasonGlAccount" value-field="newEntity"/>
@@ -351,13 +351,13 @@ under the License.
<set-pk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateVarianceReasonGlAccount" short-description="Update an Variance Reason Gl Account">
<entity-one entity-name="VarianceReasonGlAccount" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="deleteVarianceReasonGlAccount" short-description="Delete an Variance Reason Gl Account">
<entity-one entity-name="VarianceReasonGlAccount" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
@@ -18,13 +18,13 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- ================================================================ -->
<!-- FixedAsset Services -->
<!-- ================================================================ -->
<!-- create a new Fixed Asset header record -->
<simple-method method-name="createFixedAsset" short-description="Create an FixedAsset">
<!-- create new entity and create all the fields -->
@@ -46,7 +46,7 @@ under the License.
</else>
</if-empty>
<field-to-result field="newEntity.fixedAssetId" result-name="fixedAssetId"/>
<!-- finally create the record (should not exist already)-->
<create-value value-field="newEntity"/>
</simple-method>
@@ -61,27 +61,27 @@ under the License.
<!-- ================================================================ -->
<!-- FixedAssetMember Services -->
<!-- ================================================================ -->
<!-- add a product to a fixed Asset -->
<simple-method method-name="addFixedAssetProduct" short-description="Add Product to FixedAsset">
<make-value value-field="newEntity" entity-name="FixedAssetProduct"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<if-empty field="newEntity.fromDate">
<now-timestamp field="newEntity.fromDate"/>
</if-empty>
<create-value value-field="newEntity"/>
</simple-method>
<!-- update the product to fixed Asset link -->
<!-- update the product to fixed Asset link -->
<simple-method method-name="updateFixedAssetProduct" short-description="Update Products of a FixedAsset">
<entity-one entity-name="FixedAssetProduct" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<!-- remove the productlink from the Fixed Asset -->
<simple-method method-name="removeFixedAssetProduct" short-description="Remove Product From FixedAsset">
<entity-one entity-name="FixedAssetProduct" value-field="lookedUpValue"/>
@@ -91,16 +91,16 @@ under the License.
<!-- ================================================================ -->
<!-- FixedAssetCalendar Services -->
<!-- ================================================================ -->
<!-- update the calendar of the fixed Asset -->
<!-- update the calendar of the fixed Asset -->
<!-- <simple-method method-name="updateFixedAssetCalendar" short-description="Update the calendar of the FixedAsset">
<check-permission permission="ACCOUNTING" action="_UPDATE">
<alt-permission permission="ACCOUNTING_ROLE" action="_UPDATE"/>
<fail-message message="Security Error: to run updateFixedAssetCalendar you must have the ACCOUNTING_UPDATE or ACCOUNTING_ADMIN permission, or the limited ACCOUNTING_ROLE_UPDATE permission"/>
</check-permission>
</check-permission>
<check-errors/>
<entity-one entity-name="FixedAsset" value-field="fixedAsset"/>
<make-value value-field="excDayPKMap" entity-name="TechDataCalendarExcDay"/>
<set-pk-fields field-name= "calendarId" map="fixedAsset" value-field="excDayPKMap"/>
<set-pk-fields fieldName= "exceptionDateStartTime" map="parameters" value-field="excDayPKMap"/>
@@ -108,7 +108,7 @@ under the License.
<set-nonpk-fields field-name="capacity" map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
-->
@@ -128,7 +128,7 @@ under the License.
<make-value value-field="newEntity" entity-name="FixedAssetStdCost"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<!-- finally create the record (should not exist already)-->
<create-value value-field="newEntity"/>
<check-errors/>
@@ -206,7 +206,7 @@ under the License.
</else>
</if-not-empty>
<if-not-empty field="maintTemplateWorkEffortId">
<set field="duplicateTemplateWorkEffortMap.oldWorkEffortId" from-field="maintTemplateWorkEffortId"/>
<sequenced-id sequence-name="WorkEffort" field="duplicateTemplateWorkEffortMap.workEffortId"/>
<set field="duplicateTemplateWorkEffortMap.duplicateWorkEffortAssocs" value="Y"/>
@@ -215,7 +215,7 @@ under the License.
<set field="duplicateTemplateWorkEffortMap.duplicateWorkEffortAssignmentRates" value="Y"/>
<call-service service-name="duplicateWorkEffort" in-map-name="duplicateTemplateWorkEffortMap"/>
<set field="newEntity.scheduleWorkEffortId" from-field="duplicateTemplateWorkEffortMap.workEffortId"/>
<else>
<!-- Create the WorkEffort -->
<!-- Maintenance WorkEffort entity -->
@@ -240,8 +240,8 @@ under the License.
<create-value value-field="newEntity"/>
<check-errors/>
<set field="workEffortId" from-field="newEntity.scheduleWorkEffortId"/>
<call-simple-method method-name="autoAssignFixedAssetPartiesToMaintenance"/>
</simple-method>
<call-simple-method method-name="autoAssignFixedAssetPartiesToMaintenance"/>
</simple-method>
<simple-method method-name="updateFixedAssetMaint" short-description="Update an existing FixedAsset Maintenance">
<entity-one entity-name="FixedAssetMaint" value-field="lookedUpValue"/>
<set field="oldStatusId" from-field="lookedUpValue.statusId"/>
@@ -308,11 +308,11 @@ under the License.
<make-value entity-name="FixedAssetMeter" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
<create-value value-field="newEntity"/>
<check-errors/>
<set field="meterValue" from-field="newEntity"/>
<call-simple-method method-name="createMaintsFromMeterReading"/>
</simple-method>
</simple-method>
<simple-method method-name="updateFixedAssetMeter" short-description="Update a Fixed Asset Meter Reading">
<entity-one entity-name="FixedAssetMeter" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
@@ -471,7 +471,7 @@ under the License.
</if-empty>
</iterate>
</simple-method>
<!-- create/update/delete FixedAssetMaintOrder -->
<simple-method method-name="createFixedAssetMaintOrder" short-description="Create a FixedAsset Maintenance Order">
<!-- Check, should exist orderId and orderItemId -->
@@ -481,8 +481,8 @@ under the License.
<add-error><fail-property resource="AccountingUiLabels" property="AccountingOrderWithIdNotFound"/></add-error>
</if-empty>
<check-errors/>
<!-- Check if user has not passed in orderItemSeqId then get list of OrderItems from database and default to first item -->
<!-- Check if user has not passed in orderItemSeqId then get list of OrderItems from database and default to first item -->
<if-empty field="parameters.orderItemSeqId">
<entity-and entity-name="OrderItem" list="orderItems">
<field-map field-name="orderId" from-field="parameters.orderId"/>
@@ -493,7 +493,7 @@ under the License.
<set field="parameters.orderItemSeqId" from-field="orderItem.orderItemSeqId"/>
</if-not-empty>
</if-not-empty>
<else>
<!-- Check, should exist orderId and orderItemId -->
<entity-one entity-name="OrderItem" value-field="lookedUpValue"/>
@@ -504,17 +504,17 @@ under the License.
</else>
</if-empty>
<check-errors/>
<make-value entity-name="FixedAssetMaintOrder" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="deleteFixedAssetMaintOrder" short-description="Delete FixedAsset Maintenance Order">
<entity-one entity-name="FixedAssetMaintOrder" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- ==============Party Fixed Asset Assignment============= -->
<simple-method method-name="createPartyFixedAssetAssignment" short-description="Associate Party to Fixed Asset">
<make-value entity-name="PartyFixedAssetAssignment" value-field="newEntity"/>
@@ -526,18 +526,18 @@ under the License.
</if-empty>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updatePartyFixedAssetAssignment" short-description="Update Party to Fixed Asset">
<entity-one entity-name="PartyFixedAssetAssignment" value-field="newEntity"/>
<set-nonpk-fields value-field="newEntity" map="parameters"/>
<store-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="deletePartyFixedAssetAssignment" short-description="Delete Party to Fixed Asset">
<entity-one entity-name="PartyFixedAssetAssignment" value-field="newEntity"/>
<remove-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="autoAssignFixedAssetPartiesToMaintenance" login-required="true"
short-description="Auto-assign Fixed Asset Parties to a Fixed Asset Maintenance">
<if-empty field="maintHistSeqId">
@@ -564,7 +564,7 @@ under the License.
</iterate>
</simple-method>
<!-- ============== Fixed Asset Depreciation methods ============== -->
<!-- ============== Fixed Asset Depreciation methods ============== -->
<simple-method method-name="straightLineDepreciation" short-description="Calculate straight line depreciation to Fixed Asset[ (PC-SV)/expLife ]">
<set field="expEndOfLifeYear" from-field="parameters.expEndOfLifeYear" type="Integer"/>
<set field="assetAcquiredYear" from-field="parameters.assetAcquiredYear" type="Integer"/>
@@ -601,7 +601,7 @@ under the License.
<field-to-result field="assetDepreciationTillDate"/>
<field-to-result field="assetNBVAfterDepreciation"/>
</simple-method>
<simple-method method-name="doubleDecliningBalanceDepreciation" short-description="Calculate double declining balance depreciation to Fixed Asset">
<set field="expEndOfLifeYear" from-field="parameters.expEndOfLifeYear" type="Integer"/>
<set field="assetAcquiredYear" from-field="parameters.assetAcquiredYear" type="Integer"/>
@@ -647,7 +647,7 @@ under the License.
<field-to-result field="assetDepreciationTillDate"/>
<field-to-result field="assetNBVAfterDepreciation"/>
</simple-method>
<simple-method method-name="calculateFixedAssetDepreciation" short-description="Service to calculate the yearly depreciation from dateAcquired year to current financial year">
<entity-one entity-name="FixedAsset" value-field="fixedAsset"/>
<if-empty field="fixedAsset">
@@ -716,7 +716,7 @@ under the License.
<first-from-list list="fixedAssetDepMethods" entry="fixedAssetDepMethod"/>
<get-related-one relation-name="CustomMethod" value-field="fixedAssetDepMethod" to-value-field="customMethod"/>
<log level="info" message="Depreciation service name for the FixedAsset ${parameters.fixedAssetId} is ${customMethod.customMethodName}"/>
<set field="serviceInMap.fixedAssetId" from-field="parameters.fixedAssetId"/>
<set field="serviceInMap.expEndOfLifeYear" from-field="expEndOfLifeYear" type="Integer"/>
<set field="serviceInMap.assetAcquiredYear" from-field="assetAcquiredYear" type="Integer"/>
@@ -735,6 +735,6 @@ under the License.
<add-error><fail-property resource="AccountingUiLabels" property="AccountingFixedAssetDepreciationMethodNotFound"/></add-error>
<check-errors/>
</else>
</if-not-empty>
</if-not-empty>
</simple-method>
</simple-methods>
@@ -244,7 +244,7 @@ under the License.
<call-service-asynch service-name="sendMailFromScreen" in-map-name="emailParams"/>
<property-to-field resource="AccountingUiLabels" property="AccountingEmailScheduledToSend" field="successMessage"/>
</simple-method>
<simple-method method-name="createInvoiceItemPayrol" short-description="Create a new Invoice Item with Payrol Item Type">
<entity-condition entity-name="InvoiceItemType" list="PayrolGroup">
<condition-expr field-name="parentTypeId" value="PAYROL"/>
@@ -524,7 +524,7 @@ under the License.
<field-map field-name="invoiceId" from-field="parameters.invoiceId"/>
</entity-and>
<iterate entry="entry" list="entries">
<clear-field field="entry.invoiceId"/>
<clear-field field="entry.invoiceId"/>
<clear-field field="entry.invoiceItemSeqId"/>
<store-value value-field="entry"/>
</iterate>
@@ -579,7 +579,7 @@ under the License.
<create-value value-field="invoiceContactMech"/>
<field-to-result field="contactMechId" result-name="invoiceContactMech"/>
</simple-method>
<simple-method method-name="updateInvoiceItemType" short-description="Updates a InvoiceItemType Record">
<entity-one entity-name="InvoiceItemType" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
@@ -512,7 +512,7 @@ under the License.
<field-map field-name="invoiceId" from-field="parameters.invoiceId"/>
</entity-and>
<iterate entry="entry" list="entries">
<clear-field field="entry.invoiceId"/>
<clear-field field="entry.invoiceId"/>
<clear-field field="entry.invoiceItemSeqId"/>
<store-value value-field="entry"/>
</iterate>
@@ -567,7 +567,7 @@ under the License.
<create-value value-field="invoiceContactMech"/>
<field-to-result field="contactMechId" result-name="invoiceContactMech"/>
</simple-method>
<simple-method method-name="updateInvoiceItemType" short-description="Updates a InvoiceItemType Record">
<entity-one entity-name="InvoiceItemType" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
@@ -30,7 +30,7 @@ under the License.
<field-map field-name="roleTypeIdFrom" value="CUSTOMER"/>
<field-map field-name="partyRelationshipTypeId" value="SALES_AFFILIATE"/><!-- this constraint could be optional if not being set in company data -->
</entity-and>
<iterate entry="affiliatePartyRelationship" list="affiliatePartyRelationshipList">
<!-- calculate a commission for each commission partner, identified by affiliatePartyRelationship.partyIdTo -->
<if>
@@ -46,7 +46,7 @@ under the License.
</calcop>
</calcop>
</calculate>
<set field="commissionPartyId" from-field="affiliatePartyRelationship.partyIdTo"/>
<call-simple-method method-name="createCommissionInvoiceInline"/>
</then>
@@ -58,11 +58,11 @@ under the License.
</if>
</iterate>
</simple-method>
<simple-method method-name="createCommissionInvoiceInline" short-description="Create Commission Invoice Inline">
<!-- should have in the context: payment, commissionAmount, commissionPartyId -->
<!-- this will create an invoice on behalf of the commission party, ie from the commissionPartyId to the company (payment.partyIdTo) -->
<set field="createInvoiceMap.invoiceTypeId" value="COMMISSION_INVOICE"/>
<set field="createInvoiceMap.statusId" value="INVOICE_RECEIVED"/>
<set field="createInvoiceMap.partyIdFrom" from-field="commissionPartyId"/>
@@ -70,7 +70,7 @@ under the License.
<call-service service-name="createInvoice" in-map-name="createInvoiceMap">
<result-to-field result-name="createdInvoiceId"/>
</call-service>
<set field="createInvoiceItemMap.invoiceId" from-field="createdInvoiceId"/>
<set field="createInvoiceItemMap.invoiceItemTypeId" value="COMM_INV_ITEM"/>
<set field="createInvoiceItemMap.amount" from-field="commissionAmount"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- ========= AcctgTrans methods ========= -->
<simple-method method-name="createAcctgTrans" short-description="Create an AcctgTrans">
@@ -26,10 +26,10 @@ under the License.
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<set field="newEntity.isPosted" value="N"/>
<!-- AcctgTrans uses a sequenced id, so get the next one now and set it... -->
<!-- AcctgTrans uses a sequenced id, so get the next one now and set it... -->
<sequenced-id sequence-name="AcctgTrans" field="newEntity.acctgTransId"/>
<field-to-result field="newEntity.acctgTransId" result-name="acctgTransId"/>
<set from-field="userLogin.userLoginId" field="newEntity.lastModifiedByUserLogin"/>
<set from-field="userLogin.userLoginId" field="newEntity.createdByUserLogin"/>
@@ -39,19 +39,19 @@ under the License.
<entity-one entity-name="AcctgTrans" value-field="lookedUpValue"/>
<if-compare field="lookedUpValue.isPosted" operator="equals" value="Y">
<add-error><fail-property resource="AccountingUiLabels" property="AccountingTransactionHasBeenAlreadyPosted"/></add-error>
<check-errors/>
<check-errors/>
</if-compare>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<set from-field="userLogin.userLoginId" field="lookedUpValue.lastModifiedByUserLogin"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="deleteAcctgTrans" short-description="Delete an AcctgTrans">
<entity-one entity-name="AcctgTrans" value-field="lookedUpValue"/>
<if-compare field="lookedUpValue.isPosted" operator="equals" value="Y">
<add-error><fail-property resource="AccountingUiLabels" property="AccountingTransactionHasBeenAlreadyPosted"/></add-error>
<check-errors/>
<check-errors/>
</if-compare>
<remove-value value-field="lookedUpValue"/>
</simple-method>
@@ -61,7 +61,7 @@ under the License.
<set from-field="userLogin.userLoginId" field="lookedUpACTX.lastModifiedByUserLogin"/>
<store-value value-field="lookedUpACTX"/>
</simple-method>
<!-- ========= AcctgTransEntry methods ========= -->
<simple-method method-name="createAcctgTransEntry" short-description="Add Entry To AcctgTrans">
<make-value entity-name="AcctgTransEntry" value-field="newEntity"/>
@@ -70,7 +70,7 @@ under the License.
<entity-one entity-name="AcctgTrans" value-field="acctgTrans"/>
<if-compare field="acctgTrans.isPosted" operator="equals" value="Y">
<add-error><fail-property resource="AccountingUiLabels" property="AccountingTransactionHasBeenAlreadyPosted"/></add-error>
<check-errors/>
<check-errors/>
</if-compare>
<make-next-seq-id value-field="newEntity" seq-field-name="acctgTransEntrySeqId" numeric-padding="5"/>
<field-to-result field="newEntity.acctgTransEntrySeqId" result-name="acctgTransEntrySeqId"/>
@@ -83,7 +83,7 @@ under the License.
<if-empty field="parameters.currencyUomId">
<set from-field="partyAcctgPreference.baseCurrencyUomId" field="newEntity.currencyUomId"/>
</if-empty>
<!-- if the amount field is empty, then determine it from the origAmount and origCurrencyUomId fields:
if origCurrencyUomId is different from the base currency of the organization, then the amount value will be converted -->
<if-empty field="newEntity.amount">
@@ -122,7 +122,7 @@ under the License.
<entity-one entity-name="AcctgTrans" value-field="acctgTrans"/>
<if-compare field="acctgTrans.isPosted" operator="equals" value="Y">
<add-error><fail-property resource="AccountingUiLabels" property="AccountingTransactionHasBeenAlreadyPosted"/></add-error>
<check-errors/>
<check-errors/>
</if-compare>
<entity-one entity-name="AcctgTransEntry" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
@@ -135,7 +135,7 @@ under the License.
<entity-one entity-name="AcctgTrans" value-field="acctgTrans"/>
<if-compare field="acctgTrans.isPosted" operator="equals" value="Y">
<add-error><fail-property resource="AccountingUiLabels" property="AccountingTransactionHasBeenAlreadyPosted"/></add-error>
<check-errors/>
<check-errors/>
</if-compare>
<entity-one entity-name="AcctgTransEntry" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
@@ -145,10 +145,10 @@ under the License.
</simple-method>
<!-- AcctgTrans Trial Balance and Post routines -->
<simple-method method-name="calculateAcctgTransTrialBalance" short-description="Calculate Trial Balance for a AcctgTrans">
<simple-method method-name="calculateAcctgTransTrialBalance" short-description="Calculate Trial Balance for a AcctgTrans">
<property-to-field resource="arithmetic" property="ledger.decimals" field="ledgerDecimals"/>
<property-to-field resource="arithmetic" property="ledger.rounding" field="roundingMode"/>
<log level="info" message="Using ledger decimals [${ledgerDecimals}] and rounding [${roundingMode}]"/>
<!-- get all AcctgTransEntry for this trans, for each if debit add to debits total if credit add to credits total -->
@@ -178,14 +178,14 @@ under the License.
<!-- uh-oh, bad debitCreditFlag... -->
<add-error><fail-message message="Bad debitCreditFlag [${acctgTransEntry.debitCreditFlag}] (was not D or C) in Accounting Transaction Entry with acctgTransId=[${acctgTransEntry.acctgTransId}] and acctgTransEntrySeqId=[${acctgTransEntry.acctgTransEntrySeqId}]"/></add-error>
</else>
</if-compare>
</if-compare>
</else>
</if-compare>
</iterate>
<!-- check-errors just in case we had some bad debitCreditFlags -->
<check-errors/>
<!-- should now have the debitTotal and creditTotal, calculate the debitCreditDifference -->
<calculate field="debitCreditDifference" type="BigDecimal" decimal-scale="${ledgerDecimals}" rounding-mode="${roundingMode}">
<calcop operator="add">
@@ -193,7 +193,7 @@ under the License.
<calcop operator="negative" field="creditTotal"/>
</calcop>
</calculate>
<field-to-result field="debitTotal"/>
<field-to-result field="creditTotal"/>
<field-to-result field="debitCreditDifference"/>
@@ -217,12 +217,12 @@ under the License.
<if-compare field="trialBalanceResultMap.debitCreditDifference" operator="less-equals" value="-0.01" type="BigDecimal">
<add-error><fail-message message="Not posting GL Accounting Transaction with ID [${parameters.acctgTransId}] because the trial balance failed: Debit Total=${trialBalanceResultMap.debitTotal} Credit Total=${trialBalanceResultMap.creditTotal} Debit/Credit Difference=${trialBalanceResultMap.debitCreditDifference}"/></add-error>
</if-compare>
<entity-condition entity-name="AcctgTransEntry" list="acctgTransEntryList">
<condition-expr field-name="acctgTransId" from-field="parameters.acctgTransId"/>
<order-by field-name="acctgTransEntrySeqId"/>
</entity-condition>
<!-- check the scheduled posting date, but only if it's set -->
<if-not-empty field="acctgTrans.scheduledPostingDate">
<set field="scheduledPostingDate" from-field="acctgTrans.scheduledPostingDate"/>
@@ -238,7 +238,7 @@ under the License.
<set value="FISCAL_MONTH" field="onlyIncludePeriodTypeIdList[]"/>
<set value="FISCAL_WEEK" field="onlyIncludePeriodTypeIdList[]"/>
<set value="FISCAL_BIWEEK" field="onlyIncludePeriodTypeIdList[]"/>
<!-- get current period(s) and check if closed -->
<!-- also check if the glAccountId, amount, currencyUomId fields are all set -->
<iterate entry="acctgTransEntry" list="acctgTransEntryList">
@@ -246,7 +246,7 @@ under the License.
<if-empty field="customTimePeriodListByOrganizationPartyIdMap.${acctgTransEntry.organizationPartyId}">
<clear-field field="findCustomTimePeriodCallMap"/>
<clear-field field="customTimePeriodList"/>
<set from-field="acctgTrans.transactionDate" field="findCustomTimePeriodCallMap.findDate"/>
<set from-field="acctgTransEntry.organizationPartyId" field="findCustomTimePeriodCallMap.organizationPartyId"/>
<set from-field="onlyIncludePeriodTypeIdList" field="findCustomTimePeriodCallMap.onlyIncludePeriodTypeIdList"/>
@@ -255,7 +255,7 @@ under the License.
<call-service service-name="findCustomTimePeriods" in-map-name="findCustomTimePeriodCallMap">
<result-to-field result-name="customTimePeriodList"/>
</call-service>
<if-empty field="customTimePeriodList">
<add-error><fail-message message="Could not find a CustomTimePeriod (fiscal period) for the Transaction Date [${acctgTrans.transactionDate}] (is for Organization Party with ID [${acctgTransEntry.organizationPartyId}])"/></add-error>
</if-empty>
@@ -265,7 +265,7 @@ under the License.
<add-error><fail-message message="CustomTimePeriod (fiscal period) [${customTimePeriod.customTimePeriodId}] is CLOSED, cannot post to it (is for the Transaction Date [${acctgTrans.transactionDate}] and Organization Party with ID [${acctgTransEntry.organizationPartyId}])"/></add-error>
</if-compare>
</iterate>
<!-- save this customTimePeriodList for the current entry for later use -->
<set from-field="customTimePeriodList" field="customTimePeriodListByOrganizationPartyIdMap.${acctgTransEntry.organizationPartyId}"/>
</if-empty>
@@ -344,7 +344,7 @@ under the License.
<calculate field="postingAmount" type="BigDecimal">
<calcop field="acctgTransEntry.amount" operator="negative"/>
</calculate>
</if-compare>
</if-compare>
</else>
</if-compare>
<else>
@@ -358,13 +358,13 @@ under the License.
<calculate field="postingAmount" type="BigDecimal">
<calcop field="acctgTransEntry.amount" operator="negative"/>
</calculate>
</if-compare>
</if-compare>
</else>
</if-compare>
<else>
<log level="warning" message="GL account ${glAccount.glAccountId} is of class ${glAccount.glAccountClassId} which is neither debit nor credit - cannot update posted balance"/>
</else>
</if-compare>
</else>
</if-compare>
</else>
</if-compare>
<log level="verbose" message="GL account: [${acctgTransEntry.glAccountId}] initial balance: [${glAccountOrganization.postedBalance}] ${acctgTransEntry.debitCreditFlag} [${acctgTransEntry.amount}]"/>
@@ -406,20 +406,20 @@ under the License.
<calcop operator="add">
<calcop operator="get" field="acctgTransEntry.amount"/>
<calcop operator="get" field="glAccountHistory.postedDebits"/>
</calcop>
</calcop>
</calculate>
<else>
<if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C">
<calculate field="glAccountHistory.postedCredits" type="BigDecimal">
<calculate field="glAccountHistory.postedCredits" type="BigDecimal">
<calcop operator="add">
<calcop operator="get" field="acctgTransEntry.amount"/>
<calcop operator="get" field="glAccountHistory.postedCredits"/>
</calcop>
</calcop>
</calculate>
<else>
<add-error><fail-message message="Bad debitCreditFlag [${acctgTransEntry.debitCreditFlag}] (was not D or C) in Accounting Transaction Entry with acctgTransId=[${acctgTransEntry.acctgTransId}] and acctgTransEntrySeqId=[${acctgTransEntry.acctgTransEntrySeqId}]"/></add-error>
</else>
</if-compare>
</if-compare>
</else>
</if-compare>
<store-value value-field="glAccountHistory"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="loadSalesInvoiceFact" short-description="">
@@ -150,7 +150,7 @@ under the License.
</calcop>
</calculate>
</iterate>
<calculate field="fact.extNetAmount">
<calcop field="fact.extGrossAmount" operator="subtract">
<calcop field="fact.extDiscountAmount" operator="get"/>
@@ -18,27 +18,27 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="createBillingAccount" short-description="Create Billing Account">
<make-value value-field="newEntity" entity-name="BillingAccount"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<sequenced-id sequence-name="BillingAccount" field="billingAccountId"/>
<to-string field="billingAccountId"/>
<set from-field="billingAccountId" field="newEntity.billingAccountId"/>
<field-to-result field="billingAccountId" result-name="billingAccountId"/>
<field-to-result field="billingAccountId" result-name="billingAccountId"/>
<if-empty field="newEntity.fromDate">
<now-timestamp field="nowTimestamp"/>
<set from-field="nowTimestamp" field="newEntity.fromDate"/>
</if-empty>
</if-empty>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateBillingAccount" short-description="Update Billing Account">
<make-value value-field="lookupPKMap" entity-name="BillingAccount"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccount" map="lookupPKMap" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
@@ -50,31 +50,31 @@ under the License.
<if-empty field="newEntity.fromDate">
<now-timestamp field="nowTimestamp"/>
<set from-field="nowTimestamp" field="newEntity.fromDate"/>
</if-empty>
</if-empty>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateBillingAccountRole" short-description="Update Billing Account Role">
<make-value value-field="lookupPKMap" entity-name="BillingAccountRole"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountRole" map="lookupPKMap" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
</simple-method>
<simple-method method-name="removeBillingAccountRole" short-description="Remove Billing Account Role">
<make-value value-field="lookupPKMap" entity-name="BillingAccountRole"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountRole" map="lookupPKMap" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="createBillingAccountTerm" short-description="Create Billing Account Term">
<make-value value-field="newEntity" entity-name="BillingAccountTerm"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<sequenced-id sequence-name="BillingAccountTerm" field="billingAccountTermId"/>
<to-string field="billingAccountTermId"/>
<set from-field="billingAccountTermId" field="newEntity.billingAccountTermId"/>
<field-to-result field="billingAccountTermId" result-name="billingAccountTermId"/>
<field-to-result field="billingAccountTermId" result-name="billingAccountTermId"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateBillingAccountTerm" short-description="Update Billing Account Term">
@@ -83,11 +83,11 @@ under the License.
<find-by-primary-key entity-name="BillingAccountTerm" map="lookupPKMap" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
</simple-method>
<simple-method method-name="removeBillingAccountTerm" short-description="Remove Billing Account Term">
<make-value entity-name="BillingAccountTerm" value-field="lookupPKMap"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
<find-by-primary-key entity-name="BillingAccountTerm" map="lookupPKMap" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
</simple-method>
</simple-methods>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-map-processors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-map-processors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-map-processor name="deletePaymentMethod">
<process field="paymentMethodId"><copy/><not-empty><fail-message message="Payment Method ID is missing"/></not-empty></process>
@@ -37,7 +37,7 @@ under the License.
<process field="firstNameOnCard"><copy/><not-empty><fail-message message="First Name on Card is missing"/></not-empty></process>
<process field="middleNameOnCard"><copy/></process>
<process field="lastNameOnCard"><copy/><not-empty><fail-message message="Last Name on Card is missing"/></not-empty></process>
<process field="suffixOnCard"><copy/></process>
<process field="suffixOnCard"><copy/></process>
<process field="cardType"><copy/><not-empty><fail-message message="Card Type is missing"/></not-empty></process>
<process field="cardNumber"><copy/><not-empty><fail-message message="Card Number is missing"/></not-empty></process>
<process field="contactMechId"><copy/></process>
@@ -18,9 +18,9 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="deletePaymentMethod" short-description="Delete Payment Method">
<call-map-processor xml-resource="component://accounting/script/org/ofbiz/accounting/payment/PaymentMapProcs.xml"
processor-name="deletePaymentMethod" in-map-name="parameters" out-map-name="context"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- DEJ20050428 Commenting out for now, does not appear to be used anywhere
@@ -46,12 +46,12 @@ under the License.
<call-bsh><![CDATA[
String body = "Bad orders: " + org.ofbiz.base.util.StringUtils.join(badOrders, ", ");
emailParams.put("body", body);
]]></call-bsh>
]]></call-bsh>
<call-service service-name="sendMail" in-map-name="emailParams"/>
</if-not-empty>
</if-not-empty>
</simple-method>
-->
<simple-method method-name="setPaymentMethodAddress" short-description="Set the initial payment method address">
<make-value value-field="lookupPKMap" entity-name="PaymentMethod"/>
<set-pk-fields map="parameters" value-field="lookupPKMap"/>
@@ -77,7 +77,7 @@ under the License.
<!-- find all CreditCard and EftAccount instances that use the current oldContactMechId and update them
through the updateCreditCard or updateEftAccount services to use the new contactMechId -->
<set field="lookupMap.contactMechId" from-field="parameters.oldContactMechId"/>
<find-by-and entity-name="CreditCard" map="lookupMap" list="creditCards"/>
<iterate entry="creditCard" list="creditCards">
<call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDateAfterToday" ret-field="isNotExpired">
@@ -91,7 +91,7 @@ under the License.
<call-service service-name="updateCreditCard" in-map-name="uccMap" break-on-error="false"/>
</if-compare>
</iterate>
<find-by-and entity-name="EftAccount" map="lookupMap" list="eftAccounts"/>
<iterate entry="eftAccount" list="eftAccounts">
<set-service-fields service-name="updateEftAccount" map="eftAccount" to-map="ueaMap"/>
@@ -108,18 +108,18 @@ under the License.
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateCreditCardTypeGlAccount" short-description="Update a Credit Card Gl Account">
<entity-one entity-name="CreditCardTypeGlAccount" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="deleteCreditCardTypeGlAccount" short-description="Delete a Credit Card Gl Account">
<entity-one entity-name="CreditCardTypeGlAccount" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- Updates a Payment Method Type default glAccountId -->
<simple-method method-name="updatePaymentMethodType" short-description="Updates a Payment Method Type default glAccountId">
<entity-one entity-name="PaymentMethodType" value-field="lookedUpValue"/>
@@ -19,31 +19,31 @@ under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="createPayment" short-description="Create a Payment">
<simple-method method-name="createPayment" short-description="Create a Payment">
<if>
<condition>
<and>
<not><if-has-permission permission="PAY_INFO" action="_CREATE"/></not>
<not><if-compare-field field="userLogin.partyId" to-field="parameters.partyIdFrom" operator="equals"/></not>
<not><if-compare-field field="userLogin.partyId" to-field="parameters.partyIdTo" operator="equals"/></not>
</and>
</and>
</condition>
<then>
<add-error><fail-property resource="AccountingUiLabels" property="AccountingCreatePaymentPermissionError"/></add-error>
</then>
</if>
<check-errors/>
<make-value entity-name="Payment" value-field="payment"/>
<if-empty field="parameters.paymentId">
<sequenced-id sequence-name="Payment" field="payment.paymentId"/>
<else>
<set field="payment.paymentId" from-field="parameters.paymentId"/>
</else>
</else>
</if-empty>
<field-to-result field="payment.paymentId" result-name="paymentId"/>
<if-not-empty field="parameters.paymentMethodId">
<entity-one entity-name="PaymentMethod" value-field="paymentMethod">
<field-map field-name="paymentMethodId" from-field="parameters.paymentMethodId"/>
@@ -56,7 +56,7 @@ under the License.
<fail-property resource="AccountingUiLabels" property="AccountingPaymentMethodIdPaymentMethodTypeIdNullError"/>
</add-error>
</if-empty>
<set-nonpk-fields map="parameters" value-field="payment"/>
<if-empty field="payment.effectiveDate">
<now-timestamp field="payment.effectiveDate"/>
@@ -66,7 +66,7 @@ under the License.
<simple-method method-name="updatePayment" short-description="Update a Payment">
<make-value entity-name="Payment" value-field="lookupPayment"/>
<set-pk-fields value-field="lookupPayment" map="parameters"/>
<find-by-primary-key entity-name="Payment" map="lookupPayment" value-field="payment"/>
<if>
<condition>
@@ -74,7 +74,7 @@ under the License.
<not><if-has-permission permission="PAY_INFO" action="_UPDATE"/></not>
<not><if-compare-field field="userLogin.partyId" to-field="payment.partyIdFrom" operator="equals"/></not>
<not><if-compare-field field="userLogin.partyId" to-field="payment.partyIdTo" operator="equals"/></not>
</and>
</and>
</condition>
<then>
<add-error><fail-property resource="AccountingUiLabels" property="AccountingUpdatePaymentPermissionError"/></add-error>
@@ -98,11 +98,11 @@ under the License.
</if-compare-field>
</if-compare>
<check-errors/>
<set field="statusIdSave" from-field="payment.statusId"/> <!-- do not allow status change here -->
<set-nonpk-fields map="parameters" value-field="payment"/>
<set field="payment.statusId" from-field="statusIdSave"/> <!-- do not allow status change here -->
<if-empty field="payment.effectiveDate">
<now-timestamp field="payment.effectiveDate"/>
</if-empty>
@@ -116,7 +116,7 @@ under the License.
<set field="payment.paymentMethodTypeId" from-field="paymentMethod.paymentMethodTypeId"/>
</if-not-empty>
<store-value value-field="payment"/>
<if-not-empty field="parameters.statusId">
<if-compare-field field="parameters.statusId" to-field="statusIdSave" operator="not-equals">
<set-service-fields service-name="setPaymentStatus" map="parameters" to-map="param"/>
@@ -163,7 +163,7 @@ under the License.
<create-value value-field="paymentAppl"/>
</simple-method>
<simple-method method-name="setPaymentStatus" short-description="Set The Payment Status">
<check-permission permission="ACCOUNTING" action="_UPDATE">
<alt-permission permission="ACCOUNTING_ROLE" action="_UPDATE"/>
@@ -172,7 +172,7 @@ under the License.
<entity-one entity-name="Payment" value-field="payment"/>
<field-to-result field="payment.paymentId" result-name="oldStatusId"/>
<if-compare-field field="payment.statusId" to-field="parameters.statusId" operator="not-equals">
<entity-one entity-name="StatusValidChange" value-field="statusChange" auto-field-map="false">
<field-map field-name="statusId" from-field="payment.statusId"/>
@@ -183,7 +183,7 @@ under the License.
<log level="error" message="Cannot change from ${payment.statusId} to ${parameters.statusId}"/>
<check-errors/>
<else>
<!-- check if the payment fully applied when set to confirmed-->
<if-compare field="parameters.statusId" operator="equals" value="PMNT_CONFIRMED">
<set field="notYetApplied" value="${bsh:org.ofbiz.accounting.payment.PaymentWorker.getPaymentNotApplied(payment)}"/>
@@ -192,8 +192,8 @@ under the License.
<log level="error" message="Cannot change from ${payment.statusId} to ${parameters.statusId}, payment not fully applied: ${notYetapplied}"/>
<check-errors/>
</if-compare>
</if-compare>
</if-compare>
<if-compare field="parameters.statusId" operator="equals" value="PMNT_CANCELLED">
<!-- if new status is cancelled delete existing payment applications. -->
<get-related value-field="payment" relation-name="PaymentApplication" list="paymentApplications"/>
@@ -209,16 +209,16 @@ under the License.
<call-service service-name="updateOrderPaymentPreference" in-map-name="updateOrderPaymentPreferenceMap"/>
</if-not-empty>
</if-compare>
<!-- everything ok so now change the status field -->
<set from-field="parameters.statusId" field="payment.statusId"/>
<store-value value-field="payment"/>
</else>
</else>
</if-empty>
</if-compare-field>
</simple-method>
<simple-method method-name="quickSendPayment" short-description="Update a Payment then set it to status PMNT_SENT">
<call-service service-name="updatePayment" in-map-name="parameters"/>
<set field="param.paymentId" from-field="parameters.paymentId"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="findCustomTimePeriods" short-description="Find a CustomTimePeriod">
<if-not-empty field="parameters.organizationPartyId">
@@ -27,7 +27,7 @@ under the License.
<call-service service-name="getParentOrganizations" in-map-name="getParentOrganizationsCallMap">
<result-to-field result-name="parentOrganizationPartyIdList"/>
</call-service>
<iterate entry="curOrganizationPartyId" list="parentOrganizationPartyIdList">
<clear-field field="orgTimePeriodList"/>
<entity-condition entity-name="CustomTimePeriod" list="orgTimePeriodList">
@@ -46,7 +46,7 @@ under the License.
<list-to-list list="orgTimePeriodList" to-list="listSoFar"/>
</iterate>
</if-not-empty>
<if-compare field="parameters.excludeNoOrganizationPeriods" operator="not-equals" value="Y">
<entity-condition entity-name="CustomTimePeriod" list="generalCustomTimePeriodList">
<condition-list combine="and">
@@ -64,9 +64,9 @@ under the License.
</entity-condition>
<list-to-list list="generalCustomTimePeriodList" to-list="listSoFar"/>
</if-compare>
<!--
* We might want to implement this sometime in the future, but for now is not needed
* We might want to implement this sometime in the future, but for now is not needed
* go through the list and check each one to see if it has a child in the list, if so don't copy it
<if-compare field="parameters.excludeParentPeriods" operator="equals" value="Y"></if-compare>
-->
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- ============== Basic Permission Checking ============= -->
@@ -104,7 +104,7 @@ under the License.
<set field="primaryPermission" value="ACCTG_ATX"/>
<call-simple-method method-name="genericBasePermissionCheck" xml-resource="component://common/script/org/ofbiz/common/permission/CommonPermissionServices.xml"/>
</simple-method>
<!-- Returns hasPermission=true if user has one of the base ACCOUNTING CRUD+ADMIN permissions -->
<simple-method method-name="acctgBillingAcctCheck" short-description="Accounting billing account permission logic">
<call-simple-method method-name="basePermissionCheck"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<simple-method method-name="updateRateAmount" short-description="update/create a rate amount value">
@@ -42,7 +42,7 @@ under the License.
<if-empty field="parameters.workEffortId">
<set field="parameters.workEffortId" value="_NA_"/>
</if-empty>
<!-- try to find existing value -->
<entity-and entity-name="RateAmount" list="rateAmounts" filter-by-date="true">
<field-map field-name="rateTypeId" from-field="parameters.rateTypeId"/>
@@ -68,13 +68,13 @@ under the License.
<now-timestamp field="newEntity.fromDate"/>
<clear-field field="newEntity.thruDate"/>
<create-value value-field="newEntity"/>
</simple-method>
</simple-method>
<simple-method method-name="deleteRateAmount" short-description="update/create a rate amount value">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<!-- set defaults -->
<if-empty field="parameters.rateCurrencyUomId">
<property-to-field resource="general.properties" property="currency.uom.id.default" field="parameters.rateCurrencyUomId"/>
@@ -108,7 +108,7 @@ under the License.
<set value="_READ" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<!--
<!--
Search for the applicable rate from most specific to most general in the RateAmount entity
Defaults for periodTypeId is per hour and default currency is the currency in general.properties
The order is:
@@ -116,7 +116,7 @@ under the License.
2. for specific rateTypeId, partyId (party)
3. for specific rateTypeId, emplPositionTypeId (emplPositionType)
4. for specific rateTypeId (rateType)
Then will be checked if the requested periodTypeId and currency can be found, if not isue an error message
-->
<if-empty field="parameters.rateCurrencyUomId">
@@ -125,13 +125,13 @@ under the License.
<if-empty field="parameters.periodTypeId">
<set field="parameters.periodTypeId" value="RATE_HOUR"/>
</if-empty>
<if><!-- workeffort level -->
<condition>
<and>
<not><if-empty field="parameters.workEffortId"/></not>
<if-compare field="parameters.workEffortId" value="_NA_" operator="not-equals"/>
</and>
</and>
</condition>
<then>
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
@@ -146,14 +146,14 @@ under the License.
</if-not-empty>
</then>
</if>
<if><!-- party level -->
<condition>
<and>
<if-empty field="level"/>
<not><if-empty field="parameters.partyId"/></not>
<if-compare field="parameters.partyId" value="_NA_" operator="not-equals"/>
</and>
</and>
</condition>
<then>
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
@@ -168,14 +168,14 @@ under the License.
</if-not-empty>
</then>
</if>
<if><!-- emplPositionType level -->
<condition>
<and>
<if-empty field="level"/>
<not><if-empty field="parameters.emplPositionTypeId"/></not>
<if-compare field="parameters.emplPositionTypeId" value="_NA_" operator="not-equals"/>
</and>
</and>
</condition>
<then>
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
@@ -190,14 +190,14 @@ under the License.
</if-not-empty>
</then>
</if>
<if-empty field="level">
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
<field-map field-name="rateTypeId" from-field="parameters.rateTypeId"/>
</entity-and>
<set field="level" value="rateType"/>
</if-empty>
<if-empty field="amounts">
<entity-one entity-name="RateType" value-field="rateType"/>
<log level="error" message="A valid rate amount could not be found for rateType: ${rateType.description}"/>
@@ -221,7 +221,7 @@ under the License.
<log level="error" message="A valid rate entry could be found for rateType: ${rateType.description}, workEffort: ${workEffort.workEffortName}, party: ${partyNameView.lastName} ${partyNameView.middleName} ${partyNameView.firstName}${partyNameView.groupName} However.....not for the period: ${period.description} and currency: ${currencyUomId.description}"/>
</if-empty>
</if-compare>
<if-compare field="level" value="party" operator="equals">
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
<field-map field-name="rateTypeId" from-field="parameters.rateTypeId"/>
@@ -239,7 +239,7 @@ under the License.
<log level="error" message="A valid rate entry could be found for rateType: ${rateType.description}, party: ${partyNameView.lastName} ${partyNameView.middleName} ${partyNameView.firstName}${partyNameView.groupName} However..... NOT for the period: ${period.description} and currency: ${currencyUomId.description}"/>
</if-empty>
</if-compare>
<if-compare field="level" value="emplPositionType" operator="equals">
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
<field-map field-name="rateTypeId" from-field="parameters.rateTypeId"/>
@@ -258,7 +258,7 @@ under the License.
<check-errors/>
</if-empty>
</if-compare>
<if-compare field="level" value="rateType" operator="equals">
<entity-and entity-name="RateAmount" list="amounts" filter-by-date="true">
<field-map field-name="rateTypeId" from-field="parameters.rateTypeId"/>
@@ -287,15 +287,15 @@ under the License.
<field-to-result field="level"/>
<field-to-result field="amount.fromDate" result-name="fromDate"/>
</if-not-empty>
</simple-method>
<!-- party rate services -->
<simple-method method-name="updatePartyRate" short-description="Update/Create PartyRate">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<!-- check if already exist is so expire current record -->
<entity-and entity-name="PartyRate" list="partyRates" filter-by-date="true">
<field-map field-name="partyId" from-field="parameters.partyId"/>
@@ -313,7 +313,7 @@ under the License.
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<call-simple-method method-name="checkOtherDefaultRate"/>
<create-value value-field="newEntity"/>
<if-not-empty field="parameters.rateAmount">
<set-service-fields service-name="updateRateAmount" map="parameters" to-map="updRate"/>
<call-service service-name="updateRateAmount" in-map-name="updRate"/>
@@ -340,14 +340,14 @@ under the License.
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="PartyRate" value-field="lookedUpValue"/>
<now-timestamp field="lookedUpValue.thruDate"/>
<store-value value-field="lookedUpValue"/>
<set-service-fields service-name="deleteRateAmount" map="parameters" to-map="delRateAmount"/>
<set field="delRateAmount.fromDate" from-field="parameters.rateAmountFromDate"/>
<call-service service-name="deleteRateAmount" in-map-name="delRateAmount"/>
<call-service service-name="deleteRateAmount" in-map-name="delRateAmount"/>
</simple-method>
<!-- migrate service -->
@@ -365,11 +365,11 @@ under the License.
<set field="rateAmount.partyId" value="_NA_"/>
<property-to-field resource="general.properties" property="currency.uom.id.default" field="rateAmount.rateCurrencyUomId"/>
<create-value value-field="rateAmount"/>
</iterate>
</iterate>
<entity-condition entity-name="OldPartyRate" list="partyRates"/>
<iterate entry="oldPartyRate" list="oldPartyRates">
<make-value value-field="partyRate" entity-name="PartyRate"/>
<set-pk-fields value-field="oldPartyRate" map="partyRate"/>
<set-pk-fields value-field="oldPartyRate" map="partyRate"/>
<set-nonpk-fields value-field="oldPartyRate" map="partyRate"/>
<create-value value-field="partyRate"/>
<make-value value-field="rateAmount" entity-name="RateAmount"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- TaxAuthority methods -->
@@ -26,17 +26,17 @@ under the License.
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<make-value entity-name="TaxAuthority" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateTaxAuthority" short-description="update a TaxAuthority">
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthority" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
@@ -45,28 +45,28 @@ under the License.
<set value="_DELETE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthority" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- TaxAuthorityAssoc methods -->
<simple-method method-name="createTaxAuthorityAssoc" short-description="create a TaxAuthorityAssoc">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<make-value entity-name="TaxAuthorityAssoc" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<if-empty field="newEntity.fromDate"><now-timestamp field="newEntity.fromDate"/></if-empty>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateTaxAuthorityAssoc" short-description="update a TaxAuthorityAssoc">
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityAssoc" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
@@ -75,27 +75,27 @@ under the License.
<set value="_DELETE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityAssoc" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- TaxAuthorityCategory methods -->
<simple-method method-name="createTaxAuthorityCategory" short-description="create a TaxAuthorityCategory">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<make-value entity-name="TaxAuthorityCategory" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateTaxAuthorityCategory" short-description="update a TaxAuthorityCategory">
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityCategory" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
@@ -104,7 +104,7 @@ under the License.
<set value="_DELETE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<set field="taxAuthorityRateProductMap.taxAuthGeoId" from-field="parameters.taxAuthGeoId"/>
<set field="taxAuthorityRateProductMap.taxAuthPartyId" from-field="parameters.taxAuthPartyId"/>
<set field="taxAuthorityRateProductMap.productCategoryId" from-field="parameters.productCategoryId"/>
@@ -120,23 +120,23 @@ under the License.
</if-empty>
<check-errors/>
</simple-method>
<!-- TaxAuthorityGlAccount methods -->
<simple-method method-name="createTaxAuthorityGlAccount" short-description="create a TaxAuthorityGlAccount">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<make-value entity-name="TaxAuthorityGlAccount" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateTaxAuthorityGlAccount" short-description="update a TaxAuthorityGlAccount">
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityGlAccount" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
@@ -145,29 +145,29 @@ under the License.
<set value="_DELETE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityGlAccount" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- TaxAuthorityRateProduct methods -->
<simple-method method-name="createTaxAuthorityRateProduct" short-description="create a TaxAuthorityRateProduct">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<make-value entity-name="TaxAuthorityRateProduct" value-field="newEntity"/>
<sequenced-id sequence-name="TaxAuthorityRateProduct" field="newEntity.taxAuthorityRateSeqId"/>
<field-to-result field="newEntity.taxAuthorityRateSeqId" result-name="taxAuthorityRateSeqId"/>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updateTaxAuthorityRateProduct" short-description="update a TaxAuthorityRateProduct">
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityRateProduct" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
@@ -176,45 +176,45 @@ under the License.
<set value="_DELETE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="TaxAuthorityRateProduct" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
<!-- PartyTaxAuthInfo methods -->
<simple-method method-name="createPartyTaxAuthInfo" short-description="create a PartyTaxAuthInfo">
<set value="_CREATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><accept-userlogin-party/><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<call-simple-method method-name="validatePartyTaxIdInline"/>
<!-- done checking preliminary constraints, see if there are any errors -->
<check-errors/>
<make-value entity-name="PartyTaxAuthInfo" value-field="newEntity"/>
<set-pk-fields map="parameters" value-field="newEntity"/>
<if-empty field="newEntity.fromDate"><now-timestamp field="newEntity.fromDate"/></if-empty>
<set-nonpk-fields map="parameters" value-field="newEntity"/>
<create-value value-field="newEntity"/>
</simple-method>
<create-value value-field="newEntity"/>
</simple-method>
<simple-method method-name="updatePartyTaxAuthInfo" short-description="update a PartyTaxAuthInfo">
<set value="_UPDATE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><accept-userlogin-party/><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<call-simple-method method-name="validatePartyTaxIdInline"/>
<!-- done checking preliminary constraints, see if there are any errors -->
<check-errors/>
<entity-one entity-name="PartyTaxAuthInfo" value-field="lookedUpValue"/>
<set-nonpk-fields value-field="lookedUpValue" map="parameters"/>
<store-value value-field="lookedUpValue"/>
</simple-method>
<simple-method method-name="validatePartyTaxIdInline" short-description="validatePartyTaxIdInline">
<!-- validate the partyTaxId based on TaxAuthority.taxIdFormatPattern if not empty -->
<!-- If the party validated is in the UE, we could to a better job using the SOAP service from http://ec.europa.eu/taxation_customs/vies/faqvies.do#item16 -->
<!-- If the party validated is in the UE, we could to a better job using the SOAP service from http://ec.europa.eu/taxation_customs/vies/faqvies.do#item16 -->
<entity-one entity-name="TaxAuthority" value-field="taxAuthority"/>
<if>
<condition>
@@ -229,12 +229,12 @@ under the License.
</then>
</if>
</simple-method>
<simple-method method-name="deletePartyTaxAuthInfo" short-description="delete a PartyTaxAuthInfo">
<set value="_DELETE" field="securityAction"/>
<check-permission permission="ACCOUNTING" action="${securityAction}"><accept-userlogin-party/><fail-property resource="AccountingUiLabels" property="AccountingPermissionError"/></check-permission>
<check-errors/>
<entity-one entity-name="PartyTaxAuthInfo" value-field="lookedUpValue"/>
<remove-value value-field="lookedUpValue"/>
</simple-method>
@@ -247,5 +247,5 @@ under the License.
]]></call-bsh>
<set-service-fields service-name="createPartyTaxAuthInfo" map="parameters" to-map="createPartyTaxAuthInfoMap"/>
<call-service service-name="createPartyTaxAuthInfo" in-map-name="createPartyTaxAuthInfoMap" include-user-login="true"/>
</simple-method>
</simple-method>
</simple-methods>
@@ -18,17 +18,17 @@ specific language governing permissions and limitations
under the License.
-->
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd">
<!-- Test case for Accounting Transaction on Purchase -->
<!-- Test case for Accounting Transaction on Purchase -->
<simple-method method-name="testAcctgTransOnPoReceipts" short-description="Test case for Accounting Transaction on Receipts of Purchase Order." login-required="false">
<!-- Precondition : shipment is created from supplier and order items are issued -->
<!-- create a purchase order using following:
<!-- create a purchase order using following:
Supplier : DemoSupplier
Item : WG-1111
Quantity : 10 -->
<!-- Post condition : Credit in account 214000 - UNINVOICED ITEM RECEIPT amount = grand total of order.
Debit in account 140000- INVENTORY amount = grand total of order. -->
@@ -50,7 +50,7 @@ under the License.
<set field="serviceCtx.shipmentId" from-field="shipmentId"/>
<set field="serviceCtx.orderId" from-field="orderId"/>
<set field="serviceCtx.orderItemSeqId" from-field="orderItemSeqId"/>
<call-service service-name="receiveInventoryProduct" in-map-name="serviceCtx"/>
<entity-condition entity-name="AcctgTransEntry" list="acctgTransEntries">
<condition-expr field-name="productId" from-field="productId"/>
@@ -69,12 +69,12 @@ under the License.
<if-compare field="acctgTransEntry.glAccountId" operator="equals" value="140000"/>
</assert>
</if-compare>
</else>
</else>
</if-compare>
</iterate>
<check-errors/>
</simple-method>
<simple-method method-name="testAcctgTransOnEditPoInvoice" short-description="Test case for Purchase Invoices: editing, adding taxes and shipping charges and posting to GL" login-required="false">
<!-- Precondition: To the Purchase Invoice created add taxes and two different shipping charges
1. for taxes: set "Invoice Item Type" = "Invoice Sales Tax" and "Unit Price" = 10$
@@ -100,13 +100,13 @@ under the License.
<entity-one entity-name="Invoice" value-field="invoice">
<field-map field-name="invoiceId" from-field="invoiceId"/>
</entity-one>
<get-related value-field="invoice" relation-name="AcctgTrans" list="acctgTransList"/>
<get-related value-field="invoice" relation-name="AcctgTrans" list="acctgTransList"/>
<first-from-list list="acctgTransList" entry="acctgTrans"/>
<get-related value-field="acctgTrans" relation-name="AcctgTransEntry" list="acctgTransEntries"/>
<set field="debitTotal" type="BigDecimal" value="0.0"/>
<set field="creditTotal" type="BigDecimal" value="0.0"/>
<assert><not><if-empty field="acctgTransEntries"/></not></assert>
<iterate list="acctgTransEntries" entry="acctgTransEntry">
<if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C">
@@ -123,22 +123,22 @@ under the License.
<calcop operator="add" field="acctgTransEntry.origAmount"/>
</calculate>
</if-compare>
</else>
</else>
</if-compare>
</iterate>
<assert>
<if-compare field="debitTotal" operator="equals" value="creditTotal"/>
</assert>
<check-errors/>
<check-errors/>
</simple-method>
<simple-method method-name="testAcctgTransOnPaymentSentToSupplier" short-description="Test case for Payment sent to supplier for purchase invoice." login-required="false">
<!--
Precondition: New payment is created for: supplierId = "DemoSupplier", "Payment Type ID" = "Vendor Payment" and
<!--
Precondition: New payment is created for: supplierId = "DemoSupplier", "Payment Type ID" = "Vendor Payment" and
a proper "Payment Method Type" (e.g. "Electronic Funds Transfer"), amount = $290
Post condition: On payment's status is sent: a double-entry accounting transaction is automatically posted to the GL:
* Credit; in account 111100 - "GENERAL CHECKING ACCOUNT"; amount: 290$; however this depends on the "Payment method type" selected;
* Credit; in account 111100 - "GENERAL CHECKING ACCOUNT"; amount: 290$; however this depends on the "Payment method type" selected;
* Debit; in account 210000 - "ACCOUNTS PAYABLE"; amount: 290$
-->
@@ -154,13 +154,13 @@ under the License.
<entity-one entity-name="Payment" value-field="payment">
<field-map field-name="paymentId" from-field="paymentId"/>
</entity-one>
<get-related value-field="payment" relation-name="AcctgTrans" list="acctgTransList"/>
<get-related value-field="payment" relation-name="AcctgTrans" list="acctgTransList"/>
<first-from-list list="acctgTransList" entry="acctgTrans"/>
<get-related value-field="acctgTrans" relation-name="AcctgTransEntry" list="acctgTransEntries"/>
<set field="debitTotal" type="BigDecimal" value="0.0"/>
<set field="creditTotal" type="BigDecimal" value="0.0"/>
<assert><not><if-empty field="acctgTransEntries"/></not></assert>
<iterate list="acctgTransEntries" entry="acctgTransEntry">
<if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C">
@@ -177,24 +177,24 @@ under the License.
</assert>
<set field="debitTotal" from-field="acctgTransEntry.origAmount"/>
</if-compare>
</else>
</else>
</if-compare>
</iterate>
<assert>
<if-compare field="debitTotal" operator="equals" value="${creditTotal}"/>
</assert>
<check-errors/>
<check-errors/>
</simple-method>
<!-- Test case for Accounting Transaction on Sales -->
<simple-method method-name="testAcctgTransForSalesOrderShipments" short-description="Creation and Shipments of sales order" login-required="false">
<!-- Precondition :
<!-- Precondition :
1. create a sales order
2. from the order view screen, approve the order
3. from the order view screen, create a shipment to the customer (click on "New Shipment For Ship Group" and then click on the "Update" button in the next screen)
3. from the order view screen, create a shipment to the customer (click on "New Shipment For Ship Group" and then click on the "Update" button in the next screen)
-->
<!-- Following process is tested by test case:
1. issue (assign) the order items to the shipment: select the "Order Items" tab and then click on "Issue All"; this action will generate and post to the GL the accounting transaction for the items taken from the warehouse and ready to be shipped
1. issue (assign) the order items to the shipment: select the "Order Items" tab and then click on "Issue All"; this action will generate and post to the GL the accounting transaction for the items taken from the warehouse and ready to be shipped
-->
<!-- Post condition: all order items will be issued and it will generate and post to the GL the accounting transaction for the items taken from the warehouse and ready to be shipped
* Credit; in account:140000 - Account Type:"INVENTORY_ACCOUNT"
@@ -224,7 +224,7 @@ under the License.
<entity-condition entity-name="AcctgTransEntry" list="acctgTransEntryList">
<condition-expr field-name="productId" operator="equals" from-field="productId"/>
</entity-condition>
<assert><not><if-empty field="acctgTransEntryList"/></not></assert>
<iterate list="acctgTransEntryList" entry="acctgTransEntry">
<if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C">
@@ -262,7 +262,7 @@ under the License.
-->
<set field="invoiceId" value="CI1"/>
<entity-one entity-name="UserLogin" value-field="userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
@@ -297,9 +297,9 @@ under the License.
</iterate>
<check-errors/>
</simple-method>
<simple-method method-name="testAcctgTransOnPaymentReceivedFromCustomer" short-description="Test case on Payment Received from customer for Sales Invoice" login-required="false">
<!-- Precondition :-
<!-- Precondition :-
1. Click on the Payment top menu in the Accounting application, then click on the "Create New Payment" link.
2. In the "New incoming payment" box, set the customer id in the "From Party ID" field; then set "Payment Type ID" = "Customer Payment" and a proper "Payment Method Type" (e.g. "Electronic Funds Transfer"); then set the "amount" and submit the form
-->
@@ -355,7 +355,7 @@ under the License.
</assert>
<check-errors/>
</simple-method>
<!-- Test case for Accounting Transaction on Manufacturing -->
<simple-method method-name="testAcctgTransOnMaterialIssuance" short-description="Production run test case for material issuance from the warehouse" login-required="false">
<!-- Precondition: Inventory is received for following products:
@@ -363,11 +363,11 @@ under the License.
productId = MAT_B_COST, quantity = 6, facilityId = Web Store Warehouse
then new production run is created and then started for following product
productId = PROD_COST, quantity = 2, facilityId = Web Store Warehouse
Post condition:- In entity "AcctgTransEntry" at least two entries will be created for MAT_A_COST
* Credit; in account 141000 - "RAW MATERIALS INVENTORY"; amount: 36$
* Debit; in account 142000 - "WORK IN PROGRESS INVENTORY"; amount: 36$
similarly for product MAT_B_COST
similarly for product MAT_B_COST
* Credit; in account 141000 - "RAW MATERIALS INVENTORY"; amount: 42$
* Debit; in account 142000 - "WORK IN PROGRESS INVENTORY"; amount: 42$ -->
@@ -392,7 +392,7 @@ under the License.
<set field="totalIssuedQty_MAT_A_COST" value="0.0" type="BigDecimal"/>
<set field="totalIssuedQty_MAT_B_COST" value="0.0" type="BigDecimal"/>
<iterate list="workEffortAndInventoryAssigns" entry="workEffortAndInventoryAssign">
<if-compare field="workEffortAndInventoryAssign.productId" operator="equals" value="MAT_A_COST">
<if-compare field="workEffortAndInventoryAssign.productId" operator="equals" value="MAT_A_COST">
<calculate field="totalIssuedQty_MAT_A_COST">
<calcop operator="add">
<calcop operator="get" field="workEffortAndInventoryAssign.quantity"/>
@@ -400,20 +400,20 @@ under the License.
</calcop>
</calculate>
<else>
<if-compare field="workEffortAndInventoryAssign.productId" operator="equals" value="MAT_B_COST">
<if-compare field="workEffortAndInventoryAssign.productId" operator="equals" value="MAT_B_COST">
<calculate field="totalIssuedQty_MAT_B_COST">
<calcop operator="add">
<calcop operator="get" field="workEffortAndInventoryAssign.quantity"/>
<calcop operator="get" field="totalIssuedQty_MAT_B_COST"/>
</calcop>
</calculate>
</if-compare>
</if-compare>
</else>
</if-compare>
</iterate>
<assert>
<if-compare field="totalIssuedQty_MAT_A_COST" operator="equals" value="4.0" type="BigDecimal"/>
<if-compare field="totalIssuedQty_MAT_B_COST" operator="equals" value="6.0" type="BigDecimal"/>
<if-compare field="totalIssuedQty_MAT_B_COST" operator="equals" value="6.0" type="BigDecimal"/>
</assert>
<entity-and entity-name="AcctgTrans" list="acctgTransList">
<field-map field-name="acctgTransTypeId" value="INVENTORY"/>
@@ -428,7 +428,7 @@ under the License.
<assert>
<or>
<if-compare field="acctgTransEntry.productId" operator="equals" value="MAT_A_COST"/>
<if-compare field="acctgTransEntry.productId" operator="equals" value="MAT_B_COST"/>
<if-compare field="acctgTransEntry.productId" operator="equals" value="MAT_B_COST"/>
</or>
<if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="RAWMAT_INVENTORY"/>
<if-compare field="acctgTransEntry.glAccountId" operator="equals" value="141000"/>
@@ -447,7 +447,7 @@ under the License.
</iterate>
<check-errors/>
</simple-method>
<simple-method method-name="testAcctgTransForActualManufacturingCost" short-description="Production run test case for actual manufacturing costs" login-required="false">
<!-- Precondition: Inventory is received for the following products:
(1) productId = MAT_A_COST, quantity = 4, facilityId = Web Store Warehouse
@@ -457,7 +457,7 @@ under the License.
Post condition: In entity "AcctgTransEntry" two entries will be created:
* Credit: in account 600000 - "EXPENSE"; amount: 250$
* Debit: in account 142000 - "WORK IN PROGRESS INVENTORY", amount: 250$ -->
<set field="productionRunId" value="10000"/>
<set field="workEffortId" value="10001"/>
<set field="serviceCtx.productionRunId" from-field="productionRunId"/>
@@ -488,14 +488,14 @@ under the License.
<if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="WIP_INVENTORY"/>
<if-compare field="acctgTransEntry.glAccountId" operator="equals" value="142000"/>
</assert>
</if-compare>
</if-compare>
</else>
</if-compare>
</iterate>
</iterate>
</iterate>
<check-errors/>
</simple-method>
<simple-method method-name="testAcctgTransOnAddFinishedProductsIntoWarehouse" short-description="Production run test case on add finished product into warehouse" login-required="false">
<!-- Precondition: Inventory is received for following products:
productId = MAT_A_COST, quantity = 4, facilityId = Web Store Warehouse
@@ -506,14 +506,14 @@ under the License.
Post condition: In entity "AcctgTransEntry" two entries will be created:
* Debit, in account 140000 - "INVENTORY"; amount: 328$
* Credit, in account 142000 - "WORK IN PROGRESS INVENTORY", amount: 328$ (36$ + 42$ + 250$) -->
<set field="workEffortId" value="10000"/>
<set field="serviceCtx.workEffortId" from-field="workEffortId"/>
<entity-one entity-name="UserLogin" value-field="serviceCtx.userLogin">
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<call-service service-name="productionRunProduce" in-map-name="serviceCtx"/>
<!-- For credit entry -->
<entity-and entity-name="AcctgTransEntry" list="acctgTransEntryList">
<field-map field-name="productId" value="PROD_COST"/>
@@ -526,7 +526,7 @@ under the License.
<if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C"/>
<if-compare field="acctgTransEntry.origAmount" operator="equals" value="328" type="BigDecimal"/>
</assert>
<!-- For debit entry -->
<entity-and entity-name="AcctgTransEntry" list="acctgTransEntryList">
<field-map field-name="productId" value="PROD_COST"/>
@@ -539,6 +539,6 @@ under the License.
<if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="D"/>
<if-compare field="acctgTransEntry.origAmount" operator="equals" value="328" type="BigDecimal"/>
</assert>
<check-errors/>
<check-errors/>
</simple-method>
</simple-methods>
@@ -18,9 +18,9 @@ specific language governing permissions and limitations
under the License.
-->
<service-group xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<service-group xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-group.xsd">
<group name="createCreditCardAndAddress" send-mode="all">
<invoke name="createPostalAddress" mode="sync" result-to-context="true"/>
<invoke name="createCreditCard" mode="sync"/>
@@ -31,7 +31,7 @@ under the License.
<invoke name="createPartyContactMech" mode="sync"/>
<invoke name="updateCreditCard" mode="sync"/>
</group>
<group name="createEftAccountAndAddress" send-mode="all">
<invoke name="createPostalAddress" mode="sync" result-to-context="true"/>
<invoke name="createEftAccount" mode="sync"/>
+10 -10
View File
@@ -18,26 +18,26 @@ specific language governing permissions and limitations
under the License.
-->
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
<eca service="createInvoiceForOrder" event="return">
<condition field-name="invoiceId" operator="is-not-empty"/>
<condition field-name="invoiceTypeId" operator="equals" value="SALES_INVOICE"/>
<action service="capturePaymentsByInvoice" mode="sync"/>
</eca>
</eca>
<eca service="createPaymentApplication" event="commit">
<condition field-name="invoiceId" operator="is-not-empty"/>
<action service="checkInvoicePaymentApplications" mode="sync"/>
<action service="createCommissionInvoices" mode="sync" run-as-user="system"/>
</eca>
<!-- Uncomment this if you want commission invoices to be set to READY automatically, which means they are official
<!-- Uncomment this if you want commission invoices to be set to READY automatically, which means they are official
<eca service="createCommissionInvoices" event="commit">
<condition field-name="invoicesCreated" operator="is-not-empty"/>
<action service="readyInvoices" mode="sync"/>
</eca>
-->
<eca service="createPartyPostalAddress" event="commit">
<condition field-name="paymentMethodId" operator="is-not-empty"/>
<action service="setPaymentMethodAddress" mode="sync"/>
@@ -57,7 +57,7 @@ under the License.
<condition field-name="partyId" operator="is-not-empty"/>
<action service="ensurePartyRole" mode="sync"/>
</eca>
<eca service="createCreditCard" event="in-validate">
<condition field-name="expMonth" operator="is-not-empty"/>
<condition field-name="expYear" operator="is-not-empty"/>
@@ -113,7 +113,7 @@ under the License.
<eca service="createFinAccountRole" event="invoke">
<action service="ensurePartyRole" mode="sync" run-as-user="system"/>
</eca>
<!-- financial account transaction ecas -->
<eca service="finAccountWithdraw" event="return" run-on-error="true">
<condition field-name="productStoreId" operator="is-not-empty"/>
@@ -133,7 +133,7 @@ under the License.
<condition field-name="replenishPaymentId" operator="is-not-empty"/>
<action service="finAccountReplenish" mode="sync" run-as-user="system"/>
</eca>
<!--
<eca service="createFinAccountTrans" event="commit">
<action service="postFinAccountTransToGl" mode="sync"/>
@@ -151,8 +151,8 @@ under the License.
<action service="sampleInvoiceAffiliateCommission" mode="sync"/>
</eca>
-->
<!-- automatically create a fixed asset when a 'asset usage' type product
<!-- automatically create a fixed asset when a 'asset usage' type product
is created and create the link between them -->
<eca service="createProduct" event="commit">
<condition field-name="productTypeId" operator="equals" value="ASSET_USAGE"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
<!-- this eca automatically posts the accounting transactions to GL -->
@@ -33,7 +33,7 @@ under the License.
<condition field-name="inventoryItemId" operator="is-not-empty"/>
<action service="createAcctgTransForSalesShipmentIssuance" mode="sync"/>
</eca>
<!-- create an accounting transactions every time an issuance to sales shipment is canceled -->
<eca service="cancelOrderItemIssuanceFromSalesShipment" event="commit">
<condition field-name="canceledQuantity" operator="greater" value="0" type="BigDecimal"/>
@@ -53,21 +53,21 @@ under the License.
<condition field-name="workEffortId" operator="is-not-empty"/>
<condition field-name="costComponentTypeId" operator="not-equals" value="ACTUAL_MAT_COST"/>
<action service="createAcctgTransForWorkEffortCost" mode="sync"/>
</eca>
</eca>
<eca service="updateInventoryItem" event="commit">
<condition field-name="ownerPartyId" operator="is-not-empty"/>
<condition-field field-name="ownerPartyId" operator="not-equals" to-field-name="oldOwnerPartyId"/>
<action service="createAcctgTransForInventoryItemOwnerChange" mode="sync"/>
</eca>
<eca service="assignInventoryToWorkEffort" event="commit">
<action service="createAcctgTransForWorkEffortIssuance" mode="sync"/>
</eca>
<!--creating inventory item detail when unitCost is not empty and recieptId is empty-->
<eca service="createInventoryItemDetail" event="commit">
<condition field-name="unitCost" operator="is-not-empty"/>
<condition field-name="unitCost" operator="is-not-empty"/>
<condition field-name="receiptId" operator="is-empty"/>
<action service="createAcctgTransForInventoryItemCostChange" mode="sync"/>
</eca>
@@ -93,8 +93,8 @@ under the License.
<condition field-name="statusId" operator="equals" value="PMNT_RECEIVED"/>
<condition field-name="oldStatusId" operator="not-equals" value="PMNT_RECEIVED"/>
<action service="createAcctgTransAndEntriesForIncomingPayment" mode="sync"/>
</eca>
</eca>
<!-- attemp to create AcctgTrans for Purchase Invoice -->
<eca service="setInvoiceStatus" event="commit">
<condition field-name="invoiceId" operator="is-not-empty"/>
@@ -104,7 +104,7 @@ under the License.
<action service="createAcctgTransForPurchaseInvoice" mode="sync"/>
</eca>
<!-- attemp to create AcctgTrans for Sales Invoice -->
<!-- attemp to create AcctgTrans for Sales Invoice -->
<eca service="setInvoiceStatus" event="commit">
<condition field-name="invoiceId" operator="is-not-empty"/>
<condition field-name="statusId" operator="equals" value="INVOICE_READY"/>
@@ -112,18 +112,18 @@ under the License.
<condition field-name="oldStatusId" operator="not-equals" value="INVOICE_PAID"/>
<action service="createAcctgTransForSalesInvoice" mode="sync"/>
</eca>
<!--attempt to create AcctgTrans and Entries for Outgoing Payment -->
<eca service="createPayment" event="commit">
<condition field-name="statusId" operator="equals" value="PMNT_SENT"/>
<action service="createAcctgTransAndEntriesForOutgoingPayment" mode="sync"/>
</eca>
<!--attempt to create AcctgTrans and Entries for Outgoing when set PaymentStatus -->
<eca service="setPaymentStatus" event="commit">
<condition field-name="statusId" operator="equals" value="PMNT_SENT"/>
<condition field-name="oldStatusId" operator="not-equals" value="PMNT_SENT"/>
<action service="createAcctgTransAndEntriesForOutgoingPayment" mode="sync"/>
</eca>
</eca>
</service-eca>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
<!-- fact entities -->
@@ -18,10 +18,10 @@ specific language governing permissions and limitations
under the License.
-->
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/service-eca.xsd">
<!-- these SECAs are for automatically creating accounting transactions based on business transactions.
<!-- these SECAs are for automatically creating accounting transactions based on business transactions.
They should normally be "sync" SECAs so that they happen as soon
as the business transactions are ready, and so that if the accounting transactions can't be created,
the user will get an error. This is to avoid cases where business transactions are created but in limbo
@@ -40,5 +40,5 @@ under the License.
<condition field-name="oldStatusId" operator="not-equals" value="PMNT_SENT"/>
<action service="checkPaymentInvoices" mode="sync"/>
</eca>
</service-eca>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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>
@@ -62,8 +62,8 @@ under the License.
<attribute type="String" mode="IN" name="organizationPartyId" optional="false"/>
<attribute name="partyAccountingPreference" type="GenericValue" mode="OUT" optional="true"/>
</service>
<service name="updateFXConversion" engine="simple"
<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"/>
@@ -105,7 +105,7 @@ under the License.
<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"/>
@@ -17,12 +17,12 @@ 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"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services: Agreements </description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Agreement -->
<service name="createAgreement" default-entity-name="Agreement" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreement" auth="true">
@@ -201,9 +201,9 @@ under the License.
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="updateAgreementRole" default-entity-name="AgreementRole" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementRole" auth="true">
<description>Update an Agreement Role</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementRole" auth="true">
<description>Update an Agreement Role</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="deleteAgreementRole" default-entity-name="AgreementRole" engine="simple"
@@ -211,7 +211,7 @@ under the License.
<description>Delete an Agreement Role</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<service name="getCommissionForProduct" engine="java"
location="org.ofbiz.accounting.agreement.AgreementServices" invoke="getCommissionForProduct" auth="true">
<description>Get commission receiving parties and amounts for a product. &lt;br/&gt;
@@ -232,16 +232,16 @@ under the License.
<attribute name="quantity" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="commissions" type="List" mode="OUT" optional="false"/>
</service>
<!--AgrementWorkEffortAppl-->
<service name="createAgreementWorkEffortAppl" engine="simple" default-entity-name="AgreementWorkEffortAppl"
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementWorkEffortAppl">
<description> Create AgreementWorkEffortAppl </description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="deleteAgreementWorkEffortAppl" engine="simple" default-entity-name="AgreementWorkEffortAppl"
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="deleteAgreementWorkEffortAppl">
<description>Delete AgreementWorkEffortAppl</description>
<description>Delete AgreementWorkEffortAppl</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -17,8 +17,8 @@ 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"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Clear Commerce Services</description>
<vendor>OFBiz</vendor>
@@ -50,12 +50,12 @@ under the License.
location="org.ofbiz.accounting.thirdparty.clearcommerce.CCPaymentServices" invoke="ccCredit">
<description>ClearCommerce Credit Card Credit</description>
<implements service="ccCreditInterface"/>
<attribute name="orderId" type="String" mode="IN" optional="false"/>
<attribute name="orderId" type="String" mode="IN" optional="false"/>
<attribute name="pbOrder" type="Map" mode="IN" optional="true"/> <!-- map of the 3 values below -->
<attribute name="OrderFrequencyCycle" type="String" mode="IN" optional="true"/>
<attribute name="OrderFrequencyInterval" type="String" mode="IN" optional="true"/>
<attribute name="OrderFrequencyCycle" type="String" mode="IN" optional="true"/>
<attribute name="OrderFrequencyInterval" type="String" mode="IN" optional="true"/>
<attribute name="TotalNumberPayments" type="String" mode="IN" optional="true"/>
</service>
<service name="clearCommerceCCReport" engine="java"
location="org.ofbiz.accounting.thirdparty.clearcommerce.CCPaymentServices" invoke="ccReport">
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Cost Services</description>
<vendor>OFBiz</vendor>
@@ -48,18 +48,18 @@ under the License.
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="createWorkEffortCostCalc" default-entity-name="WorkEffortCostCalc" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/cost/CostServices.xml" invoke="createWorkEffortCostCalc" auth="true">
<description>Create a WorkEffortCostCalc entry</description>
<service name="createWorkEffortCostCalc" default-entity-name="WorkEffortCostCalc" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/cost/CostServices.xml" invoke="createWorkEffortCostCalc" auth="true">
<description>Create a WorkEffortCostCalc entry</description>
<permission-service service-name="acctgCostPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="removeWorkEffortCostCalc" default-entity-name="WorkEffortCostCalc" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/cost/CostServices.xml" invoke="removeWorkEffortCostCalc" auth="true">
<description>Remove a WorkEffortCostCalc entry</description>
<service name="removeWorkEffortCostCalc" default-entity-name="WorkEffortCostCalc" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/cost/CostServices.xml" invoke="removeWorkEffortCostCalc" auth="true">
<description>Remove a WorkEffortCostCalc entry</description>
<permission-service service-name="acctgCostPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
@@ -70,7 +70,7 @@ under the License.
<description>Accounting Cost Permission Checking Logic</description>
<implements service="permissionInterface"/>
</service>
<service name="createProductAverageCost" default-entity-name="ProductAverageCost" engine="entity-auto" invoke="create" auth="true">
<description>Create Product Average Cost record</description>
<permission-service service-name="acctgCostPermissionCheck" main-action="CREATE"/>
@@ -79,18 +79,18 @@ under the License.
<override name="fromDate" optional="true"/>
<override name="averageCost" optional="false"/>
</service>
<service name="updateProductAverageCost" default-entity-name="ProductAverageCost" engine="entity-auto" invoke="update" auth="true">
<description>Update a Product Average Cost record</description>
<permission-service service-name="acctgCostPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteProductAverageCost" default-entity-name="ProductAverageCost" engine="entity-auto" invoke="delete" auth="true">
<description>Delete a Product Average Cost record</description>
<permission-service service-name="acctgCostPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
</services>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -71,7 +71,7 @@ under the License.
<exclude field-name="statusEndDate"/>
</auto-attributes>
</service>
<!-- Financial Account Transaction -->
<service name="createFinAccountTrans" engine="simple" default-entity-name="FinAccountTrans"
location="component://accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml" invoke="createFinAccountTrans">
@@ -86,7 +86,7 @@ under the License.
<description>Post a Financial Account Transaction to the General Ledger; meant to be called as an SECA</description>
<attribute name="finAccountTransId" type="String" mode="IN" optional="false"/>
</service>
<service name="createFinAccountRole" engine="simple" default-entity-name="FinAccountRole"
location="component://accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml" invoke="createFinAccountRole">
<description>Create a new Financial Account Role</description>
@@ -111,7 +111,7 @@ under the License.
<description>Lower level service for creating authorization against a fin account. Will use current time for authorizationDate and thruDate if not supplied.</description>
<auto-attributes mode="OUT" optional="false" include="pk"/>
<auto-attributes mode="IN" optional="true" include="nonpk"/>
</service>
</service>
<service name="expireFinAccountAuth" engine="simple" default-entity-name="FinAccountAuth"
location="component://accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml" invoke="expireFinAccountAuth">
<!-- NOTE: never set require-new-transaction on this service, needs to be called with other services in same transaction to protect operations such as the payment capture one -->
@@ -119,7 +119,7 @@ under the License.
<attribute name="finAccountAuthId" type="String" mode="IN" optional="false"/>
<attribute name="expireDateTime" type="Timestamp" mode="IN" optional="true"/>
</service>
<!-- these services use the product store's fin account settings -->
<service name="createFinAccountForStore" engine="java" default-entity-name="FinAccount"
location="org.ofbiz.accounting.finaccount.FinAccountServices" invoke="createFinAccountForStore">
@@ -155,9 +155,9 @@ under the License.
location="org.ofbiz.accounting.finaccount.FinAccountPaymentServices" invoke="finAccountWithdraw" auth="true">
<!-- NOTE: never set require-new-transaction on this service, needs to be called with other services in same transaction to protect operations such as the payment capture one -->
<description>Deposit Funds into a Financial Account</description>
<attribute name="finAccountId" type="String" mode="IN" optional="false"/>
<attribute name="finAccountId" type="String" mode="IN" optional="false"/>
<attribute name="productStoreId" type="String" mode="IN" optional="true"/>
<attribute name="requireBalance" type="Boolean" mode="IN" optional="true"/>
<attribute name="requireBalance" type="Boolean" mode="IN" optional="true"/>
<attribute name="currency" type="String" mode="IN" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="true"/>
<attribute name="orderId" type="String" mode="IN" optional="true"/>
@@ -172,7 +172,7 @@ under the License.
<service name="finAccountRefund" engine="java"
location="org.ofbiz.accounting.finaccount.FinAccountServices" invoke="refundFinAccount" auth="true">
<description>Refunds the deposits to a financial account back to the source</description>
<attribute name="finAccountId" type="String" mode="IN" optional="false"/>
<attribute name="finAccountId" type="String" mode="IN" optional="false"/>
</service>
<service name="finAccountReplenish" engine="java" max-retry="3"
location="org.ofbiz.accounting.finaccount.FinAccountPaymentServices" invoke="finAccountReplenish" auth="true">
@@ -186,7 +186,7 @@ under the License.
<attribute name="finAccountId" type="String" mode="IN" optional="false"/>
<attribute name="availableBalance" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="balance" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="statusId" type="String" mode="OUT" optional="false"/>
<attribute name="statusId" type="String" mode="OUT" optional="false"/>
</service>
<service name="checkFinAccountStatus" engine="java"
location="org.ofbiz.accounting.finaccount.FinAccountServices" invoke="checkFinAccountStatus" auth="true">
@@ -215,7 +215,7 @@ under the License.
<attribute name="finAccountId" type="String" mode="INOUT" optional="true"/>
<attribute name="finAccountName" type="String" mode="IN" optional="true"/>
<attribute name="reasonEnumId" type="String" mode="IN" optional="true"/>
<attribute name="comments" type="String" mode="IN" optional="true"/>
<attribute name="comments" type="String" mode="IN" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="amount" type="BigDecimal" mode="IN" optional="false"/>
<attribute name="replenishPaymentId" type="String" mode="IN" optional="true"/>
@@ -18,12 +18,12 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services: Fixed Asset </description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Fixed Asset -->
<service name="createFixedAsset" default-entity-name="FixedAsset" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAsset" auth="true">
@@ -51,7 +51,7 @@ under the License.
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateFixedAssetProduct" default-entity-name="FixedAssetProduct" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetProduct" auth="true">
<description>Update the Product to Fixed Asset information</description>
@@ -59,7 +59,7 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeFixedAssetProduct" default-entity-name="FixedAssetProduct" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="removeFixedAssetProduct" auth="true">
<description>Remove Product From Fixed Asset</description>
@@ -67,7 +67,7 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- TO BE REMOVED : Fixed Asset calendar
<!-- TO BE REMOVED : Fixed Asset calendar
<service name="updateFixedAssetCalendar" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetCalendar" auth="true">
<description>Update the Capacity available of Calendar of a Fixed Asset information</description>
@@ -77,7 +77,7 @@ under the License.
<attribute name="capacity" type="BigDecimal" mode="IN" optional="true"/>
</service>
-->
<!-- FixedAssetStdCost -->
<service name="createFixedAssetStdCost" default-entity-name="FixedAssetStdCost" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetStdCost" auth="true">
@@ -154,7 +154,7 @@ under the License.
<attribute name="estimatedStartDate" mode="IN" type="String" optional="true"/>
<attribute name="estimatedCompletionDate" mode="IN" type="String" optional="true"/>
<attribute name="maintTemplateWorkEffortId" mode="IN" type="String" optional="true"/>
<override name="maintHistSeqId" mode="OUT"/> <!-- make this OUT rather than IN, we will automatically generate the next sub-sequence ID -->
<override name="maintHistSeqId" mode="OUT"/> <!-- make this OUT rather than IN, we will automatically generate the next sub-sequence ID -->
</service>
<service name="updateFixedAssetMaint" default-entity-name="FixedAssetMaint" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetMaint" auth="true">
@@ -220,7 +220,7 @@ under the License.
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- =========Party Fixed Asset Assignment Services========= -->
<service name="createPartyFixedAssetAssignment" engine="simple" default-entity-name="PartyFixedAssetAssignment"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createPartyFixedAssetAssignment" auth="true">
@@ -230,7 +230,7 @@ under the License.
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updatePartyFixedAssetAssignment" engine="simple" default-entity-name="PartyFixedAssetAssignment"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updatePartyFixedAssetAssignment" auth="true">
<description>Update Party to Fixed Asset</description>
@@ -238,7 +238,7 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deletePartyFixedAssetAssignment" engine="simple" default-entity-name="PartyFixedAssetAssignment"
location="component://accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="deletePartyFixedAssetAssignment" auth="true">
<description>Delete Party to Fixed Asset</description>
@@ -252,7 +252,7 @@ under the License.
<description>Fixed Asset Permission Checking Logic</description>
<implements service="permissionInterface"/>
</service>
<!-- Fixed Asset Depreciation Services -->
<service name="fixedAssetDepCalcInterface" engine="interface">
<description>Interface to describe base parameters for Depreciation Calculation Services</description>
@@ -18,20 +18,20 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<service name="getNextInvoiceId" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="getNextInvoiceId">
<description>Get the Next Invoice ID According to Settings on the PartyAcctgPreference Entity for the given Party</description>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="invoiceId" type="String" mode="OUT" optional="false"/>
</service>
<!-- Invoice services -->
<service name="createInvoice" engine="simple" default-entity-name="Invoice"
location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="createInvoice">
@@ -83,12 +83,12 @@ under the License.
<attribute name="invoiceId" type="String" mode="INOUT" optional="false"/>
<attribute name="invoiceTypeId" type="String" mode="IN" optional="false"/>
</service>
<!--
TODO: There is a big problem with the taxableFlag. Currently, all adjustments are treated as having the same taxableFlag as
the product except when it is a sales tax. This is not very flexible. Additionally, when the invoices are computed, a
null taxableFlag is considered to be "N" when it should be "unknown". At some point we'll have to implement the adjustment.includeInTax
field properly so we don't have to rely on Product.taxable and checking by hand each type that is not taxable. The old way is already
field properly so we don't have to rely on Product.taxable and checking by hand each type that is not taxable. The old way is already
creating an issue with return-wide adjustments: How do we know that such an adjustment is to be taxed or not? Because of this problem,
we will continue to have null taxableFlags for awhile yet, which is why the mantadory taxableFlag of this method was taken out.
-->
@@ -113,7 +113,7 @@ under the License.
<permission-service service-name="acctgInvoicePermissionCheck" main-action="UPDATE"/>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<service name="createInvoiceRole" engine="simple" default-entity-name="InvoiceRole"
location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="createInvoiceRole">
<description>Create a new Invoice Role Record</description>
@@ -181,8 +181,8 @@ under the License.
<service name="sampleInvoiceAffiliateCommission" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/invoice/SampleCommissionServices.xml" invoke="sampleCalculateAffiliateCommission" auth="true">
<description>
A sample/example service to calculate an affiliate commission (direct relationship to customer) and create
and invoice for it on behalf of the affiliate, ie an invoice from the affiliate to the company that can
A sample/example service to calculate an affiliate commission (direct relationship to customer) and create
and invoice for it on behalf of the affiliate, ie an invoice from the affiliate to the company that can
then be paid by the company to balance it.
</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
@@ -209,7 +209,7 @@ under the License.
<service name="createSalesInvoicesFromDropShipment" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="createSalesInvoicesFromDropShipment">
<description>
Create sales invoice(s) from a drop shipment by wrapping a call to
Create sales invoice(s) from a drop shipment by wrapping a call to
createInvoicesFromShipments with the createSalesInvoicesForDropShipments parameter
</description>
<attribute name="shipmentId" type="String" mode="IN" optional="false"/>
@@ -223,7 +223,7 @@ under the License.
one invoice for each order will be created (each invoice could contain
items shipped in different shipments).
If the shipments are drop shipments, the type of invoices (purchase or sales) created
will be controlled by the createSalesInvoicesForDropShipments parameter (purchase by default).
will be controlled by the createSalesInvoicesForDropShipments parameter (purchase by default).
invoicesCreated = List of invoiceIds which were created by this service
</description>
<attribute name="shipmentIds" type="List" mode="IN" optional="false"/>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -74,7 +74,7 @@ under the License.
</service>
<!-- GlJournal -->
<service name="quickCreateAcctgTransAndEntries" engine="simple"
<service name="quickCreateAcctgTransAndEntries" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="quickCreateAcctgTransAndEntries" auth="true">
<description>Creates an AcctgTrans and two offsetting AcctgTransEntry records</description>
<auto-attributes mode="IN" entity-name="AcctgTrans" include="nonpk" optional="true"/>
@@ -87,7 +87,7 @@ under the License.
<attribute name="acctgTransId" type="String" mode="OUT" optional="false"/>
<override name="amount" optional="false"/>
</service>
<service name="calculateGlJournalTrialBalance" default-entity-name="GlJournal" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="calculateGlJournalTrialBalance" auth="true">
<description>Calculate Trial Balance for a GlJournal</description>
@@ -279,22 +279,22 @@ under the License.
<service name="postAcctgTrans" default-entity-name="AcctgTrans" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml" invoke="postAcctgTrans" auth="true"
transaction-timeout="600">
<description>Post a AcctgTrans and related entries. This will make sure that the time period is not closed and that
the sum of the debits and credits are equal.
<description>Post a AcctgTrans and related entries. This will make sure that the time period is not closed and that
the sum of the debits and credits are equal.
</description>
<permission-service service-name="acctgTransactionPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="verifyOnly" type="String" mode="IN" optional="true"/>
</service>
<service name="closeFinancialTimePeriod" default-entity-name="CustomTimePeriod" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="closeFinancialTimePeriod" auth="true">
<description>Close a financial time period</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<service name="closeFinancialTimePeriod" default-entity-name="CustomTimePeriod" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="closeFinancialTimePeriod" auth="true">
<description>Close a financial time period</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- Financial Reports -->
<service name="prepareIncomeStatement" engine="simple"
<service name="prepareIncomeStatement" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="prepareIncomeStatement" auth="true">
<description>Prepare the data for the Income Statement</description>
<attribute name="organizationPartyId" type="String" mode="IN" optional="false"/>
@@ -304,7 +304,7 @@ under the License.
<attribute name="totalNetIncome" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="glAccountTotalsList" type="List" mode="OUT" optional="true"/>
</service>
<service name="prepareBalanceSheet" engine="simple"
<service name="prepareBalanceSheet" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="prepareBalanceSheet" auth="true">
<description>Prepare the data for the Balance Sheet</description>
<attribute name="organizationPartyId" type="String" mode="IN" optional="false"/>
@@ -314,7 +314,7 @@ under the License.
<attribute name="liabilityBalancesList" type="List" mode="OUT" optional="true"/>
<attribute name="equityBalancesList" type="List" mode="OUT" optional="true"/>
</service>
<service name="prepareComparativeBalanceSheet" engine="simple"
<service name="prepareComparativeBalanceSheet" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="prepareComparativeBalanceSheet" auth="true">
<description>Prepare the data for the Balance Sheet</description>
<attribute name="organizationPartyId" type="String" mode="IN" optional="false"/>
@@ -328,10 +328,10 @@ under the License.
</service>
<!-- Miscellaneous Ledger-related services -->
<service name="getGlAccountFromAccountType" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="getGlAccountFromAccountType" auth="true">
<description>Look up a GlAccountId first in ProductGlAccount by productId and productGlAccountTypeId, if not found,
then in organizationPartyId and glAccountTypeId </description>
<service name="getGlAccountFromAccountType" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="getGlAccountFromAccountType" auth="true">
<description>Look up a GlAccountId first in ProductGlAccount by productId and productGlAccountTypeId, if not found,
then in organizationPartyId and glAccountTypeId </description>
<attribute name="organizationPartyId" type="String" mode="IN" optional="false"/>
<attribute name="glAccountTypeId" type="String" mode="IN" optional="true"/>
<attribute name="acctgTransTypeId" type="String" mode="IN" optional="true"/>
@@ -343,11 +343,11 @@ under the License.
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
<attribute name="glAccountId" type="String" mode="OUT" optional="true"/>
</service>
<service name="getInventoryItemOwner" default-entity-name="InventoryItem" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="getInventoryItemOwner" auth="true">
<description>get an ownerPartyId from inventoryItemId </description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="ownerPartyId" type="String" mode="OUT" optional="false"/>
<service name="getInventoryItemOwner" default-entity-name="InventoryItem" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="getInventoryItemOwner" auth="true">
<description>get an ownerPartyId from inventoryItemId </description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="ownerPartyId" type="String" mode="OUT" optional="false"/>
</service>
<!-- Services for the automatic creation of accounting transactions based on business transactions
@@ -362,7 +362,7 @@ under the License.
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransForCanceledSalesShipmentIssuance">
<description>Create an accounting transaction for a canceled sales shipment issuance (D: INVENTORY_ACCOUNT, C: COGS_ACCOUNT)</description>
<attribute name="itemIssuanceId" type="String" mode="IN" optional="false"/>
<attribute name="canceledQuantity" type="BigDecimal" mode="IN" optional="false"/>
<attribute name="canceledQuantity" type="BigDecimal" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
<service name="createAcctgTransForInventoryItemCostChange" engine="simple" auth="true"
@@ -397,7 +397,7 @@ under the License.
<description>Delete a FinAccountTypeGlAccount</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- VarianceReasonGlAccount Services -->
<service name="createVarianceReasonGlAccount" default-entity-name="VarianceReasonGlAccount" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/finaccount/FinAccountServices.xml" invoke="createVarianceReasonGlAccount" auth="true">
@@ -416,7 +416,7 @@ under the License.
<description>delete a Variance Reason Gl Account</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- Permission services -->
<service name="basicGeneralLedgerPermissionCheck" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="basePermissionCheck">
@@ -449,7 +449,7 @@ under the License.
<attribute name="workEffortId" type="String" mode="IN" optional="false"/>
<attribute name="inventoryItemId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
</service>
<!--Accounting transaction for cost record related to work effort-->
<service name="createAcctgTransForWorkEffortCost" engine="simple" auth="true"
@@ -458,7 +458,7 @@ under the License.
<attribute name="workEffortId" type="String" mode="IN" optional="false"/>
<attribute name="costComponentId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
</service>
<!-- AcctgTrans For Inventory Item Owner Change Services -->
<service name="createAcctgTransForInventoryItemOwnerChange" engine="simple" auth="true"
@@ -474,7 +474,7 @@ under the License.
<description>Create an accounting transaction for an incoming payment</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
</service>
<!-- An automatic GL Acct transaction service triggered when inventory is issued for fixed asset maintenance-->
<service name="createAcctgTransForFixedAssetMaintIssuance" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransForFixedAssetMaintIssuance">
@@ -490,7 +490,7 @@ under the License.
<attribute name="invoiceId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
<!-- An automatic GL Posting for Sales Invoice-->
<service name="createAcctgTransForSalesInvoice" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransForSalesInvoice">
@@ -498,7 +498,7 @@ under the License.
<attribute name="invoiceId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
<!--An automatic GL posting service for outgoing payments-->
<service name="createAcctgTransAndEntriesForOutgoingPayment" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransAndEntriesForOutgoingPayment">
@@ -506,7 +506,7 @@ under the License.
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
<!--A service to clone an existing accounting transaction and its entries (AcctgTrans and AcctgTransEntry) -->
<service name="copyAcctgTransAndEntries" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="copyAcctgTransAndEntries">
@@ -515,7 +515,7 @@ under the License.
<attribute name="revert" type="String" mode="IN" optional="true"/>
<attribute name="acctgTransId" type="String" mode="OUT" optional="true"/>
</service>
<service name="createAcctgTransAndEntriesForPaymentApplication" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="createAcctgTransAndEntriesForPaymentApplication">
<description>Create an accounting transaction for a payment application</description>
@@ -538,10 +538,10 @@ under the License.
<attribute name="glAccountId" type="String" mode="IN" optional="false"/>
</service>
<service name="deletePartyGlAccount" default-entity-name="PartyGlAccount" engine="simple"
<service name="deletePartyGlAccount" default-entity-name="PartyGlAccount" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml" invoke="deletePartyGlAccount" auth="true">
<description>Delete an existing General Ledger Account of a Party</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- CustomTimePeriod Services -->
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -37,14 +37,14 @@ under the License.
<override name="statusId" optional="false"/>
<override name="amount" optional="false"/>
</service>
<service name="updatePayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="updatePayment" auth="true">
<description>Update a Payment</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="setPaymentStatus" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="setPaymentStatus" auth="true">
<description>Change the status of a Payment</description>
@@ -52,13 +52,13 @@ under the License.
<attribute name="statusId" type="String" mode="IN" optional="false"/>
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
</service>
<service name="checkPaymentInvoices" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="checkPaymentInvoices">
<description>Checks to see if each invoice to which a payment is applied has been fully paid up. If so, sets the invoice status to PAID.</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
</service>
<service name="quickSendPayment" engine="simple" default-entity-name="Payment"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="quickSendPayment">
<description>Updates a Payment and then marks it as PMNT_SENT</description>
@@ -66,7 +66,7 @@ under the License.
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="createPaymentApplication" engine="simple"
<service name="createPaymentApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentApplication" auth="true">
<description>Create a payment application</description>
<attribute name="paymentId" type="String" mode="IN" optional="false"/>
@@ -87,7 +87,7 @@ under the License.
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="invoiceProcessing" type="String" mode="IN" optional="true"/>
<override name="paymentId" optional="false"/>
<override name="paymentId" optional="false"/>
</service>
<service name="updatePaymentApplicationDef" default-entity-name="PaymentApplication" engine="java"
location="org.ofbiz.accounting.invoice.InvoiceServices" invoke="updatePaymentApplicationDef">
@@ -98,7 +98,7 @@ under the License.
<auto-attributes mode="IN" include="pk" optional="true"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<attribute name="invoiceProcessing" type="String" mode="IN" optional="true"/>
<override name="paymentId" optional="false"/>
<override name="paymentId" optional="false"/>
</service>
<service name="removePaymentApplication" default-entity-name="PaymentApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml" invoke="removePaymentApplication">
@@ -107,8 +107,8 @@ under the License.
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="OUT" include="nonpk" optional="true"/>
</service>
<service name="createPaymentAndApplication" engine="simple"
<service name="createPaymentAndApplication" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml" invoke="createPaymentAndApplication" auth="true">
<description>Create a payment and a payment application for the full amount</description>
<auto-attributes entity-name="Payment" include="nonpk" mode="IN" optional="true"/>
@@ -674,7 +674,7 @@ under the License.
<description>EFT Account Test Release</description>
<implements service="paymentReleaseInterface"/>
</service>
<!-- Verify Credit Card Service-->
<service name="verifyCreditCard" engine="java"
location="org.ofbiz.accounting.payment.PaymentGatewayServices" invoke="verifyCreditCard" auth="true">
@@ -702,7 +702,7 @@ under the License.
<description>delete a Credit Card Gl Account</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- Update updatePaymentMethodType -->
<service name="updatePaymentMethodType" default-entity-name="PaymentMethodType" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/payment/PaymentMethodServices.xml" invoke="updatePaymentMethodType" auth="true">
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services: Rate and related services</description>
<vendor>OFBiz</vendor>
@@ -68,5 +68,5 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<attribute name="rateAmountFromDate" type="Timestamp" mode="IN" optional="true"/><!-- to be able to expire rateamount specific to a party records....-->
</service>
</services>
@@ -18,7 +18,7 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services</description>
<vendor>OFBiz</vendor>
@@ -18,12 +18,12 @@ specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services: TaxAuthority and related </description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Tax Calc Interfaces -->
<service name="calcTaxInterface" engine="interface" location="" invoke="">
<description>Tax Calc Service Interface</description>
@@ -42,7 +42,7 @@ under the License.
</service>
<service name="calcTaxTotalForDisplayInterface" engine="interface" location="" invoke="">
<description>Tax Calc Total For Display Service Interface</description>
<attribute name="productStoreId" type="String" mode="IN" optional="false"><!-- this will be used to get the taxAuthPartyId and taxAuthGeoId to use for the rate lookup, and for the payToPartyId, and as one of the columns to constrain by on the lookup --></attribute>
<attribute name="productStoreId" type="String" mode="IN" optional="false"><!-- this will be used to get the taxAuthPartyId and taxAuthGeoId to use for the rate lookup, and for the payToPartyId, and as one of the columns to constrain by on the lookup --></attribute>
<attribute name="billToPartyId" type="String" mode="IN" optional="true"><!-- would like to have this not-optional, but in some circumstances may need a tax estimate without knowing who the customer is --></attribute>
<attribute name="productId" type="String" mode="IN" optional="false"/>
<attribute name="quantity" type="BigDecimal" mode="IN" optional="true"/>
@@ -52,7 +52,7 @@ under the License.
<attribute name="taxPercentage" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="priceWithTax" type="BigDecimal" mode="OUT" optional="false"/>
</service>
<!-- Tax Authority Calc Services -->
<service name="calcTax" engine="java"
location="org.ofbiz.accounting.tax.TaxAuthorityServices" invoke="rateProductTaxCalc">
@@ -64,7 +64,7 @@ under the License.
<description>Tax Authority Rate Product Calc Service</description>
<implements service="calcTaxTotalForDisplayInterface"/>
</service>
<!-- TaxAuthority -->
<service name="createTaxAuthority" default-entity-name="TaxAuthority" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthority">
@@ -145,7 +145,7 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<!-- TaxAuthorityRateProduct -->
<service name="createTaxAuthorityRateProduct" default-entity-name="TaxAuthorityRateProduct" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthorityRateProduct">
@@ -165,7 +165,7 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<!-- PartyTaxAuthInfo -->
<service name="createPartyTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="simple" auth="true"
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createPartyTaxAuthInfo">
@@ -195,7 +195,7 @@ under the License.
<attribute name="taxAuthPartyGeoIds" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="String" mode="IN" optional="true"/>
</service>
<!-- ZipSales Tax Services -->
<service name="importZipSalesTaxData" engine="java" transaction-timeout="7200"
location="org.ofbiz.order.thirdparty.zipsales.ZipSalesServices" invoke="importFlatTable">
@@ -203,7 +203,7 @@ under the License.
<attribute name="taxFileLocation" type="String" mode="IN" optional="false"/>
<attribute name="ruleFileLocation" type="String" mode="IN" optional="false"/>
</service>
<service name="flatZipSalesTaxCalc" engine="java"
location="org.ofbiz.order.thirdparty.zipsales.ZipSalesServices" invoke="flatTaxCalc">
<description>Zip Sales Calc Tax Service - change this to calcTax to run</description>
@@ -51,7 +51,7 @@ under the License.
location="org.ofbiz.accounting.thirdparty.valuelink.ValueLinkServices" invoke="giftCardReload" auth="true">
<description>Gift Card Payment Processing</description>
<implements service="itemFulfillmentInterface"/>
</service>
</service>
<!-- ValueLink Transaction Services -->
<service name="createVLKeys" engine="java"
@@ -61,7 +61,7 @@ import org.ofbiz.service.ServiceUtil;
/**
* InvoiceServices - Services for creating invoices
*
* Note that throughout this file we use BigDecimal to do arithmetic. It is
* Note that throughout this file we use BigDecimal to do arithmetic. It is
* critical to understand the way BigDecimal works if you wish to modify the
* computations in this file. The most important things to keep in mind:
*
@@ -585,7 +585,7 @@ public class InvoiceServices {
// If the OrderAdjustment is associated to a ProductPromo,
// and the field ProductPromo.overrideOrgPartyId is set,
// copy the value to InvoiceItem.overrideOrgPartyId: this
// copy the value to InvoiceItem.overrideOrgPartyId: this
// represent an organization override for the payToPartyId
if (UtilValidate.isNotEmpty(adj.getString("productPromoId"))) {
try {
@@ -1556,7 +1556,7 @@ public class PaymentGatewayServices {
// now invoke the capture service
Map captureResult = null;
try {
// NOTE DEJ20070819 calling this with a new transaction synchronously caused a deadlock because in this
// NOTE DEJ20070819 calling this with a new transaction synchronously caused a deadlock because in this
//transaction OrderHeader was updated and with this transaction paused and waiting for the new transaction
//and the new transaction was waiting trying to read the same OrderHeader record; note that this only happens
//for FinAccounts because they are processed internally whereas others are not
@@ -186,9 +186,9 @@ public class AIMPaymentServices {
String refundFlag = (String)results.get("refundFlag");
// Since the refund failed, we are going to void the previous authorization against
// which ccRefunds attempted to issue the refund. This happens because Authorize.NET requires
// which ccRefunds attempted to issue the refund. This happens because Authorize.NET requires
// that settled transactions need to be voided the same day. unfortunately they provide no method for
// determining what transactions can be voided and what can be refunded, so we'll have to try it with timestamps
// determining what transactions can be voided and what can be refunded, so we'll have to try it with timestamps
if (!refundResult && isVoidableResponse(refundFlag)) {
boolean canDoVoid = false;
@@ -705,7 +705,7 @@ authorization.)
108 Void error. See RESPMSG. Make sure the transaction ID entered has not already been
voided. If not, then look at the Transaction Detail screen for this transaction to see if it
has settled. (The Batch field is set to a number greater than zero if the transaction has
has settled. (The Batch field is set to a number greater than zero if the transaction has
been settled). If the transaction has already settled, your only recourse is a reversal
(credit a payment or submit a payment for a credit).
109 Time-out waiting for host response
@@ -721,31 +721,31 @@ cardholder account.
115 System busy, try again later
116 VPS Internal error. Failed to lock terminal number
117 Failed merchant rule check. One or more of the following three failures occurred:
An attempt was made to submit a transaction that failed to meet the security settings
An attempt was made to submit a transaction that failed to meet the security settings
specified on the Payflow Pro Java SDK Security Settings page. If the transaction
exceeded the Maximum Amount security setting, then no values are returned for AVS
or CSC.
AVS validation failed. The AVS return value should appear in the RESPMSG.
CSC validation failed. The CSC return value should appear in the RESPMSG.
118 Invalid keywords found in string fields
118 Invalid keywords found in string fields
122 Merchant sale total will exceed the credit cap with current transaction. ACH
transactions only.
125 Fraud Protection Services Filter _ Declined by filters
125 Fraud Protection Services Filter _ Declined by filters
126 Fraud Protection Services Filter _ Flagged for review by filters
126 Fraud Protection Services Filter _ Flagged for review by filters
Important Note: Result code 126 indicates that a transaction triggered a fraud filter.
This is not an error, but a notice that the transaction is in a review status. The
transaction has been authorized but requires you to review and to manually accept the
transaction before it will be allowed to settle.
Result code 126 is intended to give you an idea of the kind of transaction that is
Result code 126 is intended to give you an idea of the kind of transaction that is
considered suspicious to enable you to evaluate whether you can benefit from using the
Fraud Protection Services.
To eliminate result 126, turn the filters off.
For more information, see the User Guide for Payflow Pro With Fraud Protection
Services or User Guide for Payflow Link Guide With Fraud Protection Services.
127 Fraud Protection Services Filter _ Not processed by filters
127 Fraud Protection Services Filter _ Not processed by filters
128 Fraud Protection Services Filter _ Declined by merchant after being flagged for
review by filters
review by filters
131 Version 1 Payflow Pro SDK client no longer supported. Upgrade to the most recent
version of the Payflow Pro client.
150 Issuing bank timed out
@@ -773,7 +773,7 @@ transaction.
1023 Buyer Authentication Service _ merchant status for 3D secure is invalid
1041 Buyer Authentication Service _ Validate Authentication failed: missing or
invalid PARES
1042 Buyer Authentication Service _ Validate Authentication failed: PARES format is
1042 Buyer Authentication Service _ Validate Authentication failed: PARES format is
invalid
1043 Buyer Authentication Service _ Validate Authentication failed: Cannot find
successful Verify Enrollment
@@ -793,7 +793,7 @@ invalid currency code in PARES
invalid XID in PARES
1051 Buyer Authentication Service _ Validate Authentication failed: Mismatched or
invalid order date in PARES
1052 Buyer Authentication Service _ Validate Authentication failed: This PARES was
1052 Buyer Authentication Service _ Validate Authentication failed: This PARES was
already validated for a previous Validate Authentication transaction
*/
@@ -811,8 +811,8 @@ already validated for a previous Validate Authentication transaction
-11 Proxy authorization failed
-12 Timeout waiting for response
-13 Select failure
-14 Too many connections
-15 Failed to set socket options
-14 Too many connections
-15 Failed to set socket options
-20 Proxy read failed
-21 Proxy write failed
-22 Failed to initialize SSL certificate
@@ -266,7 +266,7 @@ public class WorldPayEvents {
return "error";
}
// set the auth/test modes
// set the auth/test modes
try {
token.setAuthorisationMode(authMode);
} catch (SelectException e) {
@@ -43,7 +43,7 @@
<test-case case-name="auto-accouning-transaction-tests-PaymentReceivedFromCustomer">
<simple-method-test location="component://accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml" name="testAcctgTransOnPaymentReceivedFromCustomer"/>
</test-case>
<!-- Test case for Accounting Transaction on Manufacturing -->
<test-case case-name="auto-accounting-transaction-tests-MaterialIssuance">
<simple-method-test location="component://accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml" name="testAcctgTransOnMaterialIssuance"/>
@@ -53,5 +53,5 @@
</test-case>
<test-case case-name="auto-accounting-transaction-tests-AddFinishedProductsIntoWareHouse">
<simple-method-test location="component://accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml" name="testAcctgTransOnAddFinishedProductsIntoWarehouse"/>
</test-case>
</test-case>
</test-suite>
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import java.util.*;
import java.lang.*;
import org.ofbiz.entity.*;
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -24,11 +24,10 @@ fixedAssetId = parameters.fixedAssetId
if (fixedAssetId) {
latestGeoPoint = GeoWorker.findLatestGeoPoint(delegator, "FixedAssetAndGeoPoint", "fixedAssetId", fixedAssetId, null, null);
context.latestGeoPoint = latestGeoPoint;
context.fixedAssetId = fixedAssetId;
context.fixedAssetId = fixedAssetId;
if (latestGeoPoint) {
elevationUom = delegator.findOne("Uom", [uomId : latestGeoPoint.elevationUomId], false);
context.elevationUomAbbr = elevationUom.abbreviation;
}
}
@@ -6,9 +6,9 @@
* 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
@@ -30,7 +30,7 @@ parameters.viewMode = viewMode;
// Prepare vars for mode-specific date calculations
startParam = parameters.start;
if(!startParam) {
if (!startParam) {
start = nowTimestamp.clone();
} else {
start = new Timestamp(Long.parseLong(startParam));
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -29,7 +29,7 @@ import java.math.MathContext;
import org.ofbiz.base.util.UtilNumber;
import javolution.util.FastList;
invoiceId = parameters.get("invoiceId");
invoice = delegator.findByPrimaryKey("Invoice", [invoiceId : invoiceId]);
@@ -45,24 +45,24 @@ if (invoice) {
if (currency && !invoice.getString("currencyUomId").equals(currency)) {
conversionRate = InvoiceWorker.getInvoiceCurrencyConversionRate(invoice);
invoice.currencyUomId = currency;
invoice.invoiceMessage = " converted from original with a rate of: " + conversionRate.setScale(8, rounding);
invoice.invoiceMessage = " converted from original with a rate of: " + conversionRate.setScale(8, rounding);
}
invoiceItems = invoice.getRelatedOrderBy("InvoiceItem", ["invoiceItemSeqId"]);
invoiceItemsConv = FastList.newInstance();
invoiceItems.each { invoiceItem ->
invoiceItem.amount = invoiceItem.getBigDecimal("amount").multiply(conversionRate).setScale(decimals, rounding);
invoiceItemsConv.add(invoiceItem);
}
context.invoiceItems = invoiceItemsConv;
invoiceTotal = InvoiceWorker.getInvoiceTotal(invoice).multiply(conversionRate).setScale(decimals, rounding);
invoiceNoTaxTotal = InvoiceWorker.getInvoiceNoTaxTotal(invoice).multiply(conversionRate).setScale(decimals, rounding);
context.invoiceTotal = invoiceTotal;
context.invoiceTotal = invoiceTotal;
context.invoiceNoTaxTotal = invoiceNoTaxTotal;
// each invoice of course has two billing addresses, but the one that is relevant for purchase invoices is the PAYMENT_LOCATION of the invoice
// (ie Accounts Payable address for the supplier), while the right one for sales invoices is the BILLING_LOCATION (ie Accounts Receivable or
// home of the customer.)
@@ -80,12 +80,12 @@ if (invoice) {
context.sendingParty = sendingParty;
//*________________this snippet was added for adding Tax ID in invoice header if needed _________________
sendingTaxInfos = sendingParty.getRelated("PartyTaxAuthInfo");
billingTaxInfos = billingParty.getRelated("PartyTaxAuthInfo");
sendingPartyTaxId = null;
billingPartyTaxId = null;
if (billingAddress) {
sendingTaxInfos.eachWithIndex { sendingTaxInfo, i ->
if (sendingTaxInfo.taxAuthGeoId.equals(billingAddress.countryGeoId)) {
@@ -105,29 +105,29 @@ if (invoice) {
context.billingPartyTaxId = billingPartyTaxId;
}
//________________this snippet was added for adding Tax ID in invoice header if needed _________________*/
terms = invoice.getRelated("InvoiceTerm");
context.terms = terms;
paymentAppls = delegator.findByAnd("PaymentApplication", [invoiceId : invoiceId]);
context.payments = paymentAppls;
orderItemBillings = delegator.findByAnd("OrderItemBilling", [invoiceId : invoiceId], ['orderId']);
orders = new LinkedHashSet();
orderItemBillings.each { orderIb ->
orders.add(orderIb.orderId);
}
context.orders = orders;
invoiceStatus = invoice.getRelatedOne("StatusItem");
invoiceStatus = invoice.getRelatedOne("StatusItem");
context.invoiceStatus = invoiceStatus;
edit = parameters.editInvoice;
if ("true".equalsIgnoreCase(edit)) {
if ("true".equalsIgnoreCase(edit)) {
invoiceItemTypes = delegator.findList("InvoiceItemType", null, null, null, null, false);
context.invoiceItemTypes = invoiceItemTypes;
context.editInvoice = true;
context.invoiceItemTypes = invoiceItemTypes;
context.editInvoice = true;
}
// format the date
@@ -6,9 +6,9 @@
* 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
@@ -32,9 +32,9 @@ glAccountOrganizationAndClassList = null;
if ("SALES_INVOICE".equals(invoice.invoiceTypeId)) {
List itemTypes = FastList.newInstance();
itemTypes.add(EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.EQUALS, "INVOICE_ADJ"));
itemTypes.add(EntityCondition.makeCondition("parentTypeId", EntityOperator.EQUALS, "INVOICE_ADJ"));
itemTypes.add(EntityCondition.makeCondition("parentTypeId", EntityOperator.EQUALS, "INVOICE_ADJ"));
itemTypes.add(EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.EQUALS, "INVOICE_ITM_ADJ"));
itemTypes.add(EntityCondition.makeCondition("parentTypeId", EntityOperator.EQUALS, "INVOICE_ITM_ADJ"));
itemTypes.add(EntityCondition.makeCondition("parentTypeId", EntityOperator.EQUALS, "INVOICE_ITM_ADJ"));
itemTypes.add(EntityCondition.makeCondition("invoiceItemTypeId", EntityOperator.EQUALS, "INV_PROD_ITEM"));
itemTypes.add(EntityCondition.makeCondition("parentTypeId", EntityOperator.EQUALS, "INV_PROD_ITEM"));
itemTypesCond = EntityCondition.makeCondition(itemTypes, EntityOperator.OR);
@@ -6,9 +6,9 @@
* 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
@@ -61,7 +61,7 @@ List getPayments(List payments, boolean actual) {
paymentList = []; // to pass back to the screeen list of unapplied payments
invoiceApplied = InvoiceWorker.getInvoiceApplied(invoice);
invoiceAmount = InvoiceWorker.getInvoiceTotal(invoice);
invoiceToApply = InvoiceWorker.getInvoiceNotApplied(invoice);
invoiceToApply = InvoiceWorker.getInvoiceNotApplied(invoice);
payments.each { payment ->
paymentMap = [:];
paymentApplied = PaymentWorker.getPaymentApplied(payment, true);
@@ -6,9 +6,9 @@
* 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
@@ -31,11 +31,11 @@ invoiceItemList = delegator.findByAnd("InvoiceItem", [invoiceId : invoiceId], ["
if (invoiceItemList) {
invoiceItemList.each { invoiceItem ->
invoiceItemSeqId = invoiceItem.invoiceItemSeqId;
invoiceId = invoiceItem.invoiceId;
invoiceId = invoiceItem.invoiceId;
orderItemBilling = EntityUtil.getFirst(delegator.findByAnd("OrderItemBilling", [invoiceId : invoiceId, invoiceItemSeqId : invoiceItemSeqId]));
Map invoiceItemMap = FastMap.newInstance();
invoiceItemMap.putAll((Map) invoiceItem);
if(orderItemBilling) {
if (orderItemBilling) {
orderId = orderItemBilling.orderId;
invoiceItemMap.orderId = orderId;
}
@@ -6,9 +6,9 @@
* 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
@@ -21,17 +21,17 @@ import org.ofbiz.base.util.UtilMisc;
import org.ofbiz.entity.util.EntityUtil;
import javolution.util.FastMap;
if(billingAccountId) {
orderPaymentPreferencesList = [];
if (billingAccountId) {
orderPaymentPreferencesList = [];
orderList = delegator.findByAnd("OrderHeader", [billingAccountId : billingAccountId]);
if(orderList) {
if (orderList) {
orderList.each { orderHeader ->
orderId = orderHeader.orderId;
orderId = orderHeader.orderId;
orderBillingAcc = EntityUtil.getFirst(delegator.findByAnd("OrderHeaderAndPaymentPref", [orderId : orderId]));
orderBillingAccMap = FastMap.newInstance();
if(orderBillingAcc.paymentMethodTypeId.equals("EXT_BILLACT") && orderBillingAcc.paymentStatusId.equals("PAYMENT_NOT_RECEIVED")) {
orderBillingAccMap.putAll(orderBillingAcc);
orderId = orderBillingAcc.orderId;
if (orderBillingAcc.paymentMethodTypeId.equals("EXT_BILLACT") && orderBillingAcc.paymentStatusId.equals("PAYMENT_NOT_RECEIVED")) {
orderBillingAccMap.putAll(orderBillingAcc);
orderId = orderBillingAcc.orderId;
orderBillingAccMap.orderId = orderId;
}
orderPaymentPreferencesList.add(orderBillingAccMap);
@@ -6,9 +6,9 @@
* 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
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import java.util.*;
import org.ofbiz.entity.*;
import org.ofbiz.base.util.*;
@@ -76,7 +76,7 @@ List getInvoices(List invoices, boolean actual) {
invoiceMap = [:];
invoiceMap.putAll(invoice);
invoiceMap.amount = invoiceAmount;
invoiceMap.description = invoice.description;
invoiceMap.description = invoice.description;
invoiceMap.amountApplied = invoiceApplied;
if (paymentToApply.compareTo(invoiceToApply) < 0 ) {
invoiceMap.amountToApply = paymentToApply;
@@ -6,9 +6,9 @@
* 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
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import java.util.*;
import org.ofbiz.entity.*;
import org.ofbiz.base.util.*;
@@ -45,20 +45,20 @@ paymentsMapList = []; // to pass back to the screeen list of unapplied payments
List payments = null;
exprList = [];
expr = EntityCondition.makeCondition("partyIdTo", EntityOperator.EQUALS, basePayment.getString("partyIdFrom"));
exprList.add(expr);
exprList.add(expr);
expr = EntityCondition.makeCondition("partyIdFrom", EntityOperator.EQUALS, basePayment.getString("partyIdTo"));
exprList.add(expr);
exprList.add(expr);
expr = EntityCondition.makeCondition("paymentId", EntityOperator.NOT_EQUAL, basePayment.getString("paymentId"));
exprList.add(expr);
exprList.add(expr);
// only payments with received and sent
exprListStatus = [];
expr = EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "PMNT_RECEIVED");
exprListStatus.add(expr);
exprListStatus.add(expr);
expr = EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "PMNT_SENT");
exprListStatus.add(expr);
orCond = EntityCondition.makeCondition(exprListStatus, EntityOperator.OR);
exprList.add(orCond);
exprList.add(orCond);
topCond = EntityCondition.makeCondition(exprList, EntityOperator.AND);
@@ -67,7 +67,7 @@ payments = delegator.findList("Payment", topCond, null, ["effectiveDate"], null,
if (payments) {
basePaymentApplied = PaymentWorker.getPaymentApplied(basePayment);
basePaymentAmount = basePayment.getBigDecimal("amount");
basePaymentToApply = basePaymentAmount.subtract(basePaymentApplied);
basePaymentToApply = basePaymentAmount.subtract(basePaymentApplied);
payments.each { payment ->
if (PaymentWorker.getPaymentNotApplied(payment).signum() == 1) { // positiv not applied amount?
// yes, put in the map
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -28,7 +28,7 @@ import org.ofbiz.entity.util.*;
//NOTE: this code ignores from/thru dates on the products and categories under the rootProductCategoryId!
//TODO_MAYBE: variant product support for products in category, and product shown directly (should we really do this?)
//TODO:
//TODO:
// get products and categories under the root category
productMemberList = delegator.findByAnd("ProductCategoryMember", [productCategoryId : rootProductCategoryId], ["sequenceNum"]);
@@ -103,7 +103,7 @@ for (int currentDay = 0; currentDay <= daysInMonth; currentDay++) {
currentDayBegin = new java.sql.Timestamp(currentDayCal.getTimeInMillis());
currentDayCal.add(Calendar.DAY_OF_MONTH, 1);
nextDayBegin = new java.sql.Timestamp(currentDayCal.getTimeInMillis());
findOpts = new EntityFindOptions(true, EntityFindOptions.TYPE_SCROLL_INSENSITIVE, EntityFindOptions.CONCUR_READ_ONLY, true);
// do the product find
@@ -112,7 +112,7 @@ for (int currentDay = 0; currentDay <= daysInMonth; currentDay++) {
if (productIdSet) productAndExprs.add(EntityCondition.makeCondition("productId", EntityOperator.IN, productIdSet));
productAndExprs.add(EntityCondition.makeCondition("invoiceDate", EntityOperator.GREATER_THAN_EQUAL_TO, currentDayBegin));
productAndExprs.add(EntityCondition.makeCondition("invoiceDate", EntityOperator.LESS_THAN, nextDayBegin));
productResultListIterator = delegator.find("InvoiceItemProductSummary", EntityCondition.makeCondition(productAndExprs, EntityOperator.AND), null, productFieldsToSelect, null, findOpts);
productResultMap = FastMap.newInstance();
while ((productResult = productResultListIterator.next())) {
@@ -123,13 +123,13 @@ for (int currentDay = 0; currentDay <= daysInMonth; currentDay++) {
}
productResultListIterator.close();
productResultMapByDayList.add(productResultMap);
// do the category find
categoryAndExprs = FastList.newInstance();
categoryAndExprs.addAll(baseCategoryAndExprs);
categoryAndExprs.add(EntityCondition.makeCondition("invoiceDate", EntityOperator.GREATER_THAN_EQUAL_TO, currentDayBegin));
categoryAndExprs.add(EntityCondition.makeCondition("invoiceDate", EntityOperator.LESS_THAN, nextDayBegin));
categoryResultListIterator = delegator.find("InvoiceItemCategorySummary", EntityCondition.makeCondition(categoryAndExprs, EntityOperator.AND), null, categoryFieldsToSelect, null, findOpts);
categoryResultMap = FastMap.newInstance();
while ((categoryResult = categoryResultListIterator.next())) {
@@ -140,7 +140,7 @@ for (int currentDay = 0; currentDay <= daysInMonth; currentDay++) {
}
categoryResultListIterator.close();
categoryResultMapByDayList.add(categoryResultMap);
// do a find for InvoiceItem with a null productId
productNullAndExprs = FastList.newInstance();
productNullAndExprs.addAll(baseProductAndExprs);
@@ -171,4 +171,3 @@ context.monthProductNullResult = monthProductNullResult;
context.productCategoryList = productCategoryList;
context.productList = productList;
@@ -6,9 +6,9 @@
* 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
@@ -6,9 +6,9 @@
* 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
@@ -25,23 +25,23 @@ orderPaymentPreferenceId = context.orderPaymentPreferenceId;
if ((!orderId) || (!orderPaymentPreferenceId)) return;
if(orderId) {
if (orderId) {
orderHeader = delegator.findByPrimaryKey("OrderHeader", [orderId : orderId]);
context.orderHeader = orderHeader;
}
if(orderHeader) {
if (orderHeader) {
orh = new OrderReadHelper(orderHeader);
context.orh = orh;
context.overrideAmount = orh.getOrderGrandTotal();
}
if(orderPaymentPreferenceId) {
if (orderPaymentPreferenceId) {
orderPaymentPreference = delegator.findByPrimaryKey("OrderPaymentPreference", [orderPaymentPreferenceId : orderPaymentPreferenceId]);
context.orderPaymentPreference = orderPaymentPreference;
}
if(orderPaymentPreference) {
if (orderPaymentPreference) {
paymentMethodType = orderPaymentPreference.getRelatedOneCache("PaymentMethodType");
context.paymentMethodType = paymentMethodType;
context.overrideAmount = orderPaymentPreference.getBigDecimal("maxAmount");
@@ -6,9 +6,9 @@
* 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
@@ -28,7 +28,7 @@ orderPaymentPreferenceId = context.orderPaymentPreferenceId;
if ((!orderId) || (!orderPaymentPreferenceId)) return;
if (orderId){
if (orderId) {
orderHeader = delegator.findByPrimaryKey("OrderHeader", [orderId : orderId]);
context.orderHeader = orderHeader;
}
@@ -6,9 +6,9 @@
* 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
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
/*
/*
* The first purpose of this script is to retrieve the orderId and paymentPreferenceId of this gateway response. It is
* activated if orderPaymentPreferenceId is not supplied.
*
File diff suppressed because it is too large Load Diff
@@ -23,7 +23,7 @@ under the License.
<web-app>
<display-name>Open For Business - Accounting Manager</display-name>
<description>Accounting Manager Module of the Open For Business Project</description>
<context-param>
<param-name>webSiteId</param-name>
<param-value>ACCOUNTING</param-value>
@@ -43,13 +43,13 @@ under the License.
<param-name>serviceReaderUrls</param-name>
<param-value>/WEB-INF/services.xml</param-value>
<description>Configuration File(s) For The Service Dispatcher</description>
</context-param>
</context-param>
<context-param>
<param-name>mainDecoratorLocation</param-name>
<param-value>component://accounting/widget/CommonScreens.xml</param-value>
<description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
</context-param>
<filter>
<filter-name>ContextFilter</filter-name>
<display-name>ContextFilter</display-name>
@@ -69,18 +69,18 @@ under the License.
<init-param>
<param-name>redirectPath</param-name>
<param-value>/control/main</param-value>
</init-param>
</init-param>
</filter>
<filter-mapping>
<filter-name>ContextFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</filter-mapping>
<listener><listener-class>org.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
<listener><listener-class>org.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
<!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
<!-- <listener><listener-class>org.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
<servlet>
<servlet-name>ControlServlet</servlet-name>
<display-name>ControlServlet</display-name>
@@ -17,7 +17,7 @@ KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form name="FindAgreements" target="FindAgreement" title="" type="single"
@@ -117,7 +117,7 @@ under the License.
<field name="partyIdTo" title="${uiLabelMap.AccountingPartyIdTo}">
<lookup target-form-name="LookupPartyName"/>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit">
<submit button-type="button"/>
</field>
@@ -214,7 +214,7 @@ under the License.
<drop-down allow-empty="true">
<entity-options entity-name="InvoiceItemType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</entity-options>
</drop-down>
</field>
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
@@ -240,7 +240,7 @@ under the License.
<drop-down allow-empty="true">
<entity-options entity-name="InvoiceItemType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit">
@@ -263,7 +263,7 @@ under the License.
<drop-down allow-empty="true">
<entity-options entity-name="InvoiceItemType" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonSubmit}" widget-style="smallSubmit">
@@ -317,7 +317,7 @@ under the License.
</field>
<field name="lastPrice" widget-area-style="align-text"><display/></field>
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
<hyperlink target="removeAgreementItemSupplierProduct" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<hyperlink target="removeAgreementItemSupplierProduct" description="${uiLabelMap.CommonRemove}" also-hidden="false">
<parameter param-name="minimumOrderQuantity"/>
<parameter param-name="currencyUomId"/>
<parameter param-name="availableFromDate"/>
@@ -529,7 +529,7 @@ under the License.
</field>
</form>
<form name="EditAgreementGeographicalApplic" type="single" target="updateAgreementGeographicalApplic" title="" default-map-name="agreementGeographicalApplic"
header-row-style="header-row" default-table-style="basic-table">
header-row-style="header-row" default-table-style="basic-table">
<alt-target use-when="agreementGeographicalApplic==null" target="createAgreementGeographicalApplic"/>
<auto-fields-entity entity-name="AgreementGeographicalApplic" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
@@ -538,7 +538,7 @@ under the License.
<drop-down allow-empty="false">
<entity-options entity-name="Geo" description="${geoName} [${geoId}]">
<entity-order-by field-name="geoName"/>
</entity-options>
</entity-options>
</drop-down>
</field>
<field name="geoId" use-when="agreementGeographicalApplic!=null"><display/></field>
@@ -555,12 +555,12 @@ under the License.
<entity-options entity-name="AgreementItem" description="${agreementItemSeqId}">
<entity-constraint name="agreementId" operator="equals" env-name="agreementId"/>
<entity-order-by field-name="agreementItemSeqId"/>
</entity-options>
</entity-options>
</drop-down>
</field>
<field name="workEffortId">
<lookup target-form-name="LookupWorkEffort"/>
</field>
</field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
<form name="ListAgreementWorkEffortAppls" type="list" target="updateAgreementWorkEffortAppl" list-name="agreementWorkEffortAppls"
@@ -569,7 +569,7 @@ under the License.
<entity-and entity-name="AgreementWorkEffortAppl" use-cache="true" list="agreementWorkEffortAppls">
<field-map from-field="agreementId" field-name="agreementId"/>
</entity-and>
</actions>
</actions>
<field name="agreementItemSeqId"><display/></field>
<field name="workEffortId"><display/></field>
<field name="deleteLink" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext">
@@ -599,7 +599,7 @@ under the License.
</hyperlink>
</field>
</form>
<form name="AddAgreementRole" type="single" target="createAgreementRole"
<form name="AddAgreementRole" type="single" target="createAgreementRole"
header-row-style="header-row" default-table-style="basic-table">
<auto-fields-entity entity-name="AgreementRole" default-field-type="edit"/>
<field name="agreementId"><hidden/></field>
@@ -609,6 +609,6 @@ under the License.
<entity-options description="${description}" entity-name="RoleType" key-field-name="roleTypeId"/>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}" widget-style="smallSubmit"><submit button-type="button"/></field>
</form>
</forms>
@@ -32,12 +32,12 @@ under the License.
<tr>
<td>
<table width="100%" border="0" height="200">
<tr bgcolor="#CC6666">
<td height="45">
<tr bgcolor="#CC6666">
<td height="45">
<div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="4" color="#FFFFFF"><b>:ERROR MESSAGE:</b></font></div>
</td>
</tr>
<tr>
<tr>
<td>
<div align="left"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=UtilFormatOut.replaceString(errorMsg, "\n", "<br/>")%></font></div>
</td>
@@ -19,11 +19,11 @@ under the License.
<#if latestGeoPoint?has_content>
<#if latestGeoPoint.latitude?has_content && latestGeoPoint.longitude?has_content>
${uiLabelMap.CommonLatitude}${latestGeoPoint.latitude}<br>
${uiLabelMap.CommonLongitude}${latestGeoPoint.longitude}
${uiLabelMap.CommonLongitude}${latestGeoPoint.longitude}
<#if latestGeoPoint.elevation?has_content>
<br>${uiLabelMap.CommonElevation}${latestGeoPoint.elevation} ${elevationUomAbbr}
</#if>
<#if latestGeoPoint.dataSourceId?has_content>
</#if>
<#if latestGeoPoint.dataSourceId?has_content>
<#if latestGeoPoint.dataSourceId == "GEOPT_GOOGLE">
<div id="map" style="border:1px solid #979797; background-color:#e5e3df; width:400px; height:300px; margin:2em auto;">
<div style="padding:1em; color:gray;">${uiLabelMap.CommonLoading}</div>
@@ -34,17 +34,17 @@ under the License.
type="text/javascript">
</script>
<script type="text/javascript">
loadGoogleMap("${latestGeoPoint.latitude}",
"${latestGeoPoint.longitude}",
loadGoogleMap("${latestGeoPoint.latitude}",
"${latestGeoPoint.longitude}",
"<@ofbizUrl>EditFixedAsset?fixedAssetId=${fixedAssetId}</@ofbizUrl>",
"${uiLabelMap.AccountingFixedAsset} ${uiLabelMap.CommonOf} ${fixedAssetId}")
</script>
<#elseif latestGeoPoint.dataSourceId == "GEOPT_YAHOO">
<#elseif latestGeoPoint.dataSourceId == "GEOPT_MICROSOFT">
<#elseif latestGeoPoint.dataSourceId == "GEOPT_MAPTP">
</#if>
</#if>
</script>
<#elseif latestGeoPoint.dataSourceId == "GEOPT_YAHOO">
<#elseif latestGeoPoint.dataSourceId == "GEOPT_MICROSOFT">
<#elseif latestGeoPoint.dataSourceId == "GEOPT_MAPTP">
</#if>
</#if>
</#if>
<#else>
<h2>${uiLabelMap.CommonNoGeolocationAvailable}</h2>
<h2>${uiLabelMap.CommonNoGeolocationAvailable}</h2>
</#if>

Some files were not shown because too many files have changed in this diff Show More