Compare commits
202
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
717bd4ba43 | ||
|
|
564b605d55 | ||
|
|
2ce14c8fe1 | ||
|
|
7af07c808b | ||
|
|
f089d59389 | ||
|
|
8ef5896077 | ||
|
|
57183eea13 | ||
|
|
27adfed9f0 | ||
|
|
02cd3b33b0 | ||
|
|
1a5bca9190 | ||
|
|
d75ef8212d | ||
|
|
703a32b41f | ||
|
|
9510fc9389 | ||
|
|
7fb8780c97 | ||
|
|
921db68bde | ||
|
|
6b1d71d91a | ||
|
|
c4c3012916 | ||
|
|
ac1595b304 | ||
|
|
15bb640a83 | ||
|
|
7933fef9f2 | ||
|
|
5b0b80f795 | ||
|
|
5560130451 | ||
|
|
af5d61b051 | ||
|
|
2cf6476a79 | ||
|
|
4138bf2a34 | ||
|
|
44cb8dd327 | ||
|
|
9c0c43365f | ||
|
|
58f2b14ee8 | ||
|
|
20e1e1fae7 | ||
|
|
c32abb81d2 | ||
|
|
9dd2a255e9 | ||
|
|
69f00cff78 | ||
|
|
d93f7ce590 | ||
|
|
7756b11421 | ||
|
|
2876adf26c | ||
|
|
b5cdcd9efc | ||
|
|
78f09e61ad | ||
|
|
ec4bff76a0 | ||
|
|
d6c6330b39 | ||
|
|
2b8f4f8b64 | ||
|
|
392f18f913 | ||
|
|
1cf9d9110b | ||
|
|
b06521c356 | ||
|
|
26a2be1392 | ||
|
|
a0b2f55b40 | ||
|
|
7add713a10 | ||
|
|
315bdea44b | ||
|
|
a1e495de19 | ||
|
|
4a26aecbf5 | ||
|
|
a5e96763e4 | ||
|
|
00200bfaca | ||
|
|
bbc63bc470 | ||
|
|
e1d57fba00 | ||
|
|
24d9328cdf | ||
|
|
2d15771d56 | ||
|
|
d13264b584 | ||
|
|
aa4791f120 | ||
|
|
e87747dcb9 | ||
|
|
3982f8d526 | ||
|
|
540f5c80cd | ||
|
|
637e02978c | ||
|
|
363e0be770 | ||
|
|
ba6470b9ea | ||
|
|
00d875251c | ||
|
|
71ff63a043 | ||
|
|
ce2f66b720 | ||
|
|
aaed04d7c8 | ||
|
|
13001ee048 | ||
|
|
e50ad56bb9 | ||
|
|
7ff8fb814e | ||
|
|
dc57528fd4 | ||
|
|
57c15f615d | ||
|
|
9d3631e278 | ||
|
|
983f4b95ae | ||
|
|
f741bb2277 | ||
|
|
f6176dba99 | ||
|
|
2a30d57118 | ||
|
|
91de16a55c | ||
|
|
e1cfe58828 | ||
|
|
cc8ee48154 | ||
|
|
1f965ca30d | ||
|
|
9b45ab7aff | ||
|
|
7400899b58 | ||
|
|
ce0b8903ea | ||
|
|
f6450a01c5 | ||
|
|
008246bf7b | ||
|
|
28a6d4391a | ||
|
|
6bf785654a | ||
|
|
4925d81d07 | ||
|
|
6dc266996e | ||
|
|
69828b37ad | ||
|
|
8640250331 | ||
|
|
726ebe8493 | ||
|
|
85db312077 | ||
|
|
744fa72316 | ||
|
|
f1e8ea734f | ||
|
|
faadf5a622 | ||
|
|
a353cda8b6 | ||
|
|
8622a761e0 | ||
|
|
4de58fc206 | ||
|
|
26075f06a8 | ||
|
|
f83be8652e | ||
|
|
8390abb855 | ||
|
|
fddc3ac8c1 | ||
|
|
dcfa5495ad | ||
|
|
3cfed4c657 | ||
|
|
977d2afb0f | ||
|
|
31a3a75938 | ||
|
|
5ebc88d213 | ||
|
|
b9b22a56c7 | ||
|
|
09a4b32ec2 | ||
|
|
9a0bda00f8 | ||
|
|
9058351d1f | ||
|
|
084eb85c0b | ||
|
|
95d3aadcb5 | ||
|
|
8dc864ff71 | ||
|
|
1662e5b42e | ||
|
|
ca62bd6cef | ||
|
|
c0b11bdfad | ||
|
|
bf0c628dfb | ||
|
|
b0b4ba4d56 | ||
|
|
346ddf229e | ||
|
|
4c8141e07a | ||
|
|
c248af0c55 | ||
|
|
b7b7cad1a2 | ||
|
|
76beb10627 | ||
|
|
0e3b1c7a49 | ||
|
|
ba15f2ec77 | ||
|
|
6622277585 | ||
|
|
791be06575 | ||
|
|
4b8ee87aef | ||
|
|
accca2d388 | ||
|
|
cb228cd11f | ||
|
|
0eeaee6a25 | ||
|
|
f6353957e2 | ||
|
|
4a71a959a6 | ||
|
|
b09fa66ed3 | ||
|
|
8120f75b21 | ||
|
|
4079b54ece | ||
|
|
a603349b55 | ||
|
|
685b7c3d82 | ||
|
|
e47e0142a0 | ||
|
|
7a46ad7a4c | ||
|
|
abad801b0c | ||
|
|
f914203956 | ||
|
|
079e909f21 | ||
|
|
260c0bb36b | ||
|
|
5414813438 | ||
|
|
f45c3ce988 | ||
|
|
7252dbf4e3 | ||
|
|
aec541efe1 | ||
|
|
38a4202d91 | ||
|
|
482df0ba5e | ||
|
|
673fddf72b | ||
|
|
16b8a789af | ||
|
|
78e1ee1795 | ||
|
|
e375286c74 | ||
|
|
17f4d36ec1 | ||
|
|
cbeffa91f0 | ||
|
|
d708d9afcb | ||
|
|
d913366851 | ||
|
|
c7a5b22e0e | ||
|
|
78cb314066 | ||
|
|
c502a978a0 | ||
|
|
babd23282e | ||
|
|
dc60f6fdb3 | ||
|
|
6b04468f45 | ||
|
|
039d51062c | ||
|
|
454230e613 | ||
|
|
4cd701023c | ||
|
|
95a65c3dd2 | ||
|
|
41737adca3 | ||
|
|
27c91802fc | ||
|
|
45535e34cb | ||
|
|
972401bb9d | ||
|
|
5eadb77a88 | ||
|
|
520cc35935 | ||
|
|
0e20d16cfd | ||
|
|
6189bd8ddd | ||
|
|
8a4a68e9f9 | ||
|
|
4b43b0c639 | ||
|
|
9f5ebc48fd | ||
|
|
9530d4b441 | ||
|
|
242e62d6f3 | ||
|
|
1e8ffb4906 | ||
|
|
b14516202d | ||
|
|
5b5029312a | ||
|
|
42ad34f0b6 | ||
|
|
793628bb15 | ||
|
|
84e102a6a1 | ||
|
|
27e57522b1 | ||
|
|
cf936d6c5e | ||
|
|
7e03082d92 | ||
|
|
1617226897 | ||
|
|
bb26cc1c62 | ||
|
|
09270a1c34 | ||
|
|
82ef7a5871 | ||
|
|
a16271e5c3 | ||
|
|
0c7be39acb | ||
|
|
0355006c62 | ||
|
|
b571234062 | ||
|
|
3d9b551d65 |
@@ -0,0 +1,11 @@
|
||||
Improved:
|
||||
Implemented:
|
||||
Documented:
|
||||
Completed:
|
||||
Reverted:
|
||||
Fixed:
|
||||
(OFBIZ-)
|
||||
|
||||
Explanation
|
||||
|
||||
Thanks:
|
||||
+1
-1
@@ -2,7 +2,7 @@ bin/
|
||||
build/
|
||||
applications/*/build
|
||||
framework/*/build
|
||||
plugins/
|
||||
/plugins/
|
||||
runtime/git-rebase/*
|
||||
runtime/SvnInfo.ftl
|
||||
runtime/GitInfo.ftl
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
Welcome to Apache OFBiz! A powerful top level Apache software project. OFBiz
|
||||
is an Enterprise Resource Planning (ERP) System written in Java and houses a
|
||||
large set of libraries, entities, services and features to run all aspects of
|
||||
your business.
|
||||
|
||||
== System requirements
|
||||
|
||||
The only requirement to run OFBiz is to have the Java Development Kit (JDK)
|
||||
version 8 installed on your system (not just the JRE, but the full JDK) which
|
||||
you can download from the below link. Make sure of setting the $JAVA_HOME
|
||||
environment variable.
|
||||
|
||||
https://adoptopenjdk.net/[JDK download]
|
||||
|
||||
|
||||
== Quick start
|
||||
|
||||
To quickly install and fire-up OFBiz, please follow the below instructions from
|
||||
the command line at the OFBiz top level directory (folder).
|
||||
|
||||
=== Download the Gradle wrapper:
|
||||
|
||||
MS Windows: init-gradle-wrapper
|
||||
Unix-like OS: ./gradle/init-gradle-wrapper
|
||||
|
||||
|
||||
=== Prepare OFBiz:
|
||||
|
||||
==== Clean system and load the complete OFBiz data
|
||||
_______________________________________________________________________________
|
||||
Note: Depending on your Internet connection speed it might take a long time
|
||||
for this step to complete if you are using OFBiz for the first time as it needs
|
||||
to download all dependencies. So please be patient!
|
||||
_______________________________________________________________________________
|
||||
|
||||
MS Windows: gradlew cleanAll loadAll
|
||||
Unix-like OS: ./gradlew cleanAll loadAll
|
||||
|
||||
=====Note:
|
||||
As the later step, to install without the demo data follow:
|
||||
(beware this is for development or production, not trying)
|
||||
|
||||
Windows: gradlew cleanAll "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
|
||||
Unix-like OS: ./gradlew cleanAll "ofbiz --load-data readers=seed,seed-initial" loadAdminUserLogin -PuserLoginId=admin
|
||||
|
||||
The OFBiz install will be empty, there will be no chart of accounts, no transactions, no products, no customers and no suppliers.
|
||||
You can't log to the E-Commerce Store. You will get: "A Product Store has not been defined for this ecommerce site. A Product Store can be created using the ofbizsetup wizard."
|
||||
|
||||
=== Start OFBiz:
|
||||
|
||||
MS Windows: gradlew ofbiz
|
||||
Unix-like OS: ./gradlew ofbiz
|
||||
|
||||
_______________________________________________________________________________
|
||||
Note: Ignore the % progress indicator because this task does not end as long
|
||||
as OFBiz is running.
|
||||
_______________________________________________________________________________
|
||||
|
||||
=== Visit OFBiz through your browser:
|
||||
|
||||
https://localhost:8443/webtools
|
||||
|
||||
== Going further
|
||||
To complete your installation and use OFBiz please read README.adoc
|
||||
You may prefer to read this AsciiDoc file in HTML format.
|
||||
For that simply follow:
|
||||
https://asciidoctor.org/docs/convert-documents/#converting-a-document-to-html
|
||||
@@ -186,24 +186,19 @@
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright 2001-2008 The Apache Software Foundation
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
Licensed 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
|
||||
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.
|
||||
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.
|
||||
|
||||
=========================================================================
|
||||
|
||||
@@ -219,42 +214,5 @@ For details, see themes/common/webapp/common/js/plugins/date/timezones.
|
||||
=========================================================================
|
||||
|
||||
This product bundles "Date Format 1.2.3", which is available
|
||||
under the "MIT" license.
|
||||
under the "MIT" license.
|
||||
For details, see themes/common/webapp/common/js/plugins/date/date.format-1.2.3*
|
||||
|
||||
=========================================================================
|
||||
|
||||
This product bundles "jQuery" and "jQuery" plugins and extensions, which are available
|
||||
under the "MIT" license. For details, see:
|
||||
themes/common/webapp/common/js/jquery
|
||||
plugins/webpos/webapp/webpos/images/js/jquery.hotkeys-0.7.9.min.js
|
||||
plugins/webpos/webapp/webpos/images/js/WebPosHotkeys.js
|
||||
|
||||
=========================================================================
|
||||
|
||||
This product bundles files from the "Birt" technology platform (www.eclipse.org/birt/)
|
||||
which are available under the "Eclipse Public License - v 1.0".
|
||||
For details, see plugins/birt/webapp/birt/webcontent/birt/
|
||||
|
||||
=========================================================================
|
||||
|
||||
This product bundles "Webhelp for DocBook", which is available
|
||||
under the "MIT" License. For details, see plugins/cmssite/template/docbook/webhelp/
|
||||
|
||||
=========================================================================
|
||||
|
||||
This product bundles "DocBook XSL Stylesheets 1.77.1", which is available
|
||||
under the "MIT" license.
|
||||
For details, see plugins/cmssite/template/docbook/
|
||||
=========================================================================
|
||||
|
||||
This product bundles "Openlayers", which is available
|
||||
under the "FreeBSD" license.
|
||||
For details, see themes/common/webapp/images/OpenLayers-2.13.1-modified-for-CSP-.js
|
||||
=========================================================================
|
||||
|
||||
This product bundles "Bootstrap", which is available
|
||||
under the "MIT" license.
|
||||
For details, see:
|
||||
plugins/ecommerce/webapp/ecommerce/js
|
||||
plugins/ecommerce/webapp/ecommerce/css
|
||||
|
||||
+32
-15
@@ -19,6 +19,12 @@ under the License.
|
||||
[[apache-ofbiz]]
|
||||
= Apache OFBiz®
|
||||
|
||||
If you are reading this file in AsciiDoc format you may want to see it in
|
||||
https://ci.apache.org/projects/ofbiz/site/stable/readme/html5/README.html[HTML]
|
||||
or https://ci.apache.org/projects/ofbiz/site/stable/readme/pdf/README.pdf[PDF] format
|
||||
|
||||
---
|
||||
|
||||
Welcome to *Apache OFBiz*! A powerful top level Apache software project. OFBiz
|
||||
is an Enterprise Resource Planning (ERP) System written in Java and houses a
|
||||
large set of libraries, entities, services and features to run all aspects of
|
||||
@@ -53,14 +59,17 @@ ________________________________________________________________________________
|
||||
[[system-requirements]]
|
||||
== System requirements
|
||||
|
||||
The only requirement to run OFBiz is to have the Java Development Kit (JDK)
|
||||
version 8 installed on your system (not just the JRE, but the full JDK) which
|
||||
you can download from the below link. Make sure of setting the $JAVA_HOME
|
||||
environment variable.
|
||||
The only requirements to run OFBiz is
|
||||
|
||||
* to have the Java Development Kit (JDK) version 8 installed on your system
|
||||
(not just the JRE, but the full JDK) that you can download from the below link.
|
||||
Make sure of setting the $JAVA_HOME environment variable. +
|
||||
https://adoptopenjdk.net/[JDK download], https://medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244[To know more about the JDK]
|
||||
|
||||
* If on Windows, a Powershell version >= 7.1.3 installed that you can download from the below link. +
|
||||
https://github.com/PowerShell/PowerShell[Powershell]
|
||||
|
||||
https://adoptopenjdk.net/[JDK download]
|
||||
|
||||
https://medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244[To know more about the JDK]
|
||||
|
||||
[[quick-start]]
|
||||
// tag::quickstart[]
|
||||
@@ -69,6 +78,13 @@ https://medium.com/@javachampions/java-is-still-free-2-0-0-6b9aa8d6d244[To know
|
||||
To quickly install and fire-up OFBiz, please follow the below instructions from
|
||||
the command line at the OFBiz top level directory (folder).
|
||||
|
||||
[[download-the-gradle-wrapper]]
|
||||
=== Download the Gradle wrapper:
|
||||
|
||||
MS Windows: `init-gradle-wrapper`
|
||||
|
||||
Unix-like OS: `./gradle/init-gradle-wrapper.sh`
|
||||
|
||||
[[prepare-ofbiz]]
|
||||
=== Prepare OFBiz:
|
||||
|
||||
@@ -118,8 +134,10 @@ Once proper mitigations to the security issues are complete the OFBiz team will
|
||||
disclose this information to the public mailing list.
|
||||
|
||||
You can find more information about security in OFBiz at
|
||||
https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure[Keeping
|
||||
OFBiz secure]
|
||||
https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure[Keeping OFBiz secure]
|
||||
|
||||
[CAUTION]
|
||||
In production never use the credentials contained in demo data. Not only the admin credentials, but all of them.
|
||||
|
||||
[[build-system-syntax]]
|
||||
== Build system syntax
|
||||
@@ -261,8 +279,7 @@ operating system kill command. Use this command to force OFBiz termination if
|
||||
the --shutdown command does not work. Usually this is needed when in the middle
|
||||
of data loading or testing in OFBiz.
|
||||
|
||||
Warning: Be careful in using this command as force termination might lead to
|
||||
inconsistent state / data
|
||||
Warning: Be careful in using this command as force termination might lead to inconsistent state / data
|
||||
|
||||
`gradlew terminateOfbiz`
|
||||
|
||||
@@ -373,7 +390,7 @@ Example:
|
||||
Beware that copying this command in Microsoft Word will automatically transform
|
||||
the double dash in en dashes (Unicode 0x2013: –) Other cases not related to Word
|
||||
were also reported.So when this command does not work check that you are using
|
||||
dash! text
|
||||
dash!
|
||||
|
||||
[[load-all-ofbiz-data]]
|
||||
==== Load all OFBiz data
|
||||
@@ -381,13 +398,13 @@ dash! text
|
||||
Loads all data sets; meant for initial loading of generic OFBiz data. Can be
|
||||
applied for development, testing, demonstration, etc. purposes. Be aware that
|
||||
executing this task can result in your data being overwritten in your database
|
||||
of choice. Use with caution in production environments.
|
||||
of choice.
|
||||
|
||||
`gradlew loadAll`
|
||||
`gradlew loadAll` OR `gradlew "ofbiz --load-data"`
|
||||
|
||||
OR
|
||||
[CAUTION]
|
||||
Use with caution in production environments.
|
||||
|
||||
`gradlew "ofbiz --load-data"`
|
||||
|
||||
[[load-seed-data]]
|
||||
==== Load seed data
|
||||
|
||||
@@ -1,760 +0,0 @@
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
Apache OFBiz®
|
||||
=============
|
||||
|
||||
Welcome to __Apache OFBiz__! A powerful top level Apache software project.
|
||||
OFBiz is an Enterprise Resource Planning (ERP) System written in Java and
|
||||
houses a large set of libraries, entities, services and features to run
|
||||
all aspects of your business.
|
||||
|
||||
For more details about OFBiz please visit the OFBiz Documentation page:
|
||||
|
||||
[OFBiz documentation](http://ofbiz.apache.org/documentation.html)
|
||||
|
||||
[OFBiz License](http://www.apache.org/licenses/LICENSE-2.0)
|
||||
|
||||
>_Note_: If you want to use Eclipse, read the "Setup eclipse project for OFBiz"
|
||||
section to set it up.
|
||||
|
||||
>_Note_: If you want to use an external database like MySQL or PostgreSQL, read
|
||||
the "Setup an external database" section to set it up.
|
||||
|
||||
>_Note_: If you want to run OFBiz without an internet connection, read the
|
||||
"Running gradle tasks without an internet connection" section.
|
||||
|
||||
>_Note_: The directory structure and repositories have changed. For more
|
||||
information read the "Repository and directory structure" section.
|
||||
|
||||
System requirements
|
||||
-------------------
|
||||
|
||||
The only requirement to run OFBiz is to have the Java Development Kit (JDK)
|
||||
version 8 installed on your system (not just the JRE, but the full JDK) which
|
||||
you can download from the below link. Make sure of setting the $JAVA_HOME
|
||||
environment variable.
|
||||
|
||||
[JDK download](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
|
||||
|
||||
Quick start
|
||||
-----------
|
||||
To quickly install and fire-up OFBiz, please follow the below instructions
|
||||
from the command line at the OFBiz top level directory (folder)
|
||||
|
||||
In case of problems visit our [Further reading section](#further-reading)
|
||||
|
||||
### Prepare OFBiz:
|
||||
|
||||
>_Note_: Depending on your Internet connection speed it might take a long
|
||||
time for this step to complete if you are using OFBiz for the first time
|
||||
as it needs to download all dependencies. So please be patient!
|
||||
|
||||
MS Windows:
|
||||
`gradlew cleanAll loadAll`
|
||||
|
||||
Unix-like OS:
|
||||
`./gradlew cleanAll loadAll`
|
||||
|
||||
### Start OFBiz:
|
||||
|
||||
MS Windows:
|
||||
`gradlew ofbiz`
|
||||
|
||||
Unix-like OS:
|
||||
`./gradlew ofbiz`
|
||||
|
||||
>_Note_: Ignore the % progress indicator because this task does not end as
|
||||
long as OFBiz is running.
|
||||
|
||||
### Visit OFBiz through your browser:
|
||||
|
||||
[Order Back Office](https://localhost:8443/ordermgr)
|
||||
|
||||
[Accounting Back Office](https://localhost:8443/accounting)
|
||||
|
||||
[Administrator interface](https://localhost:8443/webtools)
|
||||
|
||||
You can log in with the user __admin__ and password __ofbiz__.
|
||||
|
||||
Security
|
||||
--------
|
||||
|
||||
If you find a security issue, please report it to: security @ ofbiz.apache.org.
|
||||
Once proper mitigations to the security issues are complete the OFBiz team will
|
||||
disclose this information to the public mailing list.
|
||||
|
||||
You can find more information about security in OFBiz at
|
||||
[Keeping OFBiz secure](https://cwiki.apache.org/confluence/display/OFBIZ/Keeping+OFBiz+secure)
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
Build system syntax
|
||||
-------------------
|
||||
|
||||
All build tasks are executed using the __Gradle__ build system which
|
||||
is embedded in OFBiz. To execute build tasks go to OFBiz top-level
|
||||
directory (folder) and execute tasks from there.
|
||||
|
||||
### Operating System Syntax
|
||||
|
||||
The syntax for tasks differ slightly between windows and Unix-like systems
|
||||
|
||||
- __Windows__: `gradlew <tasks-in-here>`
|
||||
|
||||
- __Unix-like__: `./gradlew <tasks-in-here>`
|
||||
|
||||
For the rest of this document, we will use the windows syntax, if you are on
|
||||
a Unix-like system, you need to add the `./` to gradlew
|
||||
|
||||
### Types of tasks in Gradle
|
||||
|
||||
There are two types of tasks designed for OFBiz in Gradle:
|
||||
|
||||
- __Standard tasks__: To execute general standard Gradle tasks
|
||||
|
||||
- __OFBiz server tasks__: To execute OFBiz startup commands. These
|
||||
tasks start with one of the following words:
|
||||
- __ofbiz__ : standard server commands
|
||||
- __ofbizDebug__ : server commands running in remote debug mode
|
||||
- __ofbizBackground__ ; server commands running in a background forked process
|
||||
|
||||
Tips:
|
||||
|
||||
- OFBiz __server commands__ require __"quoting"__ the
|
||||
commands. For example: `gradlew "ofbiz --help"`
|
||||
|
||||
- Shortcuts to task names can be used by writing the
|
||||
first letter of every word in a task name. However, you
|
||||
cannot use the shortcut form for OFBiz server tasks.
|
||||
Example: `gradlew loadAdminUserLogin -PuserLoginId=myadmin` = `gradlew lAUL -PuserLoginId=myadmin`
|
||||
|
||||
- Dependent tasks can be skipped with the -x switch.
|
||||
Example: `gradlew build -x test` does not run the tests within the build.
|
||||
|
||||
#### Example standard tasks
|
||||
|
||||
`gradlew build`
|
||||
|
||||
`gradlew cleanAll loadAll testIntegration`
|
||||
|
||||
#### Example OFBiz server tasks
|
||||
|
||||
`gradlew "ofbiz --help"`
|
||||
|
||||
`gradlew "ofbizDebug --test"`
|
||||
|
||||
`gradlew "ofbizBackground --start --portoffset 10000"`
|
||||
|
||||
`gradlew "ofbiz --shutdown --portoffset 10000"`
|
||||
|
||||
`gradlew ofbiz` (default is --start)
|
||||
|
||||
#### Example mixed tasks (standard and OFBiz server)
|
||||
|
||||
`gradlew cleanAll loadAll "ofbiz --start --portoffset 10000"`
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
Quick reference
|
||||
---------------
|
||||
|
||||
You can use the below common list of tasks as a quick reference
|
||||
for controlling the system. This document uses the windows task
|
||||
syntax, if you are on a Unix-like system, you need to add the
|
||||
`./` to gradlew i.e. `./gradlew`
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
### Help tasks
|
||||
|
||||
#### List OFBiz server commands
|
||||
|
||||
List all available commands to control the OFBiz server
|
||||
|
||||
`gradlew "ofbiz --help"`
|
||||
|
||||
#### List build tasks
|
||||
|
||||
List all available tasks from the build system
|
||||
|
||||
`gradlew tasks`
|
||||
|
||||
#### List build projects
|
||||
|
||||
List all available projects in the build system
|
||||
|
||||
`gradlew projects`
|
||||
|
||||
#### Gradle build system help
|
||||
|
||||
Show usage and options for the Gradle build system
|
||||
|
||||
`gradlew --help`
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
### Server command tasks
|
||||
|
||||
#### Start OFBiz
|
||||
|
||||
`gradlew "ofbiz --start"`
|
||||
|
||||
start is the default server task so this also works:
|
||||
|
||||
`gradlew ofbiz`
|
||||
|
||||
#### Shutdown OFBiz
|
||||
|
||||
`gradlew "ofbiz --shutdown"`
|
||||
|
||||
#### Get OFBiz status
|
||||
|
||||
`gradlew "ofbiz --status"`
|
||||
|
||||
#### Force OFBiz shutdown
|
||||
|
||||
Terminate all running OFBiz server instances by calling
|
||||
the appropriate operating system kill command. Use this
|
||||
command to force OFBiz termination if the --shutdown
|
||||
command does not work. Usually this is needed when in the
|
||||
middle of data loading or testing in OFBiz.
|
||||
|
||||
Warning: Be careful in using this command as force termination
|
||||
might lead to inconsistent state / data
|
||||
|
||||
`gradlew terminateOfbiz`
|
||||
|
||||
#### Start OFBiz in remote debug mode
|
||||
|
||||
Starts OFBiz in remote debug mode and waits for debugger
|
||||
or IDEs to connect on port __5005__
|
||||
|
||||
`gradlew "ofbizDebug --start"`
|
||||
|
||||
OR
|
||||
|
||||
`gradlew ofbizDebug`
|
||||
|
||||
#### Start OFBiz on a different port
|
||||
|
||||
Start OFBiz of the network port offsetted by the range
|
||||
provided in the argument to --portoffset
|
||||
|
||||
`gradlew "ofbiz --start --portoffset 10000"`
|
||||
|
||||
#### Start OFBiz in the background
|
||||
|
||||
Start OFBiz in the background by forking it to a new
|
||||
process and redirecting the output to __runtime/logs/console.log__
|
||||
|
||||
`gradlew "ofbizBackground --start"`
|
||||
|
||||
OR
|
||||
|
||||
`gradlew ofbizBackground`
|
||||
|
||||
You can also offset the port, for example:
|
||||
|
||||
`gradlew "ofbizBackground --start --portoffset 10000"`
|
||||
|
||||
#### Passing JVM runtime options to OFBiz
|
||||
|
||||
You can pass JVM runtime options by specifying the project property `-PjvmArgs`.
|
||||
|
||||
`gradlew ofbiz -PjvmArgs="-Xms1024M -Xmx2048M" -Dsome.parameter=hello`
|
||||
|
||||
If you do not specify `jvmArgs`, a default of `-Xms128M -Xmx1024M` is set.
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
### Data loading tasks
|
||||
|
||||
OFBiz contains the following data reader types:
|
||||
|
||||
- __seed__: OFBiz and External Seed Data - to be maintained along with source and
|
||||
updated whenever a system deployment is updated
|
||||
- __seed-initial__: OFBiz and External Seed Data - to be maintained along with
|
||||
source like other seed data, but only loaded initially and not updated
|
||||
when a system is updated except manually reviewing each line
|
||||
- __demo__: OFBiz Only Demo Data
|
||||
- __ext__: External General Data (custom)
|
||||
- __ext-test__: External Test Data (custom)
|
||||
- __ext-demo__: External Demo Data (custom)
|
||||
- __tenant__: Data to load into the master tenants database "ofbiztenant". This
|
||||
data is required to identify where a tenant's database is located. For more
|
||||
information you can review the relevant
|
||||
[tenant documentation](https://cwiki.apache.org/confluence/display/OFBIZ/Multitenancy+support)
|
||||
|
||||
Available options for the --load-data server command are the following:
|
||||
|
||||
- **readers=[name]**: only load data from certain readers separated by comma.
|
||||
e.g. seed,seed-initial,ext
|
||||
- **file=[path]**: load a single file from location or several files separated
|
||||
by commas. e.g. /my/file/1,/my/file/2
|
||||
- **dir=[path]**: load all data files found in directory
|
||||
- **component=[name]**: only load data from a specific component. e.g. base
|
||||
- **delegator=[name]**: use the defined delegator. Default is "default". If the
|
||||
value passed is **"all-tenants"** then OFBiz will load the data for all defined
|
||||
tenants in the system.
|
||||
- **group=[name]**: override the entity group (org.apache.ofbiz).
|
||||
e.g. com.example.something
|
||||
- **timeout=[millis]**: timeout in milliseconds
|
||||
- **create-pks**: create primary keys
|
||||
- **drop-pks**: drop primary keys
|
||||
- **create-constraints**: create indexes and foreign keys after loading
|
||||
- **drop-constraints**: drop indexes and foreign keys before loading
|
||||
- **create-fks**: create dummy (placeholder) foreign keys
|
||||
- **maintain-txs**: maintain timestamps in data file
|
||||
- **try-inserts**: use mostly inserts
|
||||
- **repair-columns**: repair column sizes
|
||||
(default is true w/ drop-constraints)
|
||||
- **continue-on-failure**: By default OFBiz will fail and stop if it is unable
|
||||
to load any of the files it is attempting to load. By passing this property
|
||||
OFBiz will ignore failures and continue loading all files
|
||||
|
||||
#### Load specific OFBiz data
|
||||
|
||||
you can choose which data readers to pass in the following syntax:
|
||||
|
||||
`gradlew "ofbiz --load-data readers=<readers-here-comma-separated>"`
|
||||
|
||||
Example:
|
||||
|
||||
`gradlew "ofbiz --load-data readers=seed,seed-initial,ext,ext-demo"`
|
||||
|
||||
<span style="color:red">
|
||||
Beware that copying this command in Microsoft Word will automatically transform the double dash in en dashes (Unicode 0x2013: –)
|
||||
Other cases not related to Word were also reported.So when this command does not work check that you are using dash!
|
||||
text</span>
|
||||
|
||||
#### Load all OFBiz data
|
||||
|
||||
Loads all data sets; meant for initial loading of generic OFBiz data.
|
||||
Can be applied for development, testing, demonstration, etc. purposes.
|
||||
Be aware that executing this task can result in your data being overwritten
|
||||
in your database of choice. Use with caution in production environments.
|
||||
|
||||
`gradlew loadAll`
|
||||
|
||||
OR
|
||||
|
||||
`gradlew "ofbiz --load-data"`
|
||||
|
||||
#### Load seed data
|
||||
|
||||
Load ONLY the seed data (not seed-initial, demo, ext* or anything else);
|
||||
meant for use after an update of the code to reload the seed data
|
||||
as it is generally maintained along with the code and needs to be
|
||||
in sync for operation
|
||||
|
||||
`gradlew "ofbiz --load-data readers=seed"`
|
||||
|
||||
#### load ext data
|
||||
|
||||
Load seed, seed-initial and ext data; meant for manual/generic
|
||||
testing, development, or going into production with a derived
|
||||
system based on stock OFBiz where the ext data basically
|
||||
replaces the demo data
|
||||
|
||||
`gradlew "ofbiz --load-data readers=seed,seed-initial,ext"`
|
||||
|
||||
#### load ext test data
|
||||
|
||||
Load seed, seed-initial, ext and ext-test data; meant for
|
||||
automated testing with a derived system based on stock OFBiz
|
||||
|
||||
`gradlew "ofbiz --load-data readers=seed,seed-initial,ext,ext-test"`
|
||||
|
||||
#### load data from an entity file
|
||||
|
||||
Load data from an XML file holding entity data.
|
||||
|
||||
`gradlew "ofbiz --load-data file=foo/bar/FileNameHere.xml"`
|
||||
|
||||
#### create a new tenant
|
||||
|
||||
Create a new tenant in your environment, create the delegator, load
|
||||
initial data with admin-user and password (needs multitenant=Y in
|
||||
general.properties). The following project parameters are passed:
|
||||
|
||||
- tenantId: mandatory
|
||||
- tenantName: optional, default is value of tenantId
|
||||
- domainName: optional, default is org.apache.ofbiz
|
||||
- tenantReaders: optional, default value is seed,seed-initial,demo
|
||||
- dbPlatform: optional, D(Derby), M(MySQL), O(Oracle), P(PostgreSQL) (default D)
|
||||
- dbIp: optional, ip address of the database
|
||||
- dbUser: optional, username of the database
|
||||
- dbPassword: optional, password of the database
|
||||
|
||||
`gradlew createTenant -PtenantId=mytenant`
|
||||
|
||||
`gradlew createTenant -PtenantId=mytenant -PtenantName="My Name" -PdomainName=com.example -PtenantReaders=seed,seed-initial,ext -PdbPlatform=M -PdbIp=127.0.0.1 -PdbUser=mydbuser -PdbPassword=mydbpass`
|
||||
|
||||
If run successfully, the system creates a new tenant having:
|
||||
|
||||
- delegator: default#${tenandId} (e.g. default#mytenant)
|
||||
- admin user: ${tenantId}-admin (e.g. mytenant-admin)
|
||||
- admin user password: ofbiz
|
||||
|
||||
#### load data for a specific tenant
|
||||
|
||||
Load data for one specific tenant in a multitenant environment. Note
|
||||
that you must set multitenant=Y in general.properties and the
|
||||
following project parameters are passed:
|
||||
|
||||
- tenantId (mandatory)
|
||||
- tenantReaders (optional)
|
||||
- tenantComponent (optional)
|
||||
|
||||
`gradlew loadTenant -PtenantId=mytenant`
|
||||
|
||||
`gradlew loadTenant -PtenantId=mytenant -PtenantReaders=seed,seed-initial,demo -PtenantComponent=base`
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
### Testing tasks
|
||||
|
||||
#### Execute all unit tests
|
||||
|
||||
`gradlew test`
|
||||
|
||||
#### Execute all integration tests
|
||||
|
||||
`gradlew testIntegration`
|
||||
|
||||
OR
|
||||
|
||||
`gradlew 'ofbiz --test'`
|
||||
|
||||
#### Execute integration tests with a different log level
|
||||
|
||||
It is possible to start integration tests with a log level different from the
|
||||
default one. The log levels allowed are listed below from most verbose to
|
||||
least verbose:
|
||||
|
||||
- always
|
||||
- verbose
|
||||
- timing
|
||||
- info
|
||||
- important
|
||||
- warning
|
||||
- error
|
||||
- fatal
|
||||
|
||||
`gradlew "ofbiz --test loglevel=fatal"`
|
||||
|
||||
#### Execute an integration test case
|
||||
|
||||
run a test case, in this example the component is "entity" and the case
|
||||
name is "entity-tests"
|
||||
|
||||
`gradlew "ofbiz --test component=entity --test suitename=entitytests --test case=entity-query-tests"`
|
||||
|
||||
#### Execute an integration test case in debug mode with verbose log
|
||||
|
||||
listens on port __5005__
|
||||
|
||||
`gradlew "ofbizDebug --test component=entity --test loglevel=verbose"`
|
||||
|
||||
#### Execute an integration test suite
|
||||
|
||||
`gradlew "ofbiz --test component=entity --test suitename=entitytests"`
|
||||
|
||||
#### Execute an integration test suite in debug mode
|
||||
|
||||
listens on port __5005__
|
||||
|
||||
`gradlew "ofbizDebug --test component=entity --test suitename=entitytests"`
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
### Miscellaneous tasks
|
||||
|
||||
#### Run all tests on a clean system
|
||||
|
||||
`gradlew cleanAll loadAll testIntegration`
|
||||
|
||||
#### Clean all generated artifacts
|
||||
|
||||
`gradlew cleanAll`
|
||||
|
||||
#### Refresh the generated artifacts
|
||||
|
||||
`gradlew clean build`
|
||||
|
||||
#### Create an admin user account
|
||||
|
||||
Create an admin user with login name MyUserName and default password
|
||||
with value "ofbiz". Upon first login OFBiz will request changing the
|
||||
default password
|
||||
|
||||
`gradlew loadAdminUserLogin -PuserLoginId=MyUserName`
|
||||
|
||||
#### Compile Java using Xlint output
|
||||
|
||||
Xlint prints output of all warnings detected by the compiler
|
||||
|
||||
`gradlew -PXlint build`
|
||||
|
||||
#### Run OWASP tool to identify dependency vulnerabilities (CVEs)
|
||||
|
||||
The below command activates a gradle plugin (OWASP) and Identifies
|
||||
and reports known vulnerabilities (CVEs) in OFBiz library dependencies.
|
||||
The task takes time to complete, and once done, a report will be generated in
|
||||
$OFBIZ_HOME/build/reports/dependency-check-report.html
|
||||
|
||||
`gradlew -PenableOwasp dependencyCheckAnalyze`
|
||||
|
||||
#### Setup eclipse project for OFBiz
|
||||
|
||||
Setting up OFBiz on eclipse is done by simply running the below command
|
||||
and then importing the project to eclipse. This command will generate
|
||||
the necessary __.classpath__ and __.project__ files for eclipse and it
|
||||
will also make the source code for external libraries available in
|
||||
eclipse (i.e. you can view source through Ctrl + Click)
|
||||
|
||||
The first time you run this command it will take a long time to execute
|
||||
because it will download source packages available for project
|
||||
dependencies.
|
||||
|
||||
`gradlew eclipse`
|
||||
|
||||
* * * * * * * * * * *
|
||||
|
||||
OFBiz plugin system
|
||||
-------------------
|
||||
|
||||
OFBiz provides an extension mechanism through plugins. Plugins are standard
|
||||
OFBiz components that reside in the plugins directory. Plugins can be
|
||||
added manually or fetched from a maven repository. The standard tasks for
|
||||
managing plugins are listed below.
|
||||
|
||||
>_Note_: OFBiz plugin versions follow [Semantic Versioning 2.0.0](http://semver.org/)
|
||||
|
||||
### Pull (download and install) a plugin automatically
|
||||
|
||||
Download a plugin with all its dependencies (plugins) and install them one-by-one
|
||||
starting with the dependencies and ending with the plugin itself.
|
||||
|
||||
`gradlew pullPlugin -PdependencyId="org.apache.ofbiz.plugin:myplugin:0.1.0"`
|
||||
|
||||
If the plugin resides in a custom maven repository (not jcenter or localhost) then
|
||||
you can use specify the repository using below command:
|
||||
|
||||
`gradlew pullPlugin -PrepoUrl="http://www.example.com/custom-maven" -PdependencyId="org.apache.ofbiz.plugin:myplugin:0.1.0"`
|
||||
|
||||
If you need username and password to access the custom repository:
|
||||
|
||||
`gradlew pullPlugin -PrepoUrl="http://www.example.com/custom-maven" -PrepoUser=myuser -PrepoPassword=mypassword -PdependencyId="org.apache.ofbiz.plugin:myplugin:0.1.0"`
|
||||
|
||||
### Pull an official plugin from source control
|
||||
|
||||
Download an official plugin from source control (currently subversion) and place
|
||||
it in the plugins directory. In addition, this task also executes the "install"
|
||||
task if it is defined for the plugin being downloaded.
|
||||
|
||||
This task is mostly useful when working on the trunk branch
|
||||
as it pulls in the latest version of a plugin.
|
||||
|
||||
`gradlew pullPluginSource -PpluginId=ecommerce`
|
||||
|
||||
>_Note_: This plugin will have its own .svn directory placed inside the plugin directory.
|
||||
|
||||
### Pull all official plugins from source control
|
||||
|
||||
Download all officially supported plugins from source control (currently subversion)
|
||||
and place them inclusive of their ".svn" directory in /plugins. WARNING! This task
|
||||
deletes the /plugins directory and replaces it with the official plugins.
|
||||
|
||||
`gradlew pullAllPluginsSource`
|
||||
|
||||
This task makes it easy to download and develop officially supported plugins. It is
|
||||
mostly used by developers or individuals working on the trunk branch. We do not
|
||||
recommend using this task on releases of OFBiz, instead consider using the "pullPlugin"
|
||||
task to get the correct version of a plugin compatible with your release.
|
||||
|
||||
>_Note_: All the plugins will share a .svn directory placed in the plugins directory.
|
||||
|
||||
### Install a plugin
|
||||
|
||||
If you have a plugin called mycustomplugin and want to install it in OFBiz follow the
|
||||
below instructions:
|
||||
|
||||
- Extract the plugin if it is compressed
|
||||
- Place the extracted directory into /plugins
|
||||
- Run the below command
|
||||
|
||||
`gradlew installPlugin -PpluginId=myplugin`
|
||||
|
||||
The above commands executes the task "install" in the plugin's build.gradle
|
||||
file if it exists
|
||||
|
||||
### Uninstall a plugin
|
||||
|
||||
If you have an existing plugin called mycustomplugin and you wish to uninstall
|
||||
run the below command
|
||||
|
||||
`gradlew uninstallPlugin -PpluginId=myplugin`
|
||||
|
||||
The above command executes the task "uninstall" in the plugin's build.gradle
|
||||
file if it exists
|
||||
|
||||
### Remove a plugin
|
||||
|
||||
Calls __uninstallPlugin__ on an existing plugin and then delete it from the file-system
|
||||
|
||||
`gradlew removePlugin -PpluginId=myplugin`
|
||||
|
||||
### Create a new plugin
|
||||
|
||||
Create a new plugin. The following project parameters are passed:
|
||||
|
||||
- pluginId: mandatory
|
||||
- pluginResourceName: optional, default is the Capitalized value of pluginId
|
||||
- webappName: optional, default is the value of pluginId
|
||||
- basePermission: optional, default is the UPPERCASE value of pluginId
|
||||
|
||||
`gradlew createPlugin -PpluginId=myplugin`
|
||||
|
||||
`gradlew createPlugin -PpluginId=myplugin -PpluginResourceName=MyPlugin -PwebappName=mypluginweb -PbasePermission=MYSECURITY`
|
||||
|
||||
The above command creates a new plugin in /plugins/myplugin
|
||||
|
||||
### Push a plugin to a repository
|
||||
|
||||
This task publishes an OFBiz plugin into a maven package and then uploads it to
|
||||
a maven repository. Currently, pushing is limited to localhost maven repository
|
||||
(work in progress). To push a plugin the following parameters are passed:
|
||||
|
||||
- pluginId: mandatory
|
||||
- groupId: optional, defaults to org.apache.ofbiz.plugin
|
||||
- pluginVersion: optional, defaults to 0.1.0-SNAPSHOT
|
||||
- pluginDescription: optional, defaults to "Publication of OFBiz plugin ${pluginId}"
|
||||
|
||||
`gradlew pushPlugin -PpluginId=myplugin`
|
||||
|
||||
`gradlew pushPlugin -PpluginId=mycompany -PpluginGroup=com.mycompany.ofbiz.plugin -PpluginVersion=1.2.3 -PpluginDescription="Introduce special functionality X"`
|
||||
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
Miscellaneous Documentation
|
||||
---------------------------
|
||||
### Further reading
|
||||
* [Known issues](https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-Knownissues "Known issues")
|
||||
|
||||
### Repository and directory structure
|
||||
|
||||
OFBiz is split into two repositories:
|
||||
|
||||
- **ofbiz-framework**: Contains the core framework and main applications in
|
||||
the system like accounting, party, order, etc
|
||||
|
||||
- **ofbiz-plugins**: Renamed from "special-purpose" and contains optional
|
||||
components that are officially supported by the community
|
||||
|
||||
Furthermore, the hot-deploy directory is removed as the plugins directory works
|
||||
as a replacement for both "special-purpose" and "hot-deploy".
|
||||
|
||||
If you need to load the components in the plugins directory in a specific order
|
||||
place a component-load.xml file in the plugins directory listing the order.
|
||||
|
||||
To check out a plugin from source control use the **pullPluginSource** Gradle task.
|
||||
To check out all plugins from source control use the **pullAllPluginsSource**.
|
||||
**Beware** this deletes a previously existing plugins directory.
|
||||
|
||||
### Running gradle tasks without an internet connection
|
||||
|
||||
OFBiz must run with an internet connection the **first time** it is prepared on
|
||||
the system because it needs to download all the required dependencies.
|
||||
|
||||
After preparing OFBiz the first time correctly, it is possible to run OFBiz
|
||||
without an internet connection by using the `--offline` command line switch
|
||||
which tells Gradle to fetch its dependencies from the cache.
|
||||
|
||||
If any dependencies are missing from the cache and you pass `--offline` switch
|
||||
then the build execution will fail.
|
||||
|
||||
### Setup an external database like MySQL, PostgreSQL, etc
|
||||
|
||||
To setup an external database instead of the default embedded Apache Derby, you
|
||||
will need to follow the following instructions:
|
||||
|
||||
1. Find the JDBC driver suitable for your database using one of the following
|
||||
options:
|
||||
* Search for the JDBC driver in [jcenter](https://bintray.com/bintray/jcenter)
|
||||
and place it in build.gradle dependencies e.g.
|
||||
`runtime 'mysql:mysql-connector-java:5.1.36'`
|
||||
|
||||
OR
|
||||
|
||||
* Download the JDBC driver jar and place it in $OFBIZ_HOME/lib or the lib
|
||||
sub-directory of any component
|
||||
|
||||
2. Modify the entityengine.xml file located in $OFBIZ_HOME/framework/entity/config
|
||||
to switch the default database to the one you selected. For more details you
|
||||
can read the relevant section in the
|
||||
[technical setup guide](https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide)
|
||||
|
||||
### Setup gradle tab-completion on Unix-like systems:
|
||||
|
||||
To get tab completion (auto complete gradle commands by pressing tab)
|
||||
you can download the script from the below link and place it in the
|
||||
appropriate location for your system.
|
||||
|
||||
[Gradle tab completion](https://edub.me/gradle-completion-bash)
|
||||
|
||||
For example, on debian based systems, you can use the following command:
|
||||
|
||||
`sudo curl -L -s https://edub.me/gradle-completion-bash -o /etc/bash_completion.d/gradle-tab-completion.bash`
|
||||
|
||||
|
||||
* * * * * * * * * * * *
|
||||
|
||||
Crypto 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
|
||||
check your country's laws, regulations and policies concerning the
|
||||
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
|
||||
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
|
||||
code and source code.
|
||||
|
||||
The following provides more details on the included cryptographic
|
||||
software:
|
||||
|
||||
- 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
|
||||
Extensions API)
|
||||
- Other classes such as HttpClient and various related ones use
|
||||
the JSSE (Java Secure Sockets Extension) API
|
||||
@@ -33,7 +33,7 @@ under the License.
|
||||
organizationPartyId="Company" ownerPartyId="Company" postToGlAccountId="231000" isRefundable="Y" replenishLevel="0.00" actualBalance="0.00" availableBalance="0.00"/>
|
||||
<FinAccountStatus finAccountId="AMEX_01" statusId="FNACT_ACTIVE" statusDate="2009-04-01 00:00:01.000"/>
|
||||
<PaymentMethod paymentMethodId="AMEX_01" paymentMethodTypeId="CREDIT_CARD" partyId="Company" description="AmEx 0005" glAccountId="231000" finAccountId="AMEX_01" fromDate="2009-04-01 00:00:00.000"/>
|
||||
<CreditCard paymentMethodId="AMEX_01" cardType="CCT_AMERICANEXPRESS" cardNumber="378282246310005" expireDate="02/2020" companyNameOnCard="Your Company Name"
|
||||
<CreditCard paymentMethodId="AMEX_01" cardType="CCT_AMERICANEXPRESS" cardNumber="378282246310005" expireDate="02/2120" companyNameOnCard="Your Company Name"
|
||||
titleOnCard="" firstNameOnCard="Smart" middleNameOnCard="" lastNameOnCard="Guy" suffixOnCard="" contactMechId="9000"/>
|
||||
<PaymentMethod paymentMethodId="PETTY_CASH" paymentMethodTypeId="CASH" partyId="Company" description="Petty Cash" glAccountId="110000" fromDate="2009-04-01 00:00:00.000"/>
|
||||
|
||||
|
||||
@@ -78,8 +78,8 @@ under the License.
|
||||
<!-- 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="quickCreateAcctgTransAndEntries.debitGlAccountId" from-field="glAccountId"/>
|
||||
<set field="quickCreateAcctgTransAndEntries.creditGlAccountId" from-field="parameters.glAccountId"/>
|
||||
<set field="quickCreateAcctgTransAndEntries.debitGlAccountId" from-field="parameters.glAccountId"/>
|
||||
<set field="quickCreateAcctgTransAndEntries.creditGlAccountId" from-field="glAccountId"/>
|
||||
<set field="quickCreateAcctgTransAndEntries.acctgTransTypeId" value="PAYMENT_ACCTG_TRANS"/>
|
||||
</then>
|
||||
</else-if>
|
||||
@@ -89,6 +89,12 @@ under the License.
|
||||
<!-- 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 -->
|
||||
<if-compare field="finAccountTrans.amount" operator="less" value="0">
|
||||
<calculate field="quickCreateAcctgTransAndEntries.amount" decimal-scale="${ledgerDecimals}" rounding-mode="${roundingMode}">
|
||||
<calcop operator="multiply">
|
||||
<calcop operator="get" field="quickCreateAcctgTransAndEntries.amount"/>
|
||||
<number value="-1"/>
|
||||
</calcop>
|
||||
</calculate>
|
||||
<set field="quickCreateAcctgTransAndEntries.debitGlAccountId" from-field="parameters.glAccountId"/>
|
||||
<set field="quickCreateAcctgTransAndEntries.creditGlAccountId" from-field="glAccountId"/>
|
||||
<set field="quickCreateAcctgTransAndEntries.acctgTransTypeId" value="OUTGOING_PAYMENT"/>
|
||||
|
||||
@@ -70,7 +70,8 @@ under the License.
|
||||
<field-map field-name="finAccountId" value="1002"/>
|
||||
</entity-one>
|
||||
<assert>
|
||||
<if-empty field="finAccount"/>
|
||||
<not><if-empty field="finAccount"/></not>
|
||||
<not><if-empty field="finAccount.thruDate"/></not>
|
||||
</assert>
|
||||
<check-errors/>
|
||||
</simple-method>
|
||||
|
||||
@@ -48,7 +48,7 @@ under the License.
|
||||
<attribute name="replenishPaymentId" type="String" mode="OUT" optional="true"/>
|
||||
<attribute name="replenishLevel" type="BigDecimal" mode="OUT" optional="true"/>
|
||||
</service>
|
||||
<service name="deleteFinAccount" default-entity-name="FinAccount" engine="entity-auto" invoke="delete">
|
||||
<service name="deleteFinAccount" default-entity-name="FinAccount" engine="entity-auto" invoke="expire">
|
||||
<description>Delete a Financial Account</description>
|
||||
<auto-attributes mode="IN" optional="false" include="pk"/>
|
||||
</service>
|
||||
|
||||
@@ -137,7 +137,7 @@ under the License.
|
||||
location="component://accounting/minilang/ledger/GeneralLedgerServices.xml" invoke="updateGlReconciliation" auth="true">
|
||||
<description>Update a GlReconciliation record</description>
|
||||
<permission-service service-name="basicGeneralLedgerPermissionCheck" main-action="UPDATE"/>
|
||||
<auto-attributes include="pk" mode="IN" optional="false"/>
|
||||
<auto-attributes include="pk" mode="INOUT" optional="false"/>
|
||||
<auto-attributes include="nonpk" mode="IN" optional="true">
|
||||
<exclude field-name="createdByUserLogin"/>
|
||||
<exclude field-name="lastModifiedByUserLogin"/>
|
||||
@@ -556,7 +556,7 @@ under the License.
|
||||
<attribute name="customTimePeriodId" mode="IN" type="String"/>
|
||||
<attribute name="previousTimePeriod" mode="OUT" type="Map" optional="true"/>
|
||||
</service>
|
||||
<service name="getAcctgTransEntriesAndTransTotal" engine="simple" invoke="getAcctgTransEntriesAndTransTotal"
|
||||
<service name="getAcctgTransEntriesAndTransTotal" engine="simple" invoke="getAcctgTransEntriesAndTransTotal"
|
||||
location="component://accounting/minilang/ledger/AcctgTransServices.xml" auth="true">
|
||||
<description>Given AcctgTransAndEntire and Calculate acctg trans total for specific time period.</description>
|
||||
<attribute name="customTimePeriodStartDate" mode="IN" type="Timestamp"/>
|
||||
@@ -581,7 +581,7 @@ under the License.
|
||||
<attribute name="debitCreditDifference" type="BigDecimal" mode="OUT"/>
|
||||
</service>
|
||||
|
||||
<service name="revertAcctgTransOnCancelInvoice" engine="simple"
|
||||
<service name="revertAcctgTransOnCancelInvoice" engine="simple"
|
||||
location="component://accounting/minilang/ledger/AcctgTransServices.xml" invoke="revertAcctgTransOnCancelInvoice" auth="true">
|
||||
<description>Reverting Accounting Transaction And Entries on Canceling an Invoice</description>
|
||||
<attribute name="invoiceId" mode="IN" type="String" optional="false"/>
|
||||
@@ -589,7 +589,7 @@ under the License.
|
||||
<service name="revertAcctgTransOnRemovePaymentApplications" engine="simple"
|
||||
location="component://accounting/minilang/ledger/AcctgTransServices.xml" invoke="revertAcctgTransOnRemovePaymentApplications" auth="true">
|
||||
<description>Create Reverse Accounting Transaction and Entries on removing PaymentApplication records.</description>
|
||||
<attribute name="paymentApplicationId" mode="IN" type="String" optional="false"/>
|
||||
<attribute name="paymentApplicationId" mode="IN" type="String" optional="false"/>
|
||||
</service>
|
||||
|
||||
<service name="createGlAccountCategory" engine="entity-auto" default-entity-name="GlAccountCategory" invoke="create" auth="true">
|
||||
@@ -656,7 +656,7 @@ under the License.
|
||||
<attribute name="oldStatusId" type="String" mode="OUT" optional="true"/>
|
||||
</service>
|
||||
|
||||
<service name="createUpdateCostCenter" engine="java" auth="true" invoke="createUpdateCostCenter"
|
||||
<service name="createUpdateCostCenter" engine="java" auth="true" invoke="createUpdateCostCenter"
|
||||
location="org.apache.ofbiz.accounting.ledger.GeneralLedgerServices">
|
||||
<description>Create Update CostCenters</description>
|
||||
<attribute name="glAccountId" mode="IN" type="String"/>
|
||||
|
||||
@@ -298,6 +298,11 @@ under the License.
|
||||
<input type="text" size='14' name='fromDate' />
|
||||
<span class="label">${uiLabelMap.CommonThruDate}</span>
|
||||
<input type="text" size='14' name='thruDate' />
|
||||
<span class="label">${uiLabelMap.FormFieldTitle_isClosed}:</span>
|
||||
<select name="isClosed">
|
||||
<option value="N">${uiLabelMap.CommonN}</option>
|
||||
<option value="Y">${uiLabelMap.CommonY}</option>
|
||||
</select>
|
||||
<input type="submit" value="${uiLabelMap.CommonAdd}" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Accounting Manager</display-name>
|
||||
<description>Accounting Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -62,6 +62,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -70,6 +75,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -15,7 +15,7 @@ KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Account Payable</display-name>
|
||||
<description>Accounting Payable Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -58,6 +58,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -66,6 +71,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
<!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Account Receivable</display-name>
|
||||
<description>Accounting Receivable Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -62,6 +62,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -70,6 +75,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -165,7 +165,7 @@ under the License.
|
||||
<field name="submitButton" title="${uiLabelMap.CommonFind}" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
|
||||
<form name="ListPayment" list-name="listIt" title="" paginate-target="LookupPayment"
|
||||
<form name="ListPayment" list-name="listIt" title="" type="list" paginate-target="LookupPayment"
|
||||
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
|
||||
<actions>
|
||||
<service service-name="performFind" result-map="result" result-map-list="listIt">
|
||||
|
||||
@@ -18,7 +18,7 @@ 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"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindFinAccounts" type="single" target="FindFinAccount"
|
||||
@@ -73,7 +73,7 @@ under the License.
|
||||
<parameter param-name="partyId" from-field="ownerPartyId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="deleteLink" title=" " widget-style="buttontext">
|
||||
<field name="deleteLink" title=" " widget-style="buttontext" use-when="thruDate==null">
|
||||
<hyperlink description="${uiLabelMap.CommonDelete}" target="deleteFinAccount" also-hidden="false">
|
||||
<parameter param-name="finAccountId"/>
|
||||
</hyperlink>
|
||||
@@ -336,7 +336,7 @@ under the License.
|
||||
<field name="glReconciliationId" position="2">
|
||||
<drop-down allow-empty="true">
|
||||
<option key="_NA_" description="${uiLabelMap.CommonNotAssigned}"/>
|
||||
<list-options list-name="glReconciliations" key-name="glReconciliationId"
|
||||
<list-options list-name="glReconciliations" key-name="glReconciliationId"
|
||||
description="${glReconciliationName}[[${glReconciliationId}] [${reconciledDate}] [${reconciledBalance}]]"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
@@ -346,17 +346,17 @@ under the License.
|
||||
<field name="thruEntryDate" position="2"><date-time/></field>
|
||||
<field name="searchButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
</form>
|
||||
<form name="FindBankReconciliationFinAcctTrans" target="BankReconciliation"
|
||||
<form name="FindBankReconciliationFinAcctTrans" target="BankReconciliation"
|
||||
extends="FindFinAccountTransactions">
|
||||
<field name="statusId" title="${uiLabelMap.CommonStatus}"><display-entity entity-name="StatusItem"/></field>
|
||||
<field name="glReconciliationId" position="2">
|
||||
<drop-down>
|
||||
<list-options list-name="glReconciliations" key-name="glReconciliationId"
|
||||
<list-options list-name="glReconciliations" key-name="glReconciliationId"
|
||||
description="${glReconciliationName}[[${glReconciliationId}] [${reconciledDate}] [${reconciledBalance}]]"/>
|
||||
</drop-down>
|
||||
</field>
|
||||
</form>
|
||||
<form name="EditDepositPayment" extends="EditPayment"
|
||||
<form name="EditDepositPayment" extends="EditPayment"
|
||||
extends-resource="component://accounting/widget/PaymentForms.xml" target="createDepositPayment">
|
||||
<actions>
|
||||
<entity-one entity-name="FinAccount" value-field="finAccount"/>
|
||||
@@ -400,12 +400,8 @@ under the License.
|
||||
</actions>
|
||||
<alt-target use-when="glReconciliationId != null" target="updateFinAccountGlReconciliation"/>
|
||||
<field name="finAccountId"><hidden value="${finAccountId}"/></field>
|
||||
<field name="glReconciliationId" use-when="glReconciliationId == null"><ignored/></field>
|
||||
<field name="glReconciliationId" use-when="glReconciliationId != null"><display/></field>
|
||||
<field name="glAccountId"><hidden value="${finAccount.postToGlAccountId}"/></field>
|
||||
<field name="organizationPartyId"><lookup target-form-name="LookupPartyName"/></field>
|
||||
<field name="reconciledBalance" use-when="${reconciledBalance == null}"><hidden/></field>
|
||||
<field name="reconciledBalance" use-when=""GLREC_RECONCILED".equals("${glReconciliation.statusId}")"><display type="currency" currency="${defaultOrganizationPartyCurrencyUomId}"/></field>
|
||||
<field name="reconciledDate" title="${uiLabelMap.AccountingReconciliationDate}"><date-time/></field>
|
||||
<field name="createButton" use-when="glReconciliationId == null" widget-style="smallSubmit">
|
||||
<submit button-type="button"/>
|
||||
|
||||
@@ -18,7 +18,7 @@ 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"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="FindAcctgTrans" target="FindAcctgTrans" type="single" title="" default-map-name="journal"
|
||||
@@ -763,7 +763,7 @@ under the License.
|
||||
<field name="description"><textarea/></field>
|
||||
<field name="createButton" widget-style="smallSubmit"><submit button-type="button"/></field>
|
||||
<sort-order>
|
||||
<sort-field name="organizationPartyId"/>
|
||||
<sort-field name="organizationPartyId"/>
|
||||
<sort-field name="acctgTransTypeId"/>
|
||||
<sort-field name="glFiscalTypeId"/>
|
||||
<sort-field name="glJournalId"/>
|
||||
@@ -861,7 +861,7 @@ under the License.
|
||||
</field>
|
||||
<field name="reconciledDate"><date-time/></field>
|
||||
<field name="organizationPartyId"><display/></field>
|
||||
<field name="reconciledBalance"><display/></field>
|
||||
<field name="reconciledBalance" use-when=""GLREC_RECONCILED".equals("${glReconciliation.statusId}")"><display type="currency" currency="${defaultOrganizationPartyCurrencyUomId}"/></field>
|
||||
<field name="openingBalance" use-when="${groovy:'GLREC_RECONCILED'.equals(glReconciliation?.statusId)}"><display/></field>
|
||||
<field use-when="glReconciliationId!=null" name="updateButton" title="${uiLabelMap.CommonUpdate}" widget-style="buttontext" ><submit button-type="text-link"/></field>
|
||||
</form>
|
||||
|
||||
@@ -18,7 +18,7 @@ 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"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
|
||||
<form name="ListCompanies" type="list" title="Internal Organizations" list-name="parties"
|
||||
@@ -370,7 +370,7 @@ under the License.
|
||||
</field>
|
||||
<field name="errorGlJournalId" tooltip="${groovy: import org.apache.ofbiz.base.util.UtilProperties;
|
||||
if((partyAcctgPreference==null&&aggregatedPartyAcctgPreference!= null&&aggregatedPartyAcctgPreference.get('errorGlJournalId')!=null) ||
|
||||
(partyAcctgPreference!=null&&partyAcctgPreference.get('errorGlJournalId')==null&&aggregatedPartyAcctgPreference!= null&&aggregatedPartyAcctgPreference.get('errorGlJournalId')!=null))return
|
||||
(partyAcctgPreference!=null&&partyAcctgPreference.get('errorGlJournalId')==null&&aggregatedPartyAcctgPreference!= null&&aggregatedPartyAcctgPreference.get('errorGlJournalId')!=null))return
|
||||
(UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue', locale))}">
|
||||
<drop-down allow-empty="true">
|
||||
<entity-options entity-name="GlJournal" key-field-name="glJournalId" description="${glJournalName} [${glJournalId}]">
|
||||
@@ -1103,7 +1103,7 @@ under the License.
|
||||
<field name="glAccountClassId"><display-entity entity-name="GlAccountClass" key-field-name="glAccountClassId"/></field>
|
||||
<field name="glResourceTypeId"><display-entity entity-name="GlResourceType" key-field-name="glResourceTypeId"/></field>
|
||||
<field name="glXbrlClassId"><display-entity entity-name="GlXbrlClass" key-field-name="glXbrlClassId"/></field>
|
||||
<field name="parentGlAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${parentGlAccountId}"/></field>
|
||||
<field name="parentGlAccountId"><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${parentGlAccountId}"/></field>
|
||||
<field name="accountCode" ><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountCode}"/></field>
|
||||
<field name="accountName" ><display-entity entity-name="GlAccount" key-field-name="glAccountId" description="${accountName}"/></field>
|
||||
<field name="description"><display description="${description}"/></field>
|
||||
|
||||
@@ -891,6 +891,11 @@ under the License.
|
||||
<set field="fromDate" from-field="parameters.fromDate" type="Timestamp"/>
|
||||
<set field="thruDate" from-field="parameters.thruDate" type="Timestamp"/>
|
||||
<set field="glFiscalTypeId" from-field="parameters.glFiscalTypeId" default-value="ACTUAL"/>
|
||||
<service service-name="getPartyAccountingPreferences" result-map="result">
|
||||
<field-map field-name="organizationPartyId" value="${groovy:parameters.get('ApplicationDecorator|organizationPartyId')}"/>
|
||||
</service>
|
||||
<set field="partyAcctgPreference" from-field="result.partyAccountingPreference"/>
|
||||
<set field="currencyUomId" from-field="partyAcctgPreference.baseCurrencyUomId"/>
|
||||
<script location="component://accounting/groovyScripts/reports/IncomeStatement.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Setup Manager</display-name>
|
||||
<description>Setup Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -57,6 +57,11 @@
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -65,6 +70,10 @@
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
-->
|
||||
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Empty placeholder</display-name>
|
||||
<description>Empty placeholder, see http://svn.apache.org/viewvc?view=revision&revision=1612202 </description>
|
||||
</web-app>
|
||||
|
||||
@@ -81,7 +81,7 @@ function setKeyAsParameter(event, ui) {
|
||||
function getAssociatedStateList(countryId, stateId, errorId, divId) {
|
||||
var countryGeoId = jQuery("#" + countryId).val();
|
||||
var requestToSend = "getAssociatedStateList";
|
||||
if (jQuery('#orderViewed')) {
|
||||
if (jQuery('#orderViewed').length) {
|
||||
requestToSend = "/ordermgr/control/getAssociatedStateList"
|
||||
}
|
||||
jQuery.ajax({
|
||||
|
||||
@@ -101,7 +101,6 @@
|
||||
<if-not-empty field="parameters.summaryData">
|
||||
<!-- create the summary data -->
|
||||
<set field="createSummary.dataResourceTypeId" value="ELECTRONIC_TEXT"/>
|
||||
<set field="createSummary.contentPurposeTypeId" value="ARTICLE"/>
|
||||
<set field="createSummary.dataTemplateTypeId" value="NONE"/>
|
||||
<set field="createSummary.mapKey" value="SUMMARY"/>
|
||||
<set field="createSummary.ownerContentId" from-field="ownerContentId"/>
|
||||
|
||||
@@ -771,83 +771,6 @@
|
||||
<field-to-result field="contentId"/>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="getSubContentWithPermCheck" short-description="Get sub content and perform permission check on each record">
|
||||
|
||||
<set field="filterByDate" from-field="parameters.filterByDate" default-value="true" type="Boolean"/>
|
||||
<set field="useCache" from-field="parameters.useCache" default-value="true" type="Boolean"/>
|
||||
<entity-condition entity-name="ContentAssocViewTo" list="viewList" filter-by-date="${filterByDate}" use-cache="${useCache}">
|
||||
<condition-list combine="and">
|
||||
<condition-expr field-name="contentIdStart" from-field="parameters.contentId"/>
|
||||
<condition-expr field-name="caContentAssocTypeId" from-field="parameters.contentAssocTypeId" ignore-if-empty="true"/>
|
||||
<condition-expr field-name="caMapKey" from-field="parameters.mapKey" ignore-if-empty="true"/>
|
||||
</condition-list>
|
||||
</entity-condition>
|
||||
|
||||
<iterate list="viewList" entry="view">
|
||||
<set field="hasPermission" value="true" type="Boolean"/>
|
||||
<if>
|
||||
<condition>
|
||||
<and>
|
||||
<not>
|
||||
<if-empty field="parameters.mainAction"/>
|
||||
</not>
|
||||
<not>
|
||||
<if-empty field="parameters.userLogin"/>
|
||||
</not>
|
||||
</and>
|
||||
</condition>
|
||||
<then>
|
||||
<set field="inMap.contentId" from-field="parameters.contentId"/>
|
||||
<set field="inMap.mainAction" from-field="parameters.mainAction"/>
|
||||
<set field="inMap.userLogin" from-field="parameters.userLogin"/>
|
||||
<set field="inMap.contentOperationId" from-field="parameters.contentOperationId" default-value="CONTENT_CREATE"/>
|
||||
<call-service service-name="genericContentPermission" in-map-name="inMap" include-user-login="true">
|
||||
<result-to-field result-name="hasPermission"/>
|
||||
</call-service>
|
||||
</then>
|
||||
</if>
|
||||
<if-compare field="hasPermission" operator="equals" value="true" type="Boolean">
|
||||
<set field="contentViewList[]" from-field="view"/>
|
||||
</if-compare>
|
||||
</iterate>
|
||||
<field-to-result field="contentViewList" result-name="subContentList"/>
|
||||
|
||||
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="getSubSubContentWithPermCheck" short-description="Get sub content and perform permission check on each record">
|
||||
|
||||
<set-service-fields service-name="getSubContentWithPermCheck" map="parameters" to-map="inMap"/>
|
||||
<call-service service-name="getSubContentWithPermCheck" in-map-name="inMap">
|
||||
<result-to-field result-name="subContentList"/>
|
||||
</call-service>
|
||||
|
||||
<iterate list="subContentList" entry="view">
|
||||
<entity-condition list="viewList" entity-name="ContentAssocViewTo" filter-by-date="true" use-cache="${useCache}">
|
||||
<condition-list combine="and">
|
||||
<condition-expr field-name="contentIdStart" from-field="view.caContentIdTo"/>
|
||||
<condition-expr field-name="caContentAssocTypeId" from-field="parameters.subContentAssocTypeId" ignore-if-empty="true"/>
|
||||
<condition-expr field-name="caMapKey" from-field="parameters.subMapKey" ignore-if-empty="true"/>
|
||||
</condition-list>
|
||||
</entity-condition>
|
||||
<clear-field field="view2"/>
|
||||
<first-from-list list="viewList" entry="view2"/>
|
||||
<clear-field field="map"/>
|
||||
<set field="map.contentIdFrom" from-field="view.contentId"/>
|
||||
<set field="map.dataResourceIdFrom" from-field="view.dataResourceId"/>
|
||||
<set field="map.contentId" from-field="view2.contentId"/>
|
||||
<set field="map.contentName" from-field="view2.contentName"/>
|
||||
<set field="map.description" from-field="view2.description"/>
|
||||
<entity-one entity-name="ElectronicText" value-field="electronicText">
|
||||
<field-map field-name="dataResourceId" from-field="view2.dataResourceId"/>
|
||||
</entity-one>
|
||||
<set field="map.textData" from-field="electronicText.textData"/>
|
||||
<set field="contentViewList[]" from-field="map"/>
|
||||
</iterate>
|
||||
<field-to-result field="subContentList" result-name="subContentList"/>
|
||||
<field-to-result field="contentViewList" result-name="subSubContentList"/>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="forceIndexContentKeywords" short-description="induce all the keywords of a content">
|
||||
<entity-one entity-name="Content" value-field="content"/>
|
||||
<call-class-method class-name="org.apache.ofbiz.content.content.ContentKeywordIndex" method-name="forceIndexKeywords">
|
||||
|
||||
@@ -40,33 +40,6 @@
|
||||
<attribute mode="OUT" name="resultData" optional="true" type="java.util.Map"/>
|
||||
</service>
|
||||
|
||||
<service name="getSubContentWithPermCheck" engine="simple" auth="true"
|
||||
location="component://content/minilang/content/ContentServices.xml" invoke="getSubContentWithPermCheck">
|
||||
<description>Get Content and resource information</description>
|
||||
<permission-service service-name="genericContentPermission" main-action="VIEW"/>
|
||||
<attribute mode="IN" name="contentId" optional="false" type="String">
|
||||
<type-validate>
|
||||
<fail-property resource="ContentErrorUiLabels" property="ContentRequiredFieldMissingContentId"/>
|
||||
</type-validate>
|
||||
</attribute>
|
||||
<attribute mode="IN" name="contentAssocTypeId" optional="true" type="String"/>
|
||||
<attribute mode="IN" name="mapKey" optional="true" type="String"/>
|
||||
<attribute mode="IN" name="mainAction" optional="true" type="String"/>
|
||||
<attribute mode="IN" name="contentOperationId" optional="true" type="String"/>
|
||||
<attribute mode="IN" name="useCache" optional="true" type="Boolean"/>
|
||||
<attribute mode="IN" name="filterByDate" optional="true" type="Boolean"/>
|
||||
<attribute mode="OUT" name="subContentList" optional="true" type="java.util.List"/>
|
||||
</service>
|
||||
|
||||
<service name="getSubSubContentWithPermCheck" engine="simple" auth="true"
|
||||
location="component://content/minilang/content/ContentServices.xml" invoke="getSubSubContentWithPermCheck">
|
||||
<description>Get Content associated with Content</description>
|
||||
<implements service="getSubContentWithPermCheck"/>
|
||||
<attribute mode="IN" name="subContentAssocTypeId" optional="true" type="String"/>
|
||||
<attribute mode="IN" name="subMapKey" optional="true" type="String"/>
|
||||
<attribute mode="OUT" name="subSubContentList" optional="true" type="java.util.List"/>
|
||||
</service>
|
||||
|
||||
<service name="getContentAndDataResource" engine="simple" default-entity-name="Content" auth="true"
|
||||
location="component://content/minilang/content/ContentServices.xml" invoke="getContentAndDataResource">
|
||||
<description>Get Content and resource information</description>
|
||||
|
||||
+150
-115
@@ -18,6 +18,8 @@
|
||||
*******************************************************************************/
|
||||
package org.apache.ofbiz.content;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.math.BigDecimal;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.sql.Timestamp;
|
||||
@@ -29,6 +31,7 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.imaging.ImageReadException;
|
||||
import org.apache.ofbiz.base.util.Debug;
|
||||
import org.apache.ofbiz.base.util.StringUtil;
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
@@ -260,7 +263,7 @@ public class ContentManagementServices {
|
||||
}
|
||||
// Do update and create permission checks on Content if warranted.
|
||||
|
||||
context.put("skipPermissionCheck", null); // Force check here
|
||||
context.put("skipPermissionCheck", null); // Force check here
|
||||
boolean contentExists = true;
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in persist... contentTypeId:" + contentTypeId + " dataResourceTypeId:" + dataResourceTypeId + " contentId:" + contentId + " dataResourceId:" + dataResourceId, module);
|
||||
@@ -271,7 +274,9 @@ public class ContentManagementServices {
|
||||
} else {
|
||||
try {
|
||||
GenericValue val = EntityQuery.use(delegator).from("Content").where("contentId", contentId).queryOne();
|
||||
if (val == null) contentExists = false;
|
||||
if (val == null) {
|
||||
dataResourceExists = false;
|
||||
}
|
||||
} catch (GenericEntityException e) {
|
||||
return ServiceUtil.returnError(e.toString());
|
||||
}
|
||||
@@ -403,9 +408,8 @@ public class ContentManagementServices {
|
||||
}
|
||||
|
||||
/**
|
||||
Service for update publish sites with a ContentRole that will tie them to the passed
|
||||
in party.
|
||||
*/
|
||||
* Service for update publish sites with a ContentRole that will tie them to the passed in party.
|
||||
*/
|
||||
public static Map<String, Object> updateSiteRoles(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
LocalDispatcher dispatcher = dctx.getDispatcher();
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
@@ -461,7 +465,7 @@ public class ContentManagementServices {
|
||||
String errMsg = ServiceUtil.getErrorMessage(permResults);
|
||||
if (UtilValidate.isNotEmpty(errMsg)) {
|
||||
return ServiceUtil.returnError(errMsg);
|
||||
}
|
||||
}
|
||||
} catch (GenericServiceException e) {
|
||||
Debug.logError(e, e.toString(), module);
|
||||
return ServiceUtil.returnError(e.toString());
|
||||
@@ -529,17 +533,24 @@ public class ContentManagementServices {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static Map<String, Object> persistDataResourceAndDataMethod(DispatchContext dctx, Map<String, ? extends Object> rcontext) throws GenericServiceException, GenericEntityException, Exception {
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
LocalDispatcher dispatcher = dctx.getDispatcher();
|
||||
Map<String, Object> context = UtilMisc.makeMapWritable(rcontext);
|
||||
Map<String, Object> result = new HashMap<String, Object>();
|
||||
Map<String, Object> newDrContext = new HashMap<String, Object>();
|
||||
GenericValue dataResource = delegator.makeValue("DataResource");
|
||||
dataResource.setPKFields(context);
|
||||
dataResource.setNonPKFields(context);
|
||||
dataResource.setAllFields(context, false, "dr", null);
|
||||
context.putAll(dataResource);
|
||||
public static Map<String, Object> persistDataResourceAndDataMethod(DispatchContext dctx, Map<String, ? extends Object> rcontext)
|
||||
throws GenericServiceException, GenericEntityException {
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
LocalDispatcher dispatcher = dctx.getDispatcher();
|
||||
Map<String, Object> context = UtilMisc.makeMapWritable(rcontext);
|
||||
|
||||
String errorMessage = validateUploadedFile(dctx, context);
|
||||
if (errorMessage != null) {
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
Map<String, Object> newDrContext = new HashMap<>();
|
||||
GenericValue dataResource = delegator.makeValue("DataResource");
|
||||
dataResource.setPKFields(context);
|
||||
dataResource.setNonPKFields(context);
|
||||
dataResource.setAllFields(context, false, "dr", null);
|
||||
context.putAll(dataResource);
|
||||
|
||||
GenericValue electronicText = delegator.makeValue("ElectronicText");
|
||||
electronicText.setPKFields(context);
|
||||
@@ -583,100 +594,102 @@ public class ContentManagementServices {
|
||||
newDrContext.put("mimeTypeId", mimeTypeId);
|
||||
}
|
||||
|
||||
if (!dataResourceExists) { // Create
|
||||
Map<String, Object> thisResult = dispatcher.runSync("createDataResource", newDrContext);
|
||||
String errorMsg = ServiceUtil.getErrorMessage(thisResult);
|
||||
if (UtilValidate.isNotEmpty(errorMsg)) {
|
||||
throw(new Exception(errorMsg));
|
||||
}
|
||||
dataResourceId = (String)thisResult.get("dataResourceId");
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in persist... dataResourceId(0):" + dataResourceId, module);
|
||||
}
|
||||
dataResource = (GenericValue)thisResult.get("dataResource");
|
||||
Map<String, Object> fileContext = new HashMap<String, Object>();
|
||||
fileContext.put("userLogin", userLogin);
|
||||
if ("IMAGE_OBJECT".equals(dataResourceTypeId)) {
|
||||
if (imageDataBytes != null) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("imageData", imageDataBytes);
|
||||
thisResult = dispatcher.runSync("createImage", fileContext);
|
||||
errorMsg = ServiceUtil.getErrorMessage(thisResult);
|
||||
if (UtilValidate.isNotEmpty(errorMsg)) {
|
||||
return ServiceUtil.returnError(errorMsg);
|
||||
}
|
||||
}
|
||||
} else if ("SHORT_TEXT".equals(dataResourceTypeId)) {
|
||||
} else if ("SURVEY".startsWith(dataResourceTypeId)) {
|
||||
} else if ("_FILE".indexOf(dataResourceTypeId) >=0) {
|
||||
Map<String, Object> uploadImage = new HashMap<String, Object>();
|
||||
uploadImage.put("userLogin", userLogin);
|
||||
uploadImage.put("dataResourceId", dataResourceId);
|
||||
uploadImage.put("dataResourceTypeId", dataResourceTypeId);
|
||||
uploadImage.put("rootDir", context.get("objectInfo"));
|
||||
uploadImage.put("uploadedFile", imageDataBytes);
|
||||
uploadImage.put("_uploadedFile_fileName", (String) context.get("_imageData_fileName"));
|
||||
uploadImage.put("_uploadedFile_contentType", (String) context.get("_imageData_contentType"));
|
||||
dispatcher.runSync("attachUploadToDataResource", uploadImage);
|
||||
} else {
|
||||
// assume ELECTRONIC_TEXT
|
||||
if (UtilValidate.isNotEmpty(textData)) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("textData", textData);
|
||||
thisResult = dispatcher.runSync("createElectronicText", fileContext);
|
||||
errorMsg = ServiceUtil.getErrorMessage(thisResult);
|
||||
if (UtilValidate.isNotEmpty(errorMsg)) {
|
||||
return ServiceUtil.returnError(errorMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { // Update
|
||||
Map<String, Object> thisResult = dispatcher.runSync("updateDataResource", newDrContext);
|
||||
String errorMsg = ServiceUtil.getErrorMessage(thisResult);
|
||||
if (UtilValidate.isNotEmpty(errorMsg)) {
|
||||
return ServiceUtil.returnError(errorMsg);
|
||||
}
|
||||
Map<String, Object> fileContext = new HashMap<String, Object>();
|
||||
fileContext.put("userLogin", userLogin);
|
||||
String forceElectronicText = (String)context.get("forceElectronicText");
|
||||
if ("IMAGE_OBJECT".equals(dataResourceTypeId)) {
|
||||
if (imageDataBytes != null || "true".equalsIgnoreCase(forceElectronicText)) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("imageData", imageDataBytes);
|
||||
thisResult = dispatcher.runSync("updateImage", fileContext);
|
||||
errorMsg = ServiceUtil.getErrorMessage(thisResult);
|
||||
if (UtilValidate.isNotEmpty(errorMsg)) {
|
||||
return ServiceUtil.returnError(errorMsg);
|
||||
}
|
||||
}
|
||||
} else if ("SHORT_TEXT".equals(dataResourceTypeId)) {
|
||||
} else if ("SURVEY".startsWith(dataResourceTypeId)) {
|
||||
} else if ("_FILE".indexOf(dataResourceTypeId) >=0) {
|
||||
Map<String, Object> uploadImage = new HashMap<String, Object>();
|
||||
uploadImage.put("userLogin", userLogin);
|
||||
uploadImage.put("dataResourceId", dataResourceId);
|
||||
uploadImage.put("dataResourceTypeId", dataResourceTypeId);
|
||||
uploadImage.put("rootDir", context.get("objectInfo"));
|
||||
uploadImage.put("uploadedFile", imageDataBytes);
|
||||
uploadImage.put("_uploadedFile_fileName", (String) context.get("_imageData_fileName"));
|
||||
uploadImage.put("_uploadedFile_contentType", (String) context.get("_imageData_contentType"));
|
||||
dispatcher.runSync("attachUploadToDataResource", uploadImage);
|
||||
} else {
|
||||
if (UtilValidate.isNotEmpty(textData) || "true".equalsIgnoreCase(forceElectronicText)) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("textData", textData);
|
||||
thisResult = dispatcher.runSync("updateElectronicText", fileContext);
|
||||
errorMsg = ServiceUtil.getErrorMessage(thisResult);
|
||||
if (UtilValidate.isNotEmpty(errorMsg)) {
|
||||
return ServiceUtil.returnError(errorMsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
result.put("dataResourceId", dataResourceId);
|
||||
result.put("drDataResourceId", dataResourceId);
|
||||
context.put("dataResourceId", dataResourceId);
|
||||
return result;
|
||||
if (!dataResourceExists) { // Create
|
||||
Map<String, Object> thisResult = dispatcher.runSync("createDataResource", newDrContext);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
throw (new GenericServiceException(ServiceUtil.getErrorMessage(thisResult)));
|
||||
}
|
||||
dataResourceId = (String) thisResult.get("dataResourceId");
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in persist... dataResourceId(0):" + dataResourceId, module);
|
||||
}
|
||||
dataResource = (GenericValue) thisResult.get("dataResource");
|
||||
Map<String, Object> fileContext = new HashMap<>();
|
||||
fileContext.put("userLogin", userLogin);
|
||||
if ("IMAGE_OBJECT".equals(dataResourceTypeId)) {
|
||||
if (imageDataBytes != null) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("imageData", imageDataBytes);
|
||||
thisResult = dispatcher.runSync("createImage", fileContext);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
}
|
||||
// We don't want SHORT_TEXT and SURVEY to be caught by the last else if, hence the 2 empty else if
|
||||
} else if ("SHORT_TEXT".equals(dataResourceTypeId)) {
|
||||
} else if (dataResourceTypeId.startsWith("SURVEY")) {
|
||||
} else if (dataResourceTypeId.indexOf("_FILE") >= 0) {
|
||||
Map<String, Object> uploadImage = new HashMap<>();
|
||||
uploadImage.put("userLogin", userLogin);
|
||||
uploadImage.put("dataResourceId", dataResourceId);
|
||||
uploadImage.put("dataResourceTypeId", dataResourceTypeId);
|
||||
uploadImage.put("rootDir", context.get("objectInfo"));
|
||||
uploadImage.put("uploadedFile", imageDataBytes);
|
||||
uploadImage.put("_uploadedFile_fileName", context.get("_imageData_fileName"));
|
||||
uploadImage.put("_uploadedFile_contentType", context.get("_imageData_contentType"));
|
||||
thisResult = dispatcher.runSync("attachUploadToDataResource", uploadImage);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
} else {
|
||||
// assume ELECTRONIC_TEXT
|
||||
if (UtilValidate.isNotEmpty(textData)) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("textData", textData);
|
||||
thisResult = dispatcher.runSync("createElectronicText", fileContext);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { // Update
|
||||
Map<String, Object> thisResult = dispatcher.runSync("updateDataResource", newDrContext);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
Map<String, Object> fileContext = new HashMap<>();
|
||||
fileContext.put("userLogin", userLogin);
|
||||
String forceElectronicText = (String) context.get("forceElectronicText");
|
||||
if ("IMAGE_OBJECT".equals(dataResourceTypeId)) {
|
||||
if (imageDataBytes != null || "true".equalsIgnoreCase(forceElectronicText)) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("imageData", imageDataBytes);
|
||||
thisResult = dispatcher.runSync("updateImage", fileContext);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
}
|
||||
// We don't want SHORT_TEXT and SURVEY to be caught by the last else if, hence the 2 empty else if
|
||||
} else if ("SHORT_TEXT".equals(dataResourceTypeId)) {
|
||||
} else if (dataResourceTypeId.startsWith("SURVEY")) {
|
||||
} else if (dataResourceTypeId.indexOf("_FILE") >= 0) {
|
||||
Map<String, Object> uploadImage = new HashMap<>();
|
||||
uploadImage.put("userLogin", userLogin);
|
||||
uploadImage.put("dataResourceId", dataResourceId);
|
||||
uploadImage.put("dataResourceTypeId", dataResourceTypeId);
|
||||
uploadImage.put("rootDir", context.get("objectInfo"));
|
||||
uploadImage.put("uploadedFile", imageDataBytes);
|
||||
uploadImage.put("_uploadedFile_fileName", context.get("_imageData_fileName"));
|
||||
uploadImage.put("_uploadedFile_contentType", context.get("_imageData_contentType"));
|
||||
thisResult = dispatcher.runSync("attachUploadToDataResource", uploadImage);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
} else {
|
||||
if (UtilValidate.isNotEmpty(textData) || "true".equalsIgnoreCase(forceElectronicText)) {
|
||||
fileContext.put("dataResourceId", dataResourceId);
|
||||
fileContext.put("textData", textData);
|
||||
thisResult = dispatcher.runSync("updateElectronicText", fileContext);
|
||||
if (ServiceUtil.isError(thisResult)) {
|
||||
return ServiceUtil.returnError(ServiceUtil.getErrorMessage(thisResult));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
result.put("dataResourceId", dataResourceId);
|
||||
result.put("drDataResourceId", dataResourceId);
|
||||
context.put("dataResourceId", dataResourceId);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static void addRoleToUser(Delegator delegator, LocalDispatcher dispatcher, Map<String, Object> serviceContext) throws GenericServiceException, GenericEntityException {
|
||||
@@ -735,7 +748,7 @@ public class ContentManagementServices {
|
||||
} else {
|
||||
if (fromDate != null) {
|
||||
// for now, will assume that any error is due to non-existence - ignore
|
||||
//return ServiceUtil.returnError(e.toString());
|
||||
// return ServiceUtil.returnError(e.toString());
|
||||
try {
|
||||
Debug.logInfo("updateSiteRoles, serviceContext(2):" + serviceContext, module);
|
||||
Map<String, Object> newContext = new HashMap<String, Object>();
|
||||
@@ -960,7 +973,6 @@ public class ContentManagementServices {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This service changes the contentTypeId of the current content and its children depending on the pageMode.
|
||||
* if pageMode == "outline" then if the contentTypeId of children is not "OUTLINE_NODE" or "PAGE_NODE"
|
||||
@@ -1430,7 +1442,7 @@ public class ContentManagementServices {
|
||||
}
|
||||
orderHeader = EntityQuery.use(delegator).from("OrderHeader").where("orderId", orderId).queryOne();
|
||||
if (orderHeader == null) {
|
||||
String msg = UtilProperties.getMessage(resource, "ContentNoOrderHeaderFound", UtilMisc.toMap("orderId", orderId), locale);
|
||||
String msg = UtilProperties.getMessage(resource, "ContentNoOrderHeaderFound", UtilMisc.toMap("orderId", orderId), locale);
|
||||
return ServiceUtil.returnError(msg);
|
||||
}
|
||||
Timestamp orderCreatedDate = (Timestamp) orderHeader.get("orderDate");
|
||||
@@ -1490,7 +1502,9 @@ public class ContentManagementServices {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
public static Map<String, Object> followNodeChildrenMethod(GenericValue content, LocalDispatcher dispatcher, String serviceName, Map<String, Object> context) throws GenericEntityException, GenericServiceException {
|
||||
|
||||
public static Map<String, Object> followNodeChildrenMethod(GenericValue content, LocalDispatcher dispatcher, String serviceName,
|
||||
Map<String, Object> context) throws GenericEntityException, GenericServiceException {
|
||||
Map<String, Object> result = null;
|
||||
String contentId = content.getString("contentId");
|
||||
List<String> contentAssocTypeIdList = UtilGenerics.checkList(context.get("contentAssocTypeIdList"));
|
||||
@@ -1584,4 +1598,25 @@ public class ContentManagementServices {
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static String validateUploadedFile(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
Locale locale = (Locale) context.get("locale");
|
||||
String objectInfo = (String) context.get("objectInfo");
|
||||
String errorMessage = null;
|
||||
if (!UtilValidate.isEmpty(objectInfo)) {
|
||||
File file = new File(objectInfo);
|
||||
if (file.isFile()) {
|
||||
try {
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(objectInfo, "All", delegator)) {
|
||||
errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedFileFormatsIncludingSvg", locale);
|
||||
}
|
||||
} catch (ImageReadException | IOException e) {
|
||||
errorMessage = UtilProperties.getMessage(resource, "ContentUnableToOpenFileForWriting", UtilMisc.toMap("fileName",
|
||||
objectInfo), locale);
|
||||
}
|
||||
}
|
||||
}
|
||||
return errorMessage;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,6 +79,13 @@ public class DataEvents {
|
||||
// get the permission service required for streaming data; default is always the genericContentPermission
|
||||
String permissionService = EntityUtilProperties.getPropertyValue("content", "stream.permission.service", "genericContentPermission", delegator);
|
||||
|
||||
// This is counterintuitive but it works, for OFBIZ-11840
|
||||
// It could be improved by checking for possible events associated with svg
|
||||
// As listed at https://portswigger.net/web-security/cross-site-scripting/cheat-sheet
|
||||
if (contentId.contains("<svg")) {
|
||||
return "success";
|
||||
}
|
||||
|
||||
// get the content record
|
||||
GenericValue content;
|
||||
try {
|
||||
|
||||
@@ -28,10 +28,12 @@ import java.io.StringWriter;
|
||||
import java.io.Writer;
|
||||
import java.nio.ByteBuffer;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.imaging.ImageReadException;
|
||||
import org.apache.ofbiz.base.util.Debug;
|
||||
import org.apache.ofbiz.base.util.GeneralException;
|
||||
import org.apache.ofbiz.base.util.UtilDateTime;
|
||||
@@ -49,7 +51,6 @@ import org.apache.ofbiz.service.GenericServiceException;
|
||||
import org.apache.ofbiz.service.ModelService;
|
||||
import org.apache.ofbiz.service.ServiceUtil;
|
||||
|
||||
import edu.emory.mathcs.backport.java.util.Arrays;
|
||||
|
||||
/**
|
||||
* DataServices Class
|
||||
@@ -196,7 +197,7 @@ public class DataServices {
|
||||
}
|
||||
|
||||
public static Map<String, Object> createFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) {
|
||||
//GenericValue dataResource = (GenericValue) context.get("dataResource");
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
String dataResourceTypeId = (String) context.get("dataResourceTypeId");
|
||||
String objectInfo = (String) context.get("objectInfo");
|
||||
ByteBuffer binData = (ByteBuffer) context.get("binData");
|
||||
@@ -248,7 +249,11 @@ public class DataServices {
|
||||
OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(file), UtilIO.getUtf8());
|
||||
) {
|
||||
out.write(textData);
|
||||
} catch (IOException e) {
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(file.getAbsolutePath(), "Text", delegator)) {
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedTextFileFormats", locale);
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
} catch (IOException | ImageReadException e) {
|
||||
Debug.logWarning(e, module);
|
||||
return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ContentUnableWriteCharacterDataToFile", UtilMisc.toMap("fileName", file.getAbsolutePath()), locale));
|
||||
}
|
||||
@@ -257,7 +262,13 @@ public class DataServices {
|
||||
RandomAccessFile out = new RandomAccessFile(file, "rw");
|
||||
out.write(binData.array());
|
||||
out.close();
|
||||
} catch (FileNotFoundException e) {
|
||||
// Check if a webshell is not uploaded
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(file.getAbsolutePath(), "All", delegator)) {
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedFileFormatsIncludingSvg", locale);
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
|
||||
} catch (FileNotFoundException | ImageReadException e) {
|
||||
Debug.logError(e, module);
|
||||
return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ContentUnableToOpenFileForWriting", UtilMisc.toMap("fileName", file.getAbsolutePath()), locale));
|
||||
} catch (IOException e) {
|
||||
@@ -397,6 +408,7 @@ public class DataServices {
|
||||
}
|
||||
|
||||
public static Map<String, Object> updateFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException {
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
Locale locale = (Locale) context.get("locale");
|
||||
String dataResourceTypeId = (String) context.get("dataResourceTypeId");
|
||||
@@ -437,7 +449,11 @@ public class DataServices {
|
||||
OutputStreamWriter out = new OutputStreamWriter(new FileOutputStream(file),UtilIO.getUtf8());
|
||||
) {
|
||||
out.write(textData);
|
||||
} catch (IOException e) {
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(file.getAbsolutePath(), "Text", delegator)) {
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedTextFileFormats", locale);
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
} catch (IOException | ImageReadException e) {
|
||||
Debug.logWarning(e, module);
|
||||
return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ContentUnableWriteCharacterDataToFile", UtilMisc.toMap("fileName", file.getAbsolutePath()), locale));
|
||||
}
|
||||
@@ -447,7 +463,12 @@ public class DataServices {
|
||||
out.setLength(binData.array().length);
|
||||
out.write(binData.array());
|
||||
out.close();
|
||||
} catch (FileNotFoundException e) {
|
||||
// Check if a webshell is not uploaded
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(file.getAbsolutePath(), "All", delegator)) {
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedFileFormatsIncludingSvg", locale);
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
} catch (FileNotFoundException | ImageReadException e) {
|
||||
Debug.logError(e, module);
|
||||
return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ContentUnableToOpenFileForWriting", UtilMisc.toMap("fileName", file.getAbsolutePath()), locale));
|
||||
} catch (IOException e) {
|
||||
@@ -577,12 +598,14 @@ public class DataServices {
|
||||
}
|
||||
|
||||
public static Map<String, Object> createBinaryFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException {
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
GenericValue dataResource = (GenericValue) context.get("dataResource");
|
||||
String dataResourceTypeId = (String) dataResource.get("dataResourceTypeId");
|
||||
String objectInfo = (String) dataResource.get("objectInfo");
|
||||
byte [] imageData = (byte []) context.get("imageData");
|
||||
String rootDir = (String)context.get("rootDir");
|
||||
Locale locale = (Locale) context.get("locale");
|
||||
File file = null;
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in createBinaryFileMethod, dataResourceTypeId:" + dataResourceTypeId, module);
|
||||
@@ -604,10 +627,15 @@ public class DataServices {
|
||||
FileOutputStream out = new FileOutputStream(file);
|
||||
) {
|
||||
out.write(imageData);
|
||||
// Check if a webshell is not uploaded
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(file.getAbsolutePath(), "All", delegator)) {
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedFileFormatsIncludingSvg", locale);
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in createBinaryFileMethod, length:" + file.length(), module);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | ImageReadException e) {
|
||||
Debug.logWarning(e, module);
|
||||
throw new GenericServiceException(e.getMessage());
|
||||
}
|
||||
@@ -630,12 +658,14 @@ public class DataServices {
|
||||
}
|
||||
|
||||
public static Map<String, Object> updateBinaryFileMethod(DispatchContext dctx, Map<String, ? extends Object> context) throws GenericServiceException {
|
||||
Delegator delegator = dctx.getDelegator();
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
GenericValue dataResource = (GenericValue) context.get("dataResource");
|
||||
String dataResourceTypeId = (String) dataResource.get("dataResourceTypeId");
|
||||
String objectInfo = (String) dataResource.get("objectInfo");
|
||||
byte [] imageData = (byte []) context.get("imageData");
|
||||
String rootDir = (String)context.get("rootDir");
|
||||
Locale locale = (Locale) context.get("locale");
|
||||
File file = null;
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in updateBinaryFileMethod, dataResourceTypeId:" + dataResourceTypeId, module);
|
||||
@@ -660,11 +690,16 @@ public class DataServices {
|
||||
FileOutputStream out = new FileOutputStream(file);
|
||||
){
|
||||
out.write(imageData);
|
||||
// Check if a webshell is not uploaded
|
||||
if (!org.apache.ofbiz.security.SecuredUpload.isValidFile(file.getAbsolutePath(), "All", delegator)) {
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels", "SupportedFileFormatsIncludingSvg", locale);
|
||||
return ServiceUtil.returnError(errorMessage);
|
||||
}
|
||||
|
||||
if (Debug.infoOn()) {
|
||||
Debug.logInfo("in updateBinaryFileMethod, length:" + file.length(), module);
|
||||
}
|
||||
out.close();
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | ImageReadException e) {
|
||||
Debug.logWarning(e, module);
|
||||
throw new GenericServiceException(e.getMessage());
|
||||
}
|
||||
|
||||
+1
-2
@@ -131,8 +131,7 @@ public class LayoutEvents {
|
||||
}
|
||||
|
||||
GenericValue dataResource = EntityQuery.use(delegator).from("DataResource").where("dataResourceId", dataResourceId).queryOne();
|
||||
// Use objectInfo field to store the name of the file, since there is no
|
||||
// place in ImageDataResource for it.
|
||||
// Use objectInfo field to store the name of the file, since there is no place in ImageDataResource for it.
|
||||
if (dataResource != null) {
|
||||
dataResource.set("objectInfo", imageFileName);
|
||||
dataResource.set("mimeTypeId", mimeTypeId);
|
||||
|
||||
@@ -35,6 +35,7 @@ import org.apache.ofbiz.base.util.UtilGenerics;
|
||||
import org.apache.ofbiz.base.util.UtilHttp;
|
||||
import org.apache.ofbiz.base.util.UtilMisc;
|
||||
import org.apache.ofbiz.base.util.UtilProperties;
|
||||
import org.apache.ofbiz.base.util.UtilValidate;
|
||||
import org.apache.ofbiz.service.ServiceUtil;
|
||||
|
||||
/**
|
||||
@@ -66,6 +67,9 @@ public final class LayoutWorker {
|
||||
return ServiceUtil.returnError(e4.getMessage());
|
||||
}
|
||||
|
||||
if(lst.size() == 0 && UtilValidate.isNotEmpty(request.getAttribute("fileItems"))) {
|
||||
lst = UtilGenerics.cast(request.getAttribute("fileItems"));
|
||||
}
|
||||
if (lst.size() == 0) {
|
||||
String errMsg = UtilProperties.getMessage(err_resource,
|
||||
"layoutEvents.no_files_uploaded", locale);
|
||||
|
||||
@@ -333,7 +333,18 @@
|
||||
<td class="label">${uiLabelMap.CommonUpload}</td>
|
||||
<td>
|
||||
<input type="hidden" name="isUploadObject" value="Y"/>
|
||||
<input type="file" name="uploadedFile" size="30"/>
|
||||
<#if dataResourceTypeId == 'IMAGE_OBJECT'>
|
||||
<input type="file" name="uploadedFile" size="30" accept=".png,.gif,.jpg,.jpeg,.tiff,.tif"/>
|
||||
</#if>
|
||||
<#if dataResourceTypeId == 'VIDEO_OBJECT'>
|
||||
<input type="file" name="uploadedFile" size="30" accept=".mpeg,.mpg,.mp4,.m4v,.mov,.qt,.asf,.avi,.asx,.asf,.flv,.wvx,.wm,.wmv,.wmx,.avi"/>
|
||||
</#if>
|
||||
<#if dataResourceTypeId == 'AUDIO_OBJECT'>
|
||||
<input type="file" name="uploadedFile" size="30" accept=".mp3,.ogg,.vorbis,.flac,.wav"/>
|
||||
</#if>
|
||||
<#if dataResourceTypeId == 'OTHER_OBJECT' || dataResourceTypeId == 'LOCAL_FILE' || dataResourceTypeId == 'OFBIZ_FILE' >
|
||||
<input type="file" name="uploadedFile" size="30"/>
|
||||
</#if>
|
||||
</td>
|
||||
</tr>
|
||||
<#elseif (dataResourceTypeId == 'URL_RESOURCE')>
|
||||
@@ -354,9 +365,9 @@
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="editorcontainer" class="nocolumns">
|
||||
<textarea name="textData" id="cmseditor" style="margin: 0; width: 100%; border: 1px solid black;">
|
||||
<textarea name="textData" id="cmseditor" style="margin: 0; width: 100%; border: 1px solid black;">
|
||||
<#if (dataText?has_content)>
|
||||
${StringUtil.wrapString(dataText.textData!)}
|
||||
${StringUtil.wrapString(dataText.textData!)}
|
||||
</#if>
|
||||
</textarea>
|
||||
</div>
|
||||
@@ -370,4 +381,4 @@
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Content Manager</display-name>
|
||||
<description>Content Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -62,6 +62,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -70,6 +75,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
-->
|
||||
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Content Empty placeholder</display-name>
|
||||
<description>Empty placeholder, see http://svn.apache.org/viewvc?view=revision&revision=1658621 </description>
|
||||
</web-app>
|
||||
|
||||
@@ -18,7 +18,7 @@ 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"
|
||||
xmlns="http://ofbiz.apache.org/Widget-Form" xsi:schemaLocation="http://ofbiz.apache.org/Widget-Form http://ofbiz.apache.org/dtds/widget-form.xsd">
|
||||
<!-- ContentType forms -->
|
||||
<form name="AddContentType" target="addContentType" title="" type="single"
|
||||
@@ -214,7 +214,7 @@ under the License.
|
||||
<form name="UpdateContentPurposeOperation" target="" title="" type="list" list-name="contentList"
|
||||
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
|
||||
<actions>
|
||||
<entity-one entity-name="ContentPurposeOperation" use-cache="false"/>
|
||||
<entity-condition entity-name="ContentPurposeOperation" use-cache="false"/>
|
||||
</actions>
|
||||
<auto-fields-service service-name="updateContentPurposeOperation" default-field-type="display"/>
|
||||
<field name="deleteLink" title=" " widget-style="buttontext">
|
||||
|
||||
@@ -26,7 +26,7 @@ under the License.
|
||||
<actions>
|
||||
<set field="headerItem" value="Forum"/>
|
||||
<property-map resource="ContentUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="pageTitle" from-field="uiLabelMap.[titleProperty]"/>
|
||||
<set field="pageTitle" from-field="uiLabelMap.${titleProperty}"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="main-decorator" location="${parameters.mainDecoratorLocation}">
|
||||
|
||||
@@ -597,7 +597,7 @@ under the License.
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_REPLACE_ADJ" invoiceItemTypeId="CRT_REPLACE_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_DISCOUNT_ADJ" invoiceItemTypeId="CRT_DISCOUNT_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_FEE_ADJ" invoiceItemTypeId="CRT_FEE_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_MISC_CHARGE_ADJ" invoiceItemTypeId="CRT_MISC_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_MISC_ADJ" invoiceItemTypeId="CRT_MISC_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_SALES_TAX_ADJ" invoiceItemTypeId="CRT_SALES_TAX_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_VAT_TAX_ADJ" invoiceItemTypeId="CRT_VAT_TAX_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="CUST_RTN_INVOICE" invoiceItemMapKey="RET_VAT_PC_ADJ" invoiceItemTypeId="CRT_VAT_PC_ADJ"/>
|
||||
@@ -617,7 +617,7 @@ under the License.
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_REPLACE_ADJ" invoiceItemTypeId="SRT_REPLACE_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_DISCOUNT_ADJ" invoiceItemTypeId="SRT_DISCOUNT_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_FEE_ADJ" invoiceItemTypeId="SRT_FEE_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_MISC_CHARGE_ADJ" invoiceItemTypeId="SRT_MISC_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_MISC_ADJ" invoiceItemTypeId="SRT_MISC_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_SALES_TAX_ADJ" invoiceItemTypeId="SRT_SALES_TAX_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_VAT_TAX_ADJ" invoiceItemTypeId="SRT_VAT_TAX_ADJ"/>
|
||||
<InvoiceItemTypeMap invoiceTypeId="PURC_RTN_INVOICE" invoiceItemMapKey="RET_VAT_PC_ADJ" invoiceItemTypeId="SRT_VAT_PC_ADJ"/>
|
||||
|
||||
@@ -405,9 +405,15 @@ under the License.
|
||||
|
||||
<!-- audio mime types -->
|
||||
<MimeType mimeTypeId="audio/basic" description="Basic Audio"/>
|
||||
<MimeType mimeTypeId="audio/mpeg" description="MPEG Audio"/>
|
||||
<MimeType mimeTypeId="audio/mpeg" description="MP3 Audio"/>
|
||||
<MimeType mimeTypeId="audio/mp4" description="MP4 Audio"/>
|
||||
<MimeType mimeTypeId="audio/x-ms-wax" description="WAX Audio"/>
|
||||
<MimeType mimeTypeId="audio/x-ms-wma" description="WMA Audio"/>
|
||||
<MimeType mimeTypeId="audio/wav" description="WAV Audio"/>
|
||||
<MimeType mimeTypeId="audio/ogg" description="OGG Audio"/>
|
||||
<MimeType mimeTypeId="audio/x-ogg" description="OGG Audio"/>
|
||||
<MimeType mimeTypeId="audio/vorbis" description="Vorbis Audio"/>
|
||||
<MimeType mimeTypeId="audio/x-flac" description="FLAC Audio"/>
|
||||
<MimeType mimeTypeId="audio/flac" description="FLAC Audio"/>
|
||||
|
||||
<!-- image mime types -->
|
||||
<MimeType mimeTypeId="image/jpeg" description="JPEG/JPG Image"/>
|
||||
@@ -415,6 +421,8 @@ under the License.
|
||||
<MimeType mimeTypeId="image/gif" description="GIF Image"/>
|
||||
<MimeType mimeTypeId="image/tiff" description="TIFF Image"/>
|
||||
<MimeType mimeTypeId="image/png" description="PNG Image"/>
|
||||
<MimeType mimeTypeId="image/svg+xml" description="Image SVG"/>
|
||||
|
||||
|
||||
<!-- message mime types -->
|
||||
<MimeType mimeTypeId="message/external-body" description="External Body Message"/>
|
||||
@@ -462,6 +470,7 @@ under the License.
|
||||
<MimeType mimeTypeId="video/x-ms-wm" description="WM Video"/>
|
||||
<MimeType mimeTypeId="video/x-ms-wmv" description="WMV Video"/>
|
||||
<MimeType mimeTypeId="video/x-ms-wmx" description="WMX Video"/>
|
||||
<MimeType mimeTypeId="video/3gpp" description="3GP Mobile Video"/>
|
||||
|
||||
<FileExtension fileExtensionId="asf" mimeTypeId="video/x-ms-asf"/>
|
||||
<FileExtension fileExtensionId="asx" mimeTypeId="video/x-ms-asf"/>
|
||||
@@ -473,6 +482,7 @@ under the License.
|
||||
<FileExtension fileExtensionId="tif" mimeTypeId="image/tiff"/>
|
||||
<FileExtension fileExtensionId="tiff" mimeTypeId="image/tiff"/>
|
||||
<FileExtension fileExtensionId="gif" mimeTypeId="image/gif"/>
|
||||
<FileExtension fileExtensionId="svg" mimeTypeId="image/svg+xml"/>
|
||||
<FileExtension fileExtensionId="png" mimeTypeId="image/png"/>
|
||||
<FileExtension fileExtensionId="mp4" mimeTypeId="video/mp4"/>
|
||||
<FileExtension fileExtensionId="m4v" mimeTypeId="video/mp4"/>
|
||||
@@ -497,6 +507,16 @@ under the License.
|
||||
<FileExtension fileExtensionId="wmx" mimeTypeId="video/x-ms-wmx"/>
|
||||
<FileExtension fileExtensionId="zip" mimeTypeId="application/zip"/>
|
||||
<FileExtension fileExtensionId="vcf" mimeTypeId="text/x-vcard"/>
|
||||
<FileExtension fileExtensionId="wav" mimeTypeId="audio/wav"/>
|
||||
<FileExtension fileExtensionId="mpeg" mimeTypeId="audio/mpeg"/>
|
||||
<FileExtension fileExtensionId="mp3" mimeTypeId="audio/mpeg"/>
|
||||
<FileExtension fileExtensionId="mp4" mimeTypeId="audio/mpeg"/>
|
||||
<FileExtension fileExtensionId="ogg" mimeTypeId="audio/ogg"/>
|
||||
<FileExtension fileExtensionId="flac" mimeTypeId="audio/flac"/>
|
||||
<FileExtension fileExtensionId="vorbis" mimeTypeId="audio/ogg"/>
|
||||
<FileExtension fileExtensionId="dflt" mimeTypeId="application/octet-stream"/>
|
||||
<FileExtension fileExtensionId="3gp" mimeTypeId="video/3gpp"/>
|
||||
|
||||
|
||||
<!-- Registered MIME Types:
|
||||
MEDIA TYPES
|
||||
|
||||
@@ -317,7 +317,7 @@ under the License.
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="REPLACE_ADJUSTMENT" returnItemTypeId="RET_REPLACE_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="DISCOUNT_ADJUSTMENT" returnItemTypeId="RET_DISCOUNT_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="FEE" returnItemTypeId="RET_FEE_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="MISCELLANEOUS_CHARGE" returnItemTypeId="RET_MISC_CHARGE_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="MISCELLANEOUS_CHARGE" returnItemTypeId="RET_MISC_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="SALES_TAX" returnItemTypeId="RET_SALES_TAX_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="VAT_TAX" returnItemTypeId="RET_VAT_TAX_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="CUSTOMER_RETURN" returnItemMapKey="VAT_PRICE_CORRECT" returnItemTypeId="RET_VAT_PC_ADJ"/>
|
||||
@@ -341,7 +341,7 @@ under the License.
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="REPLACE_ADJUSTMENT" returnItemTypeId="RET_REPLACE_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="DISCOUNT_ADJUSTMENT" returnItemTypeId="RET_DISCOUNT_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="FEE" returnItemTypeId="RET_FEE_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="MISCELLANEOUS_CHARGE" returnItemTypeId="RET_MISC_CHARGE_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="MISCELLANEOUS_CHARGE" returnItemTypeId="RET_MISC_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="SALES_TAX" returnItemTypeId="RET_SALES_TAX_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="VAT_TAX" returnItemTypeId="RET_VAT_TAX_ADJ"/>
|
||||
<ReturnItemTypeMap returnHeaderTypeId="VENDOR_RETURN" returnItemMapKey="VAT_PRICE_CORRECT" returnItemTypeId="RET_VAT_PC_ADJ"/>
|
||||
|
||||
@@ -401,21 +401,38 @@ under the License.
|
||||
<TermType description="Commission Term Maximum Per Unit" hasTable="N" parentTypeId="COMMISSION_TERM" termTypeId="FIN_COMM_MAX"/>
|
||||
|
||||
<TermType description="Incoterm" hasTable="N" parentTypeId="" termTypeId="INCO_TERM"/>
|
||||
<TermType description="Incoterm Ex Works" parentTypeId="INCO_TERM" termTypeId="EXW"/>
|
||||
<TermType description="Incoterm Free Carrier" parentTypeId="INCO_TERM" termTypeId="FCA"/>
|
||||
<TermType description="Incoterm Free Alongside Ship" parentTypeId="INCO_TERM" termTypeId="FAS"/>
|
||||
<TermType description="Incoterm Free On Board" parentTypeId="INCO_TERM" termTypeId="FOB"/>
|
||||
<TermType description="Incoterm Cost and Freight" parentTypeId="INCO_TERM" termTypeId="CFR"/>
|
||||
<TermType description="Incoterm Cost, Insurance and Freight" parentTypeId="INCO_TERM" termTypeId="CIF"/>
|
||||
<TermType description="Incoterm Carriage Paid To" parentTypeId="INCO_TERM" termTypeId="CPT"/>
|
||||
<TermType description="Incoterm Carriage and Insurance Paid to" parentTypeId="INCO_TERM" termTypeId="CIP"/>
|
||||
<TermType description="Incoterm Delivered At Frontier" parentTypeId="INCO_TERM" termTypeId="DAF"/>
|
||||
<TermType description="Incoterm Delivered Ex Ship" parentTypeId="INCO_TERM" termTypeId="DES"/>
|
||||
<TermType description="Incoterm Delivered Ex Quay" parentTypeId="INCO_TERM" termTypeId="DEQ"/>
|
||||
<TermType description="Incoterm Delivered Duty Unpaid" parentTypeId="INCO_TERM" termTypeId="DDU"/>
|
||||
<TermType description="Incoterm Delivered Duty Paid" parentTypeId="INCO_TERM" termTypeId="DDP"/>
|
||||
|
||||
<TermType description="Purchasing" parentTypeId="" hasTable="" termTypeId="PURCHASING"/>
|
||||
<TermType description="Incoterm 2020" parentTypeId="INCO_TERM" termTypeId="INCO_TERM_2020"/>
|
||||
<TermType description="Incoterm 2020 Ex Works" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_EXW"/>
|
||||
<TermType description="Incoterm 2020 Free Carrier" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_FCA"/>
|
||||
<TermType description="Incoterm 2020 Free Alongside Ship" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_FAS"/>
|
||||
<TermType description="Incoterm 2020 Free On Board" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_FOB"/>
|
||||
<TermType description="Incoterm 2020 Carriage Paid To" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_CPT"/>
|
||||
<TermType description="Incoterm 2020 Cost and Freight" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_CFR"/>
|
||||
<TermType description="Incoterm 2020 Cost, Insurance and Freight" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_CIF"/>
|
||||
<TermType description="Incoterm 2020 Carriage and Insurance Paid to" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_CIP"/>
|
||||
<TermType description="Incoterm 2020 Delivered at Place Unloaded" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_DPU"/>
|
||||
<TermType description="Incoterm 2020 Delivered at Place" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_DAP"/>
|
||||
<TermType description="Incoterm 2020 Delivered Duty Paid" parentTypeId="INCO_TERM_2020" termTypeId="INCO_TERM_2020_DDP"/>
|
||||
|
||||
<TermType description="Incoterm 2010" parentTypeId="INCO_TERM" termTypeId="INCO_TERM_2010"/>
|
||||
<TermType description="Incoterm 2010 Ex Works" parentTypeId="INCO_TERM_2010" termTypeId="EXW"/>
|
||||
<TermType description="Incoterm 2010 Free Carrier" parentTypeId="INCO_TERM_2010" termTypeId="FCA"/>
|
||||
<TermType description="Incoterm 2010 Free Alongside Ship" parentTypeId="INCO_TERM_2010" termTypeId="FAS"/>
|
||||
<TermType description="Incoterm 2010 Free On Board" parentTypeId="INCO_TERM_2010" termTypeId="FOB"/>
|
||||
<TermType description="Incoterm 2010 Cost and Freight" parentTypeId="INCO_TERM_2010" termTypeId="CFR"/>
|
||||
<TermType description="Incoterm 2010 Cost, Insurance and Freight" parentTypeId="INCO_TERM_2010" termTypeId="CIF"/>
|
||||
<TermType description="Incoterm 2010 Carriage Paid To" parentTypeId="INCO_TERM_2010" termTypeId="CPT"/>
|
||||
<TermType description="Incoterm 2010 Carriage and Insurance Paid to" parentTypeId="INCO_TERM_2010" termTypeId="CIP"/>
|
||||
<TermType description="Incoterm 2010 Delivered Duty Paid" parentTypeId="INCO_TERM_2010" termTypeId="DDP"/>
|
||||
|
||||
<TermType description="Incoterm 2000" parentTypeId="INCO_TERM" termTypeId="INCO_TERM_2000"/>
|
||||
<TermType description="Incoterm 2000 Delivered At Frontier" parentTypeId="INCO_TERM_2000" termTypeId="DAF"/>
|
||||
<TermType description="Incoterm 2000 Delivered Ex Ship" parentTypeId="INCO_TERM_2000" termTypeId="DES"/>
|
||||
<TermType description="Incoterm 2000 Delivered Ex Quay" parentTypeId="INCO_TERM_2000" termTypeId="DEQ"/>
|
||||
<TermType description="Incoterm 2000 Delivered Duty Unpaid" parentTypeId="INCO_TERM_2000" termTypeId="DDU"/>
|
||||
|
||||
<TermType description="Purchasing" termTypeId="PURCHASING"/>
|
||||
<TermType description="Vendor Customer ID" parentTypeId="PURCHASING" termTypeId="PURCH_VENDOR_ID"/>
|
||||
<TermType description="Preferred Freight" parentTypeId="PURCHASING" termTypeId="PURCH_FREIGHT"/>
|
||||
|
||||
|
||||
@@ -121,19 +121,7 @@ var rawdata = [
|
||||
EmpPosition: {
|
||||
label: "Add Employee Position",
|
||||
action: function (NODE, TREE_OBJ) {
|
||||
var dataSet = {};
|
||||
dataSet = {"partyId" : NODE.attr("id")};
|
||||
jQuery.ajax({
|
||||
type: "GET",
|
||||
url: "EditEmplPosition",
|
||||
data: dataSet,
|
||||
error: function(msg) {
|
||||
alert("An error occurred loading content! : " + msg);
|
||||
},
|
||||
success: function(msg) {
|
||||
jQuery('div.page-container').html(msg);
|
||||
}
|
||||
});
|
||||
window.location.href = "EditEmplPosition?partyId=" + NODE.attr("id");
|
||||
}
|
||||
},
|
||||
AddIntOrg: {
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - HumanRes Manager</display-name>
|
||||
<description>HumanRes Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -57,6 +57,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -65,6 +70,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
+2
-1
@@ -96,6 +96,7 @@ public class BOMTree {
|
||||
|
||||
this.delegator = delegator;
|
||||
this.dispatcher = dispatcher;
|
||||
this.bomTypeId = bomTypeId;
|
||||
|
||||
inputProduct = EntityQuery.use(delegator).from("Product").where("productId", productId).queryOne();
|
||||
|
||||
@@ -153,7 +154,7 @@ public class BOMTree {
|
||||
} catch (GenericEntityException gee) {
|
||||
root = null;
|
||||
}
|
||||
this.bomTypeId = bomTypeId;
|
||||
|
||||
this.inDate = inDate;
|
||||
rootQuantity = BigDecimal.ONE;
|
||||
rootAmount = BigDecimal.ZERO;
|
||||
|
||||
+2
-1
@@ -475,7 +475,8 @@ public class MrpServices {
|
||||
continue;
|
||||
}
|
||||
eventQuantityTmp = eventQuantityTmp.negate();
|
||||
parameters = UtilMisc.toMap("mrpId", mrpId, "productId", productId, "eventDate", customTimePeriod.getDate("fromDate"), "mrpEventTypeId", "SALES_FORECAST");
|
||||
parameters = UtilMisc.toMap("mrpId", mrpId, "productId", productId, "eventDate", customTimePeriod.getTimestamp("fromDate"),
|
||||
"mrpEventTypeId", "SALES_FORECAST");
|
||||
try {
|
||||
InventoryEventPlannedServices.createOrUpdateMrpEvent(parameters, eventQuantityTmp, null, sfd.getString("salesForecastDetailId"), false, delegator);
|
||||
} catch (GenericEntityException e) {
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Manufacturing Manager</display-name>
|
||||
<description>Manufacturing Manager Module by TAU Informatica srl</description>
|
||||
|
||||
@@ -62,6 +62,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -70,6 +75,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Marketing Manager</display-name>
|
||||
<description>Marketing Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - SFA Manager</display-name>
|
||||
<description>SFA Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -57,6 +57,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -65,6 +70,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -5872,7 +5872,7 @@
|
||||
<value xml:lang="zh-TW">預訂</value>
|
||||
</property>
|
||||
<property key="OrderManager">
|
||||
<value xml:lang="ar">مدير أمر البيع\الشراء</value>
|
||||
<value xml:lang="ar">مدير أمر</value>
|
||||
<value xml:lang="de">Auftragsverwaltung Anwendung</value>
|
||||
<value xml:lang="en">Order Manager</value>
|
||||
<value xml:lang="es">Gestión de pedidos</value>
|
||||
|
||||
@@ -150,7 +150,7 @@ under the License.
|
||||
<PartyContactMechPurpose partyId="DemoCustomer" contactMechId="9026" contactMechPurposeTypeId="PRIMARY_EMAIL" fromDate="2001-05-13 00:00:00.000"/>
|
||||
|
||||
<PaymentMethod paymentMethodId="9015" paymentMethodTypeId="CREDIT_CARD" partyId="DemoCustomer" fromDate="2001-05-13 00:00:00.000"/>
|
||||
<CreditCard paymentMethodId="9015" cardType="CCT_VISA" cardNumber="4111111111111111" expireDate="02/2021" companyNameOnCard=""
|
||||
<CreditCard paymentMethodId="9015" cardType="CCT_VISA" cardNumber="4111111111111111" expireDate="02/2121" companyNameOnCard=""
|
||||
titleOnCard="" firstNameOnCard="DEMO" middleNameOnCard="" lastNameOnCard="CUSTOMER" suffixOnCard="" contactMechId="9015"/>
|
||||
|
||||
<!-- EuroCustomer want invoices in euro and be located in Amsterdam -->
|
||||
@@ -177,7 +177,7 @@ under the License.
|
||||
<PartyContactMechPurpose partyId="EuroCustomer" contactMechId="EURO01" contactMechPurposeTypeId="PRIMARY_EMAIL" fromDate="2001-05-13 00:00:00.000"/>
|
||||
|
||||
<PaymentMethod paymentMethodId="EUROCUSTOMER" paymentMethodTypeId="CREDIT_CARD" partyId="EuroCustomer" fromDate="2001-05-13 00:00:00.000"/>
|
||||
<CreditCard paymentMethodId="EUROCUSTOMER" cardType="CCT_VISA" cardNumber="4111111111111111" expireDate="02/2021" companyNameOnCard=""
|
||||
<CreditCard paymentMethodId="EUROCUSTOMER" cardType="CCT_VISA" cardNumber="4111111111111111" expireDate="02/2121" companyNameOnCard=""
|
||||
titleOnCard="" firstNameOnCard="EURO" middleNameOnCard="" lastNameOnCard="CUSTOMER" suffixOnCard="" contactMechId="EUROCUSTOMER"/>
|
||||
|
||||
<!-- FrenchCustomer want invoices in euro and be located in Poussan -->
|
||||
@@ -204,7 +204,7 @@ under the License.
|
||||
<PartyContactMechPurpose partyId="FrenchCustomer" contactMechId="FRA01" contactMechPurposeTypeId="PRIMARY_EMAIL" fromDate="2009-01-09 00:00:00.000"/>
|
||||
|
||||
<PaymentMethod paymentMethodId="FRENCHCUSTOMER" paymentMethodTypeId="CREDIT_CARD" partyId="FrenchCustomer" fromDate="2009-01-09 00:00:00.000"/>
|
||||
<CreditCard paymentMethodId="FRENCHCUSTOMER" cardType="CCT_VISA" cardNumber="4111111111111111" expireDate="02/2020" companyNameOnCard=""
|
||||
<CreditCard paymentMethodId="FRENCHCUSTOMER" cardType="CCT_VISA" cardNumber="4111111111111111" expireDate="02/2120" companyNameOnCard=""
|
||||
titleOnCard="" firstNameOnCard="FRENCH" middleNameOnCard="" lastNameOnCard="CUSTOMER" suffixOnCard="" contactMechId="FRENCHCUSTOMER"/>
|
||||
|
||||
<PartyTaxAuthInfo partyId="FrenchCustomer" taxAuthGeoId="FRA" taxAuthPartyId="FRA_TA" fromDate="2001-05-13 00:00:00.000" partyTaxId="FR-12345678901" isExempt="N"/>
|
||||
|
||||
@@ -102,6 +102,9 @@ if (inlineProduct) {
|
||||
featureTypes = [:]
|
||||
featureOrder = []
|
||||
|
||||
variantInfoJS = new StringBuffer()
|
||||
variantInfoJS.append("<script language=\"JavaScript\" type=\"text/javascript\">\n jQuery(document).ready(function(jQuery) {\n")
|
||||
|
||||
// make the productContentWrapper
|
||||
productContentWrapper = new ProductContentWrapper(inlineProduct, request)
|
||||
context.productContentWrapper = productContentWrapper
|
||||
@@ -284,7 +287,9 @@ if (inlineProduct) {
|
||||
variantPriceMap = runService('calculateProductPrice', priceContext)
|
||||
}
|
||||
amt.append(" if (sku == \"" + variant.productId + "\") return \"" + (variant.requireAmount ?: "N") + "\"; ")
|
||||
variantInfoJS.append(" variantReqAmounts['" + variant.productId + "'] = '" + (variant.requireAmount ?: "N") + "';\n")
|
||||
variantPriceJS.append(" if (sku == \"" + variant.productId + "\") return \"" + numberFormat.format(variantPriceMap.basePrice) + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + variant.productId + "'] = '" + numberFormat.format(variantPriceMap.basePrice) + "';\n")
|
||||
}
|
||||
amt.append(" } ")
|
||||
variantPriceJS.append(" } ")
|
||||
@@ -298,4 +303,6 @@ if (inlineProduct) {
|
||||
}
|
||||
}
|
||||
}
|
||||
variantInfoJS.append(" });\n</script>\n")
|
||||
context.variantInfoJavaScript = variantInfoJS
|
||||
}
|
||||
|
||||
@@ -106,6 +106,9 @@ if (product) {
|
||||
featureTypes = [:]
|
||||
featureOrder = []
|
||||
|
||||
variantInfoJS = new StringBuffer()
|
||||
variantInfoJS.append("<script language=\"JavaScript\" type=\"text/javascript\">\n jQuery(document).ready(function(jQuery) {\n")
|
||||
|
||||
// set this as a last viewed
|
||||
LAST_VIEWED_TO_KEEP = 10 // modify this to change the number of last viewed to keep
|
||||
lastViewedProducts = session.getAttribute("lastViewedProducts")
|
||||
@@ -346,8 +349,10 @@ if (product) {
|
||||
contentWrapper = new ProductContentWrapper(imageMap[key], request)
|
||||
|
||||
// initial image paths
|
||||
detailImage = contentWrapper.get("DETAIL_IMAGE_URL", "url") ?: productContentWrapper.get("DETAIL_IMAGE_URL", "url")
|
||||
largeImage = contentWrapper.get("LARGE_IMAGE_URL", "url") ?: productContentWrapper.get("LARGE_IMAGE_URL", "url")
|
||||
detailImage = contentWrapper.getProductContentAsText(product, "DETAIL_IMAGE_URL", request, "string")
|
||||
?: productContentWrapper.get("DETAIL_IMAGE_URL", "string")
|
||||
largeImage = contentWrapper.getProductContentAsText(product, "LARGE_IMAGE_URL", request, "string")
|
||||
?: productContentWrapper.get("LARGE_IMAGE_URL", "string")
|
||||
|
||||
// full image URLs
|
||||
detailImageUrl = null
|
||||
@@ -440,8 +445,10 @@ if (product) {
|
||||
variantPriceMap = runService('calculatePurchasePrice', priceContext)
|
||||
}
|
||||
amt.append(" if (sku == \"" + variant.productId + "\") return \"" + (variant.requireAmount ?: "N") + "\"; ")
|
||||
variantInfoJS.append(" variantReqAmounts['" + variant.productId + "'] = '" + (variant.requireAmount ?: "N") + "';\n")
|
||||
if (variantPriceMap && variantPriceMap.basePrice) {
|
||||
variantPriceJS.append(" if (sku == \"" + variant.productId + "\") return \"" + UtilFormatOut.formatCurrency(variantPriceMap.basePrice, currencyUomId, locale, 10) + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + variant.productId + "'] = '" + UtilFormatOut.formatCurrency(variantPriceMap.basePrice, currencyUomId, locale, 10) + "';\n")
|
||||
}
|
||||
|
||||
// make a list of virtual variants sku with requireAmount
|
||||
@@ -481,9 +488,11 @@ if (product) {
|
||||
}
|
||||
variantPriceList.add(virtualPriceMap)
|
||||
variantPriceJS.append(" if (sku == \"" + virtual.productId + "\") return \"" + UtilFormatOut.formatCurrency(variantPriceMap.basePrice, currencyUomId, locale, 10) + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + virtual.productId + "'] = '" + UtilFormatOut.formatCurrency(variantPriceMap.basePrice, currencyUomId, locale, 10) + "';\n")
|
||||
} else {
|
||||
virtualPriceMap = runService('calculatePurchasePrice', priceContext)
|
||||
variantPriceJS.append(" if (sku == \"" + virtual.productId + "\") return \"" + UtilFormatOut.formatCurrency(variantPriceMap.price, currencyUomId, locale, 10) + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + virtual.productId + "'] = '" + UtilFormatOut.formatCurrency(variantPriceMap.price, currencyUomId, locale, 10) + "';\n")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -537,9 +546,11 @@ if (product) {
|
||||
// Get the minimum quantity for variants if MINIMUM_ORDER_PRICE is set for variants.
|
||||
virtualVariantPriceList.add(virtualPriceMap)
|
||||
variantPriceJS.append(" if (sku == \"" + virtual.productId + "\") return \"" + UtilFormatOut.formatCurrency(virtualPriceMap.basePrice, currencyUomId, locale, 10) + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + virtual.productId + "'] = '" + UtilFormatOut.formatCurrency(virtualPriceMap.basePrice, currencyUomId, locale, 10) + "';\n")
|
||||
} else {
|
||||
virtualPriceMap = runService('calculatePurchasePrice', priceContext)
|
||||
variantPriceJS.append(" if (sku == \"" + virtual.productId + "\") return \"" + UtilFormatOut.formatCurrency(virtualPriceMap.price, currencyUomId, locale, 10) + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + virtual.productId + "'] = '" + UtilFormatOut.formatCurrency(virtualPriceMap.price, currencyUomId, locale, 10) + "';\n")
|
||||
}
|
||||
}
|
||||
variantPriceJS.append(" } ")
|
||||
@@ -552,6 +563,9 @@ if (product) {
|
||||
}
|
||||
}
|
||||
}
|
||||
variantInfoJS.append(" variantPrices['" + product.productId + "'] = '" + UtilFormatOut.formatCurrency(priceMap.basePrice, currencyUomId, locale, 10) + "';\n")
|
||||
variantInfoJS.append(" });\n</script>\n")
|
||||
context.variantInfoJavaScript = variantInfoJS
|
||||
|
||||
availableInventory = 0.0
|
||||
|
||||
|
||||
@@ -97,8 +97,12 @@ if (product) {
|
||||
categoryId = null
|
||||
reviews = null
|
||||
if (product) {
|
||||
numberFormat = NumberFormat.getCurrencyInstance(locale)
|
||||
categoryId = parameters.category_id ?: request.getAttribute("productCategoryId")
|
||||
|
||||
variantInfoJS = new StringBuffer()
|
||||
variantInfoJS.append("<script language=\"JavaScript\" type=\"text/javascript\">\n jQuery(document).ready(function(jQuery) {\n")
|
||||
|
||||
// get the product price
|
||||
if (cart.isSalesOrder()) {
|
||||
// sales order: run the "calculateProductPrice" service
|
||||
@@ -167,7 +171,6 @@ if (product) {
|
||||
}
|
||||
}
|
||||
variantPriceList = []
|
||||
numberFormat = NumberFormat.getCurrencyInstance(locale)
|
||||
|
||||
if(virtualVariants){
|
||||
amt = new StringBuffer()
|
||||
@@ -194,6 +197,7 @@ if (product) {
|
||||
basePrice = UtilProperties.getResourceBundleMap("CommonUiLabels", locale).get("CommonNA")
|
||||
}
|
||||
variantPriceJS.append(" if (sku == \"" + virtual.productId + "\") return \"" + basePrice + "\"; ")
|
||||
variantInfoJS.append(" variantPrices['" + virtual.productId + "'] = '" + basePrice + "';\n")
|
||||
}
|
||||
variantPriceJS.append(" } ")
|
||||
|
||||
@@ -204,6 +208,10 @@ if (product) {
|
||||
context.virtualJavaScript = jsBuf
|
||||
}
|
||||
}
|
||||
variantInfoJS.append(" variantPrices['" + product.productId + "'] = '" + numberFormat.format(priceMap.basePrice) + "';\n")
|
||||
variantInfoJS.append(" });\n</script>\n")
|
||||
context.variantInfoJavaScript = variantInfoJS
|
||||
|
||||
context.mainProducts = mainProducts
|
||||
}
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ orderAdjustments = null
|
||||
comments = null
|
||||
|
||||
if (orderId) {
|
||||
orderHeader = from('OrderHeader').where('orderId', orderId).cache(false).queryFirst()
|
||||
orderHeader = from('OrderHeader').where('orderId', orderId).queryOne()
|
||||
comments = select("orderItemSeqId", "changeComments", "changeDatetime", "changeUserLogin").from("OrderItemChange").where(UtilMisc.toList(EntityCondition.makeCondition("orderId", EntityOperator.EQUALS, orderId))).orderBy("-changeDatetime").queryList()
|
||||
}
|
||||
|
||||
|
||||
@@ -21,6 +21,9 @@ import org.apache.ofbiz.order.order.OrderContentWrapper
|
||||
|
||||
orderHeader = context.orderHeader
|
||||
|
||||
// can anybody view an anonymous order? this is set in the screen widget and should only be turned on by an email confirmation screen
|
||||
allowAnonymousView = context.allowAnonymousView
|
||||
|
||||
// if orderHeader is null in OrderView.groovy then it is not null but void here!
|
||||
if (orderHeader) {
|
||||
// set hasPermission, must always exist if the orderHeader != null
|
||||
@@ -44,9 +47,28 @@ if (orderHeader) {
|
||||
hasPermission = true
|
||||
}
|
||||
}
|
||||
// This is related with OFBIZ-11836 "IDOR vulnerability in the order processing feature"
|
||||
if (parameters.localDispatcherName.equals("ecommerce")) {
|
||||
List errMsgList = []
|
||||
if (orderHeader.createdBy.equals(person.partyId)
|
||||
|| ("anonymous".equals(orderHeader.createdBy) && "Y".equals(allowAnonymousView))) {
|
||||
hasPermission = true
|
||||
canViewInternalDetails = true
|
||||
} else {
|
||||
hasPermission = false
|
||||
canViewInternalDetails = false
|
||||
errMsgList.add("It's not an error : you are not allowed to view this!")
|
||||
showErrorMsg = "Y"
|
||||
request.setAttribute("_ERROR_MESSAGE_LIST_", errMsgList)
|
||||
context.showErrorMsg = showErrorMsg
|
||||
}
|
||||
}
|
||||
|
||||
context.hasPermission = hasPermission
|
||||
context.canViewInternalDetails = canViewInternalDetails
|
||||
|
||||
orderContentWrapper = OrderContentWrapper.makeOrderContentWrapper(orderHeader, request)
|
||||
context.orderContentWrapper = orderContentWrapper
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ under the License.
|
||||
<set field="curUserPcmFindMap.contactMechTypeId" value="EMAIL_ADDRESS"/>
|
||||
<find-by-and entity-name="PartyAndContactMech" map="curUserPcmFindMap" list="curUserPartyAndContactMechs"/>
|
||||
<first-from-list list="curUserPartyAndContactMechs" entry="curUserPartyAndContactMech"/>
|
||||
<string-append field="sendEmailMap.sendFrom" string="${curUserPartyAndContactMech.infoString}" prefix=","/>
|
||||
<string-append field="sendEmailMap.sendFrom" string="${curUserPartyAndContactMech.infoString}"/>
|
||||
|
||||
<!-- find email addresses of all parties in SHIPMENT_CLERK roleTypeId, set as sendTo -->
|
||||
<set value="SHIPMENT_CLERK" field="shipmentClerkFindMap.roleTypeId"/>
|
||||
|
||||
@@ -763,6 +763,18 @@ under the License.
|
||||
<set-service-fields service-name="createOrderContactMech" map="inputMap" to-map="removeOrderContactMechMap"/>
|
||||
<call-service service-name="removeOrderContactMech" in-map-name="removeOrderContactMechMap" include-user-login="true"/>
|
||||
</if-empty>
|
||||
|
||||
<!-- Update promisedDateTime & currentPromisedDate in OrderItemShipGrpInvRes entity-->
|
||||
<set field="itemShipGrpInvResLookupMap.orderId" from="parameters.orderId"/>
|
||||
<set field="itemShipGrpInvResLookupMap.shipGroupSeqId" from="parameters.shipGroupSeqId"/>
|
||||
<find-by-and entity-name="OrderItemShipGrpInvRes" map="itemShipGrpInvResLookupMap" list="itemShipGrpInvResList"/>
|
||||
<if-not-empty field="itemShipGrpInvResList">
|
||||
<iterate list="itemShipGrpInvResList" entry="orderItemShipGrpInvRes">
|
||||
<set field="orderItemShipGrpInvRes.promisedDatetime" from="parameters.shipByDate"/>
|
||||
<set field="orderItemShipGrpInvRes.currentPromisedDate" from="parameters.shipByDate"/>
|
||||
<store-value value-field="orderItemShipGrpInvRes"/>
|
||||
</iterate>
|
||||
</if-not-empty>
|
||||
</simple-method>
|
||||
|
||||
<simple-method method-name="getOrderItemShipGroupEstimatedShipDate" short-description="Compute and return the OrderItemShipGroup estimated ship date based on the associated items.">
|
||||
|
||||
@@ -1033,6 +1033,7 @@ public class OrderServices {
|
||||
delegator.storeAll(toBeStored);
|
||||
|
||||
List<String> resErrorMessages = new LinkedList<>();
|
||||
GenericValue permUserLogin = EntityQuery.use(delegator).from("UserLogin").where("userLoginId", "system").cache().queryOne();
|
||||
|
||||
// add a product service to inventory
|
||||
if (UtilValidate.isNotEmpty(orderItems)) {
|
||||
@@ -1066,14 +1067,13 @@ public class OrderServices {
|
||||
|
||||
Map<String, Object> ripCtx = new HashMap<>();
|
||||
if (UtilValidate.isNotEmpty(inventoryFacilityId) && UtilValidate.isNotEmpty(productId) && orderItem.getBigDecimal("quantity").compareTo(BigDecimal.ZERO) > 0) {
|
||||
// do something tricky here: run as the "system" user
|
||||
GenericValue permUserLogin = EntityQuery.use(delegator).from("UserLogin").where("userLoginId", "system").cache().queryOne();
|
||||
ripCtx.put("productId", productId);
|
||||
ripCtx.put("facilityId", inventoryFacilityId);
|
||||
ripCtx.put("inventoryItemTypeId", "SERIALIZED_INV_ITEM");
|
||||
ripCtx.put("statusId","INV_AVAILABLE");
|
||||
ripCtx.put("quantityAccepted", orderItem.getBigDecimal("quantity"));
|
||||
ripCtx.put("quantityRejected", 0.0);
|
||||
// do something tricky here: run as the "system" user
|
||||
ripCtx.put("userLogin", permUserLogin);
|
||||
try {
|
||||
Map<String, Object> ripResult = dispatcher.runSync("receiveInventoryProduct", ripCtx);
|
||||
@@ -1093,7 +1093,7 @@ public class OrderServices {
|
||||
|
||||
// START inventory reservation
|
||||
try {
|
||||
reserveInventory(delegator, dispatcher, userLogin, locale, orderItemShipGroupInfo, dropShipGroupIds, itemValuesBySeqId,
|
||||
reserveInventory(delegator, dispatcher, permUserLogin, locale, orderItemShipGroupInfo, dropShipGroupIds, itemValuesBySeqId,
|
||||
orderTypeId, productStoreId, resErrorMessages);
|
||||
} catch (GeneralException e) {
|
||||
return ServiceUtil.returnError(e.getMessage());
|
||||
@@ -2119,14 +2119,14 @@ public class OrderServices {
|
||||
}
|
||||
}
|
||||
|
||||
String reasonEnumId = null;
|
||||
if (UtilValidate.isNotEmpty(itemReasonMap)) {
|
||||
reasonEnumId = itemReasonMap.get(orderItem.getString("orderItemSeqId"));
|
||||
}
|
||||
|
||||
// create order item change record
|
||||
if (!"Y".equals(orderItem.getString("isPromo"))) {
|
||||
String reasonEnumId = null;
|
||||
String changeComments = null;
|
||||
if (UtilValidate.isNotEmpty(itemReasonMap)) {
|
||||
reasonEnumId = itemReasonMap.get(orderItem.getString("orderItemSeqId"));
|
||||
}
|
||||
if (UtilValidate.isNotEmpty(itemCommentMap)) {
|
||||
changeComments = itemCommentMap.get(orderItem.getString("orderItemSeqId"));
|
||||
}
|
||||
@@ -2174,7 +2174,7 @@ public class OrderServices {
|
||||
}
|
||||
}
|
||||
// all items are cancelled -- mark the item as cancelled
|
||||
Map<String, Object> statusCtx = UtilMisc.<String, Object>toMap("orderId", orderId, "orderItemSeqId", orderItem.getString("orderItemSeqId"), "statusId", itemStatus, "userLogin", userLogin);
|
||||
Map<String, Object> statusCtx = UtilMisc.<String, Object>toMap("orderId", orderId, "orderItemSeqId", orderItem.getString("orderItemSeqId"), "statusId", itemStatus, "changeReason", reasonEnumId, "userLogin", userLogin);
|
||||
try {
|
||||
dispatcher.runSyncIgnore("changeOrderItemStatus", statusCtx);
|
||||
} catch (GenericServiceException e) {
|
||||
@@ -2215,6 +2215,7 @@ public class OrderServices {
|
||||
String orderId = (String) context.get("orderId");
|
||||
String orderItemSeqId = (String) context.get("orderItemSeqId");
|
||||
String fromStatusId = (String) context.get("fromStatusId");
|
||||
String changeReason = (String) context.get("changeReason");
|
||||
String statusId = (String) context.get("statusId");
|
||||
Timestamp statusDateTime = (Timestamp) context.get("statusDateTime");
|
||||
Locale locale = (Locale) context.get("locale");
|
||||
@@ -2290,6 +2291,7 @@ public class OrderServices {
|
||||
changeFields.put("statusId", statusId);
|
||||
changeFields.put("orderId", orderId);
|
||||
changeFields.put("orderItemSeqId", orderItem.getString("orderItemSeqId"));
|
||||
changeFields.put("changeReason", changeReason);
|
||||
changeFields.put("statusDatetime", statusDateTime);
|
||||
changeFields.put("statusUserLogin", userLogin.getString("userLoginId"));
|
||||
GenericValue orderStatus = delegator.makeValue("OrderStatus", changeFields);
|
||||
|
||||
+11
@@ -1775,6 +1775,7 @@ public class ShoppingCartEvents {
|
||||
String catalogId = CatalogWorker.getCurrentCatalogId(request);
|
||||
String itemType = null;
|
||||
String itemDescription = "";
|
||||
Locale locale = UtilHttp.getLocale(request);
|
||||
|
||||
// Get the parameters as a MAP, remove the productId and quantity params.
|
||||
Map<String, Object> paramMap = UtilHttp.getParameterMap(request);
|
||||
@@ -1833,6 +1834,16 @@ public class ShoppingCartEvents {
|
||||
quantity = BigDecimal.ONE;
|
||||
}
|
||||
|
||||
// get the renting data if the product quanity is more than 0
|
||||
if (quantity.compareTo(BigDecimal.ZERO) > 0) {
|
||||
if ("ASSET_USAGE".equals(ProductWorker.getProductTypeId(delegator, productId))
|
||||
|| "ASSET_USAGE_OUT_IN".equals(ProductWorker.getProductTypeId(delegator, productId))) {
|
||||
request.setAttribute("product_id", productId);
|
||||
request.setAttribute("_EVENT_MESSAGE_",
|
||||
UtilProperties.getMessage(resource_error, "cart.addToCart.enterBookingInforamtionBeforeAddingToCart", locale));
|
||||
return "product";
|
||||
}
|
||||
}
|
||||
// get the selected amount
|
||||
String selectedAmountStr = null;
|
||||
if (paramMap.containsKey("amount" + thisSuffix)) {
|
||||
|
||||
@@ -185,7 +185,7 @@ function submitForm(form, mode, value) {
|
||||
</#if>
|
||||
<#-- end code to display a small image of the product -->
|
||||
<a href="<@ofbizUrl>product?product_id=${cartLine.getProductId()}</@ofbizUrl>" class="buttontext">${cartLine.getProductId()} -
|
||||
${cartLine.getName(dispatcher)!}</a> : ${cartLine.getDescription(dispatcher)!}
|
||||
${StringUtil.wrapString(cartLine.getName(dispatcher))!}</a> : ${StringUtil.wrapString(cartLine.getDescription(dispatcher))!}
|
||||
|
||||
<#-- display the registered ship groups and quantity -->
|
||||
<#assign itemShipGroups = cart.getShipGroups(cartLine)>
|
||||
@@ -205,7 +205,7 @@ function submitForm(form, mode, value) {
|
||||
|
||||
<#else>
|
||||
<#-- this is a non-product item -->
|
||||
<b>${cartLine.getItemTypeDescription()!}</b> : ${cartLine.getName(dispatcher)!}
|
||||
<b>${StringUtil.wrapString(cartLine.getItemTypeDescription())!}</b> : ${StringUtil.wrapString(cartLine.getName(dispatcher))!}
|
||||
</#if>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -60,12 +60,12 @@ under the License.
|
||||
<td>
|
||||
<#if cartLine.getProductId()??>
|
||||
<#if cartLine.getParentProductId()??>
|
||||
<a href="<@ofbizCatalogAltUrl productId=cartLine.getParentProductId()/>" class="linktext">${cartLine.getName(dispatcher)}</a>
|
||||
<a href="<@ofbizCatalogAltUrl productId=cartLine.getParentProductId()/>" class="linktext">${StringUtil.wrapString(cartLine.getName(dispatcher))}</a>
|
||||
<#else>
|
||||
<a href="<@ofbizCatalogAltUrl productId=cartLine.getProductId()/>" class="linktext">${cartLine.getName(dispatcher)}</a>
|
||||
<a href="<@ofbizCatalogAltUrl productId=cartLine.getProductId()/>" class="linktext">${StringUtil.wrapString(cartLine.getName(dispatcher))}</a>
|
||||
</#if>
|
||||
<#else>
|
||||
<strong>${cartLine.getItemTypeDescription()!}</strong>
|
||||
<strong>${StringUtil.wrapString(cartLine.getItemTypeDescription())!}</strong>
|
||||
</#if>
|
||||
</td>
|
||||
<td><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></td>
|
||||
|
||||
@@ -80,8 +80,8 @@ under the License.
|
||||
<#if cartLine.getProductId()??>
|
||||
<#-- product item -->
|
||||
<a href="<@ofbizUrl>product?product_id=${cartLine.getProductId()}</@ofbizUrl>" class="buttontext">${cartLine.getProductId()}</a> -
|
||||
<input size="60" type="text" name="description_${cartLineIndex}" value="${cartLine.getName(dispatcher)?default("")}"/><br />
|
||||
<i>${cartLine.getDescription(dispatcher)!}</i>
|
||||
<input size="60" type="text" name="description_${cartLineIndex}" value="${StringUtil.wrapString(cartLine.getName(dispatcher))?default("")}"/><br />
|
||||
<i>${StringUtil.wrapString(cartLine.getDescription(dispatcher))!}</i>
|
||||
<#if shoppingCart.getOrderType() != "PURCHASE_ORDER">
|
||||
<#-- only applies to sales orders, not purchase orders -->
|
||||
<#-- if inventory is not required check to see if it is out of stock and needs to have a message shown about that... -->
|
||||
@@ -93,7 +93,7 @@ under the License.
|
||||
</#if>
|
||||
<#else>
|
||||
<#-- this is a non-product item -->
|
||||
<b>${cartLine.getItemTypeDescription()!}</b> : ${cartLine.getName(dispatcher)!}
|
||||
<b>${StringUtil.wrapString(StringUtil.wrapString(cartLine.getItemTypeDescription()))!}</b> : ${StringUtil.wrapString(cartLine.getName(dispatcher))!}
|
||||
</#if>
|
||||
<#-- display the item's features -->
|
||||
<#assign features = "">
|
||||
@@ -132,7 +132,7 @@ under the License.
|
||||
</#if>
|
||||
<#if cartLine.getItemComment()?has_content>
|
||||
<tr><td><div>${uiLabelMap.CommonComment} : </div></td>
|
||||
<td><div><input size="60" type="text" name="comment_${cartLineIndex}" value="${cartLine.getItemComment()?default("")}"/><br /></div></td>
|
||||
<td><div><input size="60" type="text" name="comment_${cartLineIndex}" value="${StringUtil.wrapString(cartLine.getItemComment())?default("")}"/><br /></div></td>
|
||||
</tr>
|
||||
</#if>
|
||||
<#if cartLine.getDesiredDeliveryDate()?has_content>
|
||||
|
||||
@@ -60,7 +60,7 @@ under the License.
|
||||
</#macro>
|
||||
|
||||
<@paginationControls/>
|
||||
<div class="productsummary-container">
|
||||
<div class="productsummary-container row">
|
||||
<#list productIds as productId> <#-- note that there is no boundary range because that is being done before the list is put in the content -->
|
||||
${setRequestAttribute("optProductId", productId)}
|
||||
${setRequestAttribute("listIndex", productId_index)}
|
||||
|
||||
@@ -17,57 +17,31 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<#-- variable setup -->
|
||||
<#assign price = priceMap!/>
|
||||
<#assign price = priceMap! />
|
||||
<#-- end variable setup -->
|
||||
|
||||
<#-- virtual product javascript -->
|
||||
${virtualJavaScript!}
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
${virtualVariantJavaScript!}
|
||||
<script type="application/javascript">
|
||||
<!--
|
||||
var detailImageUrl = null;
|
||||
function setAddProductId(name) {
|
||||
document.addform.add_product_id.value = name;
|
||||
if (document.addform.quantity == null) return;
|
||||
if (name == '' || name == 'NULL' || isVirtual(name) == true) {
|
||||
document.addform.quantity.disabled = true;
|
||||
var elem = document.getElementById('product_id_display');
|
||||
var txt = document.createTextNode('');
|
||||
if(elem.hasChildNodes()) {
|
||||
elem.replaceChild(txt, elem.firstChild);
|
||||
} else {
|
||||
elem.appendChild(txt);
|
||||
}
|
||||
} else {
|
||||
document.addform.quantity.disabled = false;
|
||||
var elem = document.getElementById('product_id_display');
|
||||
var txt = document.createTextNode(name);
|
||||
if(elem.hasChildNodes()) {
|
||||
elem.replaceChild(txt, elem.firstChild);
|
||||
} else {
|
||||
elem.appendChild(txt);
|
||||
}
|
||||
function setAddProductId2(sku, with_bak) {
|
||||
document.addform.add_product_id.value = sku;
|
||||
var disable = (sku == '' || sku == 'NULL' || isVirtual(sku) == true);
|
||||
if (document.addform.quantity != null) {
|
||||
document.addform.quantity.disabled = disable;
|
||||
}
|
||||
var txt = disable ? '' : sku;
|
||||
$('#product_id_display').text(txt);
|
||||
if (with_bak) {
|
||||
document.addform.product_id_bak.value = txt;
|
||||
}
|
||||
}
|
||||
function setVariantPrice(sku) {
|
||||
if (sku == '' || sku == 'NULL' || isVirtual(sku) == true) {
|
||||
var elem = document.getElementById('variant_price_display');
|
||||
var txt = document.createTextNode('');
|
||||
if(elem.hasChildNodes()) {
|
||||
elem.replaceChild(txt, elem.firstChild);
|
||||
} else {
|
||||
elem.appendChild(txt);
|
||||
}
|
||||
}
|
||||
else {
|
||||
var elem = document.getElementById('variant_price_display');
|
||||
var price = getVariantPrice(sku);
|
||||
var txt = document.createTextNode(price);
|
||||
if(elem.hasChildNodes()) {
|
||||
elem.replaceChild(txt, elem.firstChild);
|
||||
} else {
|
||||
elem.appendChild(txt);
|
||||
}
|
||||
}
|
||||
function setVariantPrice2(sku) {
|
||||
var disable = (sku == '' || sku == 'NULL' || isVirtual(sku) == true);
|
||||
var txt = disable ? '' : getVariantPrice2(sku);
|
||||
$('#variant_price_display').text(txt || '');
|
||||
}
|
||||
function isVirtual(product) {
|
||||
var isVirtual = false;
|
||||
@@ -159,11 +133,15 @@ ${virtualJavaScript!}
|
||||
} else {
|
||||
var Variable1 = eval("list" + OPT[(currentFeatureIndex+1)] + selectedValue + "()");
|
||||
}
|
||||
|
||||
// reset uom select
|
||||
$('#product_uom').text('');
|
||||
|
||||
// set the product ID to NULL to trigger the alerts
|
||||
setAddProductId('NULL');
|
||||
setAddProductId2('NULL');
|
||||
|
||||
// set the variant price to NULL
|
||||
setVariantPrice('NULL');
|
||||
setVariantPrice2('NULL');
|
||||
} else {
|
||||
// this is the final selection -- locate the selected index of the last selection
|
||||
var indexSelected = document.forms["addform"].elements[name].selectedIndex;
|
||||
@@ -175,13 +153,13 @@ ${virtualJavaScript!}
|
||||
ajaxUpdateArea("product_uom", "<@ofbizUrl>ProductUomDropDownOnly</@ofbizUrl>", "productId=" + sku);
|
||||
|
||||
// set the product ID
|
||||
setAddProductId(sku);
|
||||
setAddProductId2(sku, true);
|
||||
|
||||
// set the variant price
|
||||
setVariantPrice(sku);
|
||||
setVariantPrice2(sku);
|
||||
|
||||
// check for amount box
|
||||
toggleAmt(checkAmtReq(sku));
|
||||
toggleAmt(checkAmtReq2(sku));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -208,7 +186,7 @@ ${virtualJavaScript!}
|
||||
}
|
||||
|
||||
function showAlert(msg) {
|
||||
showErrorAlert("${uiLabelMap.CommonErrorMessage2}",msg);
|
||||
showErrorAlert("${uiLabelMap.CommonErrorMessage2}", msg);
|
||||
}
|
||||
|
||||
function additemSubmit(){
|
||||
@@ -266,21 +244,11 @@ ${virtualJavaScript!}
|
||||
block2.style.display = "none";
|
||||
}
|
||||
</#if>
|
||||
|
||||
function displayProductVirtualVariantId(variantId) {
|
||||
document.addform.product_id.value = variantId;
|
||||
var elem = document.getElementById('product_id_display');
|
||||
var txt = document.createTextNode(variantId);
|
||||
if(elem.hasChildNodes()) {
|
||||
elem.replaceChild(txt, elem.firstChild);
|
||||
} else {
|
||||
elem.appendChild(txt);
|
||||
}
|
||||
setVariantPrice(variantId);
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
|
||||
${screens.render("component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productvariantjs")}
|
||||
${variantInfoJavaScript!}
|
||||
<div id="productdetail">
|
||||
|
||||
<table border="0" cellpadding="2" cellspacing="0" width="100%">
|
||||
@@ -321,9 +289,9 @@ ${virtualJavaScript!}
|
||||
<#if sizeProductFeatureAndAppls?has_content>
|
||||
<div>
|
||||
<#if (sizeProductFeatureAndAppls?size == 1)>
|
||||
Size:
|
||||
${uiLabelMap.OrderSizeAvailableSingle}:
|
||||
<#else>
|
||||
Sizes Available:
|
||||
${uiLabelMap.OrderSizeAvailableMultiple}:
|
||||
</#if>
|
||||
<#list sizeProductFeatureAndAppls as sizeProductFeatureAndAppl>
|
||||
${sizeProductFeatureAndAppl.description?default(sizeProductFeatureAndAppl.abbrev?default(sizeProductFeatureAndAppl.productFeatureId))}<#if sizeProductFeatureAndAppl_has_next>,</#if>
|
||||
@@ -435,9 +403,11 @@ ${virtualJavaScript!}
|
||||
<form method="post" action="<@ofbizUrl>additem<#if requestAttributes._CURRENT_VIEW_??>/${requestAttributes._CURRENT_VIEW_}</#if></@ofbizUrl>" name="addform" style="margin: 0;">
|
||||
<#if requestAttributes.paramMap?has_content>
|
||||
<input type="hidden" name="itemComment" value="${requestAttributes.paramMap.itemComment!}" />
|
||||
<input type="hidden" name="useAsDefaultComment" value="${requestAttributes.paramMap.useAsDefaultComment!}" />
|
||||
<input type="hidden" name="shipBeforeDate" value="${requestAttributes.paramMap.shipBeforeDate!}" />
|
||||
<input type="hidden" name="shipAfterDate" value="${requestAttributes.paramMap.shipAfterDate!}" />
|
||||
<input type="hidden" name="itemDesiredDeliveryDate" value="${requestAttributes.paramMap.itemDesiredDeliveryDate!}" />
|
||||
<input type="hidden" name="useAsDefaultDesiredDeliveryDate" value="${requestAttributes.paramMap.useAsDefaultDesiredDeliveryDate!}" />
|
||||
</#if>
|
||||
<#assign inStock = true>
|
||||
<#-- Variant Selection -->
|
||||
@@ -479,13 +449,14 @@ ${virtualJavaScript!}
|
||||
</select>
|
||||
</div>
|
||||
</#list>
|
||||
<span id="product_uom"></span>
|
||||
<span id="product_uom"></span><br/>
|
||||
<input type="hidden" name="product_id_bak" value=""/>
|
||||
<div class="variant-price" style="display: inline-block;">
|
||||
<strong><span id="product_id_display" class="product_id_display"> </span></strong>
|
||||
<strong><span id="variant_price_display" class="variant_price_display"> </span></strong>
|
||||
</div>
|
||||
<input type="hidden" name="product_id" value="${product.productId}"/>
|
||||
<input type="hidden" name="add_product_id" value="NULL"/>
|
||||
<div>
|
||||
<b><span id="product_id_display"> </span></b>
|
||||
<b><div id="variant_price_display"> </div></b>
|
||||
</div>
|
||||
<#else>
|
||||
<input type="hidden" name="product_id" value="${product.productId}"/>
|
||||
<input type="hidden" name="add_product_id" value="NULL"/>
|
||||
@@ -496,6 +467,19 @@ ${virtualJavaScript!}
|
||||
<#else>
|
||||
<input type="hidden" name="product_id" value="${product.productId}"/>
|
||||
<input type="hidden" name="add_product_id" value="${product.productId}"/>
|
||||
<#if mainProducts?has_content>
|
||||
<select name="productVariantId" class="form-control" onchange="javascript:variantUomSelection(this);">
|
||||
<option value="">${uiLabelMap.CommonSelect} ${uiLabelMap.ProductUnitOfMeasure}</option>
|
||||
<#list mainProducts as mainProduct>
|
||||
<option value="${mainProduct.productId}">${mainProduct.uomDesc} : ${mainProduct.piecesIncluded}</option>
|
||||
</#list>
|
||||
</select><br/>
|
||||
<input type="hidden" name="product_id_bak" value="${product.productId}"/>
|
||||
<div class="variant-price" style="display: inline-block;">
|
||||
<strong><span class="product_id_display"> </span></strong>
|
||||
<strong><span class="variant_price_display"> </span></strong>
|
||||
</div>
|
||||
</#if>
|
||||
<#if productStoreId??>
|
||||
<#assign isStoreInventoryNotAvailable = !(Static["org.apache.ofbiz.product.store.ProductStoreWorker"].isStoreInventoryAvailable(request, product, 1.0?double))>
|
||||
<#assign isStoreInventoryRequired = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].isStoreInventoryRequired(request, product)>
|
||||
@@ -509,7 +493,7 @@ ${virtualJavaScript!}
|
||||
</#if>
|
||||
</#if>
|
||||
</#if>
|
||||
</td></tr><tr><td colspan="2" align="right">
|
||||
<div>
|
||||
<#-- check to see if introductionDate hasnt passed yet -->
|
||||
<#if product.introductionDate?? && nowTimestamp.before(product.introductionDate)>
|
||||
<p> </p>
|
||||
@@ -538,7 +522,7 @@ ${virtualJavaScript!}
|
||||
<td nowrap="nowrap" align="right">Number of persons</td>
|
||||
<td><input type="text" size="4" name="reservPersons" value="2"/></td>
|
||||
</#if>
|
||||
<td nowrap="nowrap" align="right">Quantity</td>
|
||||
<td nowrap="nowrap" align="right">${uiLabelMap.CommonQuantity}</td>
|
||||
<td><input type="text" size="5" name="quantity" value="1"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -552,7 +536,10 @@ ${virtualJavaScript!}
|
||||
<input type="hidden" name="category_id" value="${requestParameters.category_id}"/>
|
||||
</#if>
|
||||
</#if>
|
||||
</div>
|
||||
</form>
|
||||
</td></tr>
|
||||
<tr><td colspan="2" align="right">
|
||||
<div>
|
||||
<#if sessionAttributes.userLogin?has_content && sessionAttributes.userLogin.userLoginId != "anonymous">
|
||||
<hr />
|
||||
|
||||
@@ -51,6 +51,8 @@ ${virtualJavaScript!}
|
||||
}
|
||||
//-->
|
||||
</script>
|
||||
${screens.render("component://order/widget/ordermgr/OrderEntryCatalogScreens.xml#productvariantjs")}
|
||||
${variantInfoJavaScript!}
|
||||
<#if product??>
|
||||
<#-- variable setup -->
|
||||
<#if "Y" == backendPath?default("N")>
|
||||
@@ -94,6 +96,8 @@ ${virtualJavaScript!}
|
||||
</table>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
jQuery(document).ready(function(jQuery) {
|
||||
jQuery("#${productInfoLinkId}").attr('title', jQuery("#${productDetailId}").remove().html());
|
||||
jQuery("#${productInfoLinkId}").tooltip({
|
||||
content: function(){
|
||||
@@ -102,6 +106,8 @@ ${virtualJavaScript!}
|
||||
tooltipClass: "popup",
|
||||
track: true
|
||||
});
|
||||
});
|
||||
*/
|
||||
</script>
|
||||
<div class="productbuy">
|
||||
<#-- check to see if introductionDate hasn't passed yet -->
|
||||
@@ -133,15 +139,16 @@ ${virtualJavaScript!}
|
||||
<a href="javascript:document.the${requestAttributes.formNamePrefix!}${requestAttributes.listIndex!}form.submit()" class="buttontext">${uiLabelMap.OrderAddToCart}</a>
|
||||
<#if mainProducts?has_content>
|
||||
<input type="hidden" name="product_id" value=""/>
|
||||
<select name="productVariantId" onchange="javascript:displayProductVirtualId(this.value, '${product.productId}', this.form);">
|
||||
<option value="">Select Unit Of Measure</option>
|
||||
<select name="productVariantId" onchange="javascript:variantUomSelection(this);" style="width: 100%;">
|
||||
<option value="">${uiLabelMap.CommonSelect} ${uiLabelMap.ProductUnitOfMeasure}</option>
|
||||
<#list mainProducts as mainProduct>
|
||||
<option value="${mainProduct.productId}">${mainProduct.uomDesc} : ${mainProduct.piecesIncluded}</option>
|
||||
</#list>
|
||||
</select>
|
||||
<div style="display: inline-block;">
|
||||
<strong><span id="product_id_display"> </span></strong>
|
||||
<strong><span id="variant_price_display"> </span></strong>
|
||||
<input type="hidden" name="product_id_bak" value="${product.productId}"/>
|
||||
<div class="variant-price" style="display: inline-block;">
|
||||
<strong><span class="product_id_display"> </span></strong>
|
||||
<strong><span class="variant_price_display"> </span></strong>
|
||||
</div>
|
||||
</#if>
|
||||
</form>
|
||||
|
||||
@@ -17,8 +17,8 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<#if product?? && mainProducts??>
|
||||
<select name="parentProductId" onchange="javascript:displayProductVirtualVariantId(this.value);">
|
||||
<option value="">Select Unit Of Measure</option>
|
||||
<select name="parentProductId" onchange="javascript:variantUomSelection(this);">
|
||||
<option value="">${uiLabelMap.CommonSelect} ${uiLabelMap.ProductUnitOfMeasure}</option>
|
||||
<#list mainProducts as mainProduct>
|
||||
<option value="${mainProduct.productId}">${mainProduct.uomDesc} : ${mainProduct.piecesIncluded}</option>
|
||||
</#list>
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
<#--
|
||||
Licensed to the Apache Software Foundation (ASF) under one
|
||||
or more contributor license agreements. See the NOTICE file
|
||||
distributed with this work for additional information
|
||||
regarding copyright ownership. The ASF licenses this file
|
||||
to you under the Apache License, Version 2.0 (the
|
||||
"License"); you may not use this file except in compliance
|
||||
with the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing,
|
||||
software distributed under the License is distributed on an
|
||||
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, either express or implied. See the License for the
|
||||
specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
if (typeof(checkAmtReq2) == 'undefined') {
|
||||
|
||||
var variantReqAmounts = {};
|
||||
function checkAmtReq2(sku) {
|
||||
return variantReqAmounts[sku];
|
||||
}
|
||||
|
||||
var variantPrices = {};
|
||||
function getVariantPrice2(sku) {
|
||||
return variantPrices[sku];
|
||||
}
|
||||
|
||||
function variantUomSelection (select) {
|
||||
var $select = $(select);
|
||||
var form = $select.closest('form');
|
||||
var variantId = $select.val();
|
||||
$("[name='product_id']", form).val(variantId);
|
||||
if (!variantId) {
|
||||
variantId = $("[name='product_id_bak']", form).val() || '';
|
||||
}
|
||||
|
||||
$('.product_id_display', form).text(variantId);
|
||||
var price = getVariantPrice2(variantId);
|
||||
$('.variant_price_display', form).text(price || '');
|
||||
// var price_div = $('.variant-price', form);
|
||||
// if (price) {
|
||||
// price_div.css('display', 'inline-block');
|
||||
// }
|
||||
// else {
|
||||
// price_div.hide();
|
||||
// }
|
||||
}
|
||||
|
||||
jQuery(document).ready(function(jQuery) {
|
||||
jQuery('.popup_link').each(
|
||||
function(index) {
|
||||
var $this = jQuery(this);
|
||||
var popup = $('.popup', $this.closest('.productsummary'));
|
||||
$this.attr('title', popup.remove().html());
|
||||
$this.tooltip({
|
||||
content: function(){
|
||||
return this.getAttribute("title");
|
||||
},
|
||||
tooltipClass: "popup",
|
||||
track: true
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@@ -35,74 +35,46 @@ under the License.
|
||||
</#if>
|
||||
|
||||
<#if sendingPartyTaxId?? || phone?? || email?? || website?? || eftAccount??>
|
||||
<fo:list-block provisional-distance-between-starts=".5in">
|
||||
<#if sendingPartyTaxId??>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.PartyTaxId}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${sendingPartyTaxId}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:block>${uiLabelMap.PartyTaxId}: ${sendingPartyTaxId}</fo:block>
|
||||
</#if>
|
||||
<#if phone??>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonTelephoneAbbr}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block><#if phone.countryCode??>${phone.countryCode}-</#if><#if phone.areaCode??>${phone.areaCode}-</#if>${phone.contactNumber!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:block>${uiLabelMap.CommonTelephoneAbbr}: <#if phone.countryCode??>${phone.countryCode}-</#if><#if phone.areaCode??>${phone.areaCode}-</#if>${phone.contactNumber!}</fo:block>
|
||||
</#if>
|
||||
<#if email??>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonEmail}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${email.infoString!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:block>${uiLabelMap.CommonEmail}: ${email.infoString!}</fo:block>
|
||||
</#if>
|
||||
<#if website??>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonWebsite}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${website.infoString!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:block>${uiLabelMap.CommonWebsite}: ${website.infoString!}</fo:block>
|
||||
</#if>
|
||||
<#if eftAccount??>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonFinBankName}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${eftAccount.bankName!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonRouting}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${eftAccount.routingNumber!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonBankAccntNrAbbr}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${eftAccount.accountNumber!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:list-block provisional-distance-between-starts=".5in">
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonFinBankName}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${eftAccount.bankName!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonRouting}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${eftAccount.routingNumber!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
<fo:list-item>
|
||||
<fo:list-item-label>
|
||||
<fo:block>${uiLabelMap.CommonBankAccntNrAbbr}:</fo:block>
|
||||
</fo:list-item-label>
|
||||
<fo:list-item-body start-indent="body-start()">
|
||||
<fo:block>${eftAccount.accountNumber!}</fo:block>
|
||||
</fo:list-item-body>
|
||||
</fo:list-item>
|
||||
</fo:list-block>
|
||||
</#if>
|
||||
</fo:list-block>
|
||||
</#if>
|
||||
</fo:block>
|
||||
</#escape>
|
||||
|
||||
@@ -65,7 +65,6 @@ under the License.
|
||||
</tr>
|
||||
<#list orderItemList as orderItem>
|
||||
<#if orderItem.productId??> <#-- a null product may come from a quote -->
|
||||
<#assign orderItemContentWrapper = Static["org.apache.ofbiz.order.order.OrderContentWrapper"].makeOrderContentWrapper(orderItem, request)>
|
||||
<tr><td colspan="8"><hr /></td></tr>
|
||||
<tr>
|
||||
<#assign orderItemType = orderItem.getRelatedOne("OrderItemType", false)!>
|
||||
@@ -106,9 +105,6 @@ under the License.
|
||||
<div>
|
||||
<a href="/catalog/control/EditProduct?productId=${productId}" class="buttontext" target="_blank">${uiLabelMap.ProductCatalog}</a>
|
||||
<a href="/ecommerce/control/product?product_id=${productId}" class="buttontext" target="_blank">${uiLabelMap.OrderEcommerce}</a>
|
||||
<#if orderItemContentWrapper.get("IMAGE_URL", "url")?has_content>
|
||||
<a href="<@ofbizUrl>viewimage?orderId=${orderId}&orderItemSeqId=${orderItem.orderItemSeqId}&orderContentTypeId=IMAGE_URL</@ofbizUrl>" target="_orderImage" class="buttontext">${uiLabelMap.OrderViewImage}</a>
|
||||
</#if>
|
||||
</div>
|
||||
</#if>
|
||||
</td>
|
||||
|
||||
@@ -556,6 +556,7 @@ document.lookuporder.orderId.focus();
|
||||
<input type="hidden" name="viewSize"/>
|
||||
<input type="hidden" name="viewIndex"/>
|
||||
<input type="hidden" name="hideFields"/>
|
||||
<input type="hidden" name="showAll" value="Y"/>
|
||||
<#if paramIdList?? && paramIdList?has_content>
|
||||
<#list paramIdList as paramIds>
|
||||
<#assign paramId = paramIds.split("=")/>
|
||||
|
||||
@@ -45,7 +45,6 @@ under the License.
|
||||
<#else>
|
||||
<#assign itemClass = "2">
|
||||
<#list orderItemList as orderItem>
|
||||
<#assign orderItemContentWrapper = Static["org.apache.ofbiz.order.order.OrderContentWrapper"].makeOrderContentWrapper(orderItem, request)>
|
||||
<#assign orderItemShipGrpInvResList = orderReadHelper.getOrderItemShipGrpInvResList(orderItem)>
|
||||
<#if "SALES_ORDER" == orderHeader.orderTypeId><#assign pickedQty = orderReadHelper.getItemPickedQuantityBd(orderItem)></#if>
|
||||
<tr<#if "1" == itemClass> class="alternate-row"</#if>>
|
||||
@@ -89,10 +88,6 @@ under the License.
|
||||
</#if>
|
||||
<a href="/catalog/control/EditProduct?productId=${productId}${StringUtil.wrapString(externalKeyParam)}" class="buttontext" target="_blank">${uiLabelMap.ProductCatalog}</a>
|
||||
<a href="/ecommerce/control/product?product_id=${productId}" class="buttontext" target="_blank">${uiLabelMap.OrderEcommerce}</a>
|
||||
<#if orderItemContentWrapper.get("IMAGE_URL", "url")?has_content>
|
||||
<a href="<@ofbizUrl>viewimage?orderId=${orderId}&orderItemSeqId=${orderItem.orderItemSeqId}&orderContentTypeId=IMAGE_URL</@ofbizUrl>"
|
||||
target="_orderImage" class="buttontext">${uiLabelMap.OrderViewImage}</a>
|
||||
</#if>
|
||||
</div>
|
||||
</td>
|
||||
</#if>
|
||||
|
||||
@@ -41,7 +41,7 @@ under the License.
|
||||
<#if returnItems?has_content>
|
||||
<#assign orderId = (Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(returnItems)).getString("orderId")/>
|
||||
<#assign partyId = "${(returnHeader.fromPartyId)!}"/>
|
||||
<a href="<@ofbizUrl>setOrderCurrencyAgreementShipDates?partyId=${partyId!}&originOrderId=${orderId!}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateExchangeOrder} ${uiLabelMap.CommonFor} ${orderId!}</a>
|
||||
<li><a href="<@ofbizUrl>setOrderCurrencyAgreementShipDates?partyId=${partyId!}&originOrderId=${orderId!}</@ofbizUrl>" class="buttontext">${uiLabelMap.OrderCreateExchangeOrder} ${uiLabelMap.CommonFor} ${orderId!}</a></li>
|
||||
</#if>
|
||||
<#if returnHeader.statusId?has_content && "RETURN_ACCEPTED" == returnHeader.statusId>
|
||||
<#assign returnItems = EntityQuery.use(delegator).from("ReturnItem").where("returnId", returnId!).queryList()!/>
|
||||
|
||||
@@ -704,6 +704,7 @@ under the License.
|
||||
<event type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="bulkAddProducts"/>
|
||||
<response name="success" type="request" value="orderentry"/>
|
||||
<response name="error" type="request" value="orderentry"/>
|
||||
<response name="product" type="view" value="product"/>
|
||||
</request-map>
|
||||
|
||||
<request-map uri="bulkAddProductsInApprovedOrder">
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<display-name>Apache OFBiz - Order Manager</display-name>
|
||||
<description>Order Manager Module of the Apache OFBiz Project</description>
|
||||
|
||||
@@ -57,6 +57,11 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
|
||||
</filter>
|
||||
<filter>
|
||||
<display-name>SameSiteFilter</display-name>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
|
||||
</filter>
|
||||
<filter-mapping>
|
||||
<filter-name>ControlFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
@@ -65,6 +70,10 @@ under the License.
|
||||
<filter-name>ContextFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
<filter-mapping>
|
||||
<filter-name>SameSiteFilter</filter-name>
|
||||
<url-pattern>/*</url-pattern>
|
||||
</filter-mapping>
|
||||
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
|
||||
<listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
|
||||
|
||||
@@ -66,6 +66,14 @@ under the License.
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="productvariantjs">
|
||||
<section>
|
||||
<widgets>
|
||||
<platform-specific><html><html-template location="component://order/template/entry/catalog/ProductVariantJS.ftl"/></html></platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="breadcrumbs">
|
||||
<section>
|
||||
<actions>
|
||||
@@ -293,6 +301,8 @@ under the License.
|
||||
<screen name="ProductUomDropDownOnly">
|
||||
<section>
|
||||
<actions>
|
||||
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<script location="component://order/groovyScripts/entry/catalog/ProductUomDropDownOnly.groovy"/>
|
||||
</actions>
|
||||
<widgets>
|
||||
|
||||
@@ -27,55 +27,72 @@ under the License.
|
||||
<screen name="OrderPDF">
|
||||
<section>
|
||||
<actions>
|
||||
<set field="titleProperty" value="OrderOrder"/>
|
||||
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true"/>
|
||||
<set field="titleProperty" value="OrderOrder" />
|
||||
<property-map resource="OrderUiLabels" map-name="uiLabelMap" global="true" />
|
||||
<property-map resource="AccountingUiLabels" map-name="uiLabelMap" global="true" />
|
||||
<property-map resource="ProductUiLabels" map-name="uiLabelMap" global="true" />
|
||||
|
||||
<script location="component://order/groovyScripts/order/OrderView.groovy"/>
|
||||
<script location="component://order/groovyScripts/order/OrderView.groovy" />
|
||||
<script location="component://order/groovyScripts/order/OrderViewWebSecure.groovy" />
|
||||
</actions>
|
||||
<widgets>
|
||||
<decorator-screen name="FoReportDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<!-- at the top left of every page we put the logo and company information -->
|
||||
<decorator-section name="topLeft">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-screen name="CompanyLogo" location="component://order/widget/ordermgr/OrderPrintScreens.xml"/>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<!-- at the top right of every page we put the order information -->
|
||||
<decorator-section name="topRight">
|
||||
<section>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<xsl-fo><html-template location="component://order/template/order/OrderReportHeaderInfo.fo.ftl"/></xsl-fo>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<!-- the contach mechanisms, terms, payment and shipping methods are shown in the first page -->
|
||||
<platform-specific>
|
||||
<xsl-fo><html-template location="component://order/template/order/OrderReportContactMechs.fo.ftl"/></xsl-fo>
|
||||
</platform-specific>
|
||||
<!-- order items and totals -->
|
||||
<platform-specific>
|
||||
<xsl-fo><html-template location="component://order/template/order/OrderReportBody.fo.ftl"/></xsl-fo>
|
||||
</platform-specific>
|
||||
<!-- return policies and notes are shown in the last page -->
|
||||
<platform-specific>
|
||||
<xsl-fo><html-template location="component://order/template/order/OrderReportConditions.fo.ftl"/></xsl-fo>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
<section>
|
||||
<condition>
|
||||
<if-compare operator="equals" value="true" field="hasPermission" />
|
||||
</condition>
|
||||
<widgets>
|
||||
<decorator-screen name="FoReportDecorator" location="component://common/widget/CommonScreens.xml">
|
||||
<!-- at the top left of every page we put the logo and company information -->
|
||||
<decorator-section name="topLeft">
|
||||
<section>
|
||||
<widgets>
|
||||
<include-screen name="CompanyLogo" location="component://order/widget/ordermgr/OrderPrintScreens.xml" />
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<!-- at the top right of every page we put the order information -->
|
||||
<decorator-section name="topRight">
|
||||
<section>
|
||||
<widgets>
|
||||
<platform-specific>
|
||||
<xsl-fo>
|
||||
<html-template location="component://order/template/order/OrderReportHeaderInfo.fo.ftl" />
|
||||
</xsl-fo>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
<decorator-section name="body">
|
||||
<section>
|
||||
<widgets>
|
||||
<!-- the contach mechanisms, terms, payment and shipping methods are shown in the first page -->
|
||||
<platform-specific>
|
||||
<xsl-fo>
|
||||
<html-template location="component://order/template/order/OrderReportContactMechs.fo.ftl" />
|
||||
</xsl-fo>
|
||||
</platform-specific>
|
||||
<!-- order items and totals -->
|
||||
<platform-specific>
|
||||
<xsl-fo>
|
||||
<html-template location="component://order/template/order/OrderReportBody.fo.ftl" />
|
||||
</xsl-fo>
|
||||
</platform-specific>
|
||||
<!-- return policies and notes are shown in the last page -->
|
||||
<platform-specific>
|
||||
<xsl-fo>
|
||||
<html-template location="component://order/template/order/OrderReportConditions.fo.ftl" />
|
||||
</xsl-fo>
|
||||
</platform-specific>
|
||||
</widgets>
|
||||
</section>
|
||||
</decorator-section>
|
||||
</decorator-screen>
|
||||
</widgets>
|
||||
</section>
|
||||
</widgets>
|
||||
</section>
|
||||
</screen>
|
||||
|
||||
<screen name="CompanyLogo">
|
||||
<section>
|
||||
<actions>
|
||||
|
||||
@@ -454,8 +454,8 @@ under the License.
|
||||
<display-entity entity-name="Product" key-field-name="productId" description="${productId} - ${internalName}"/>
|
||||
</field>
|
||||
<field name="quantity" title="${uiLabelMap.CommonQuantity}"><display/></field>
|
||||
<field name="averageCost" title="${uiLabelMap.OrderOrderQuoteAverageCost}"><display/></field>
|
||||
<field name="quoteUnitPrice" title="${uiLabelMap.OrderOrderQuoteUnitPrice}"><display/></field>
|
||||
<field name="averageCost" title="${uiLabelMap.OrderOrderQuoteAverageCost}"><display/></field>
|
||||
<field name="profit" title="${uiLabelMap.OrderOrderQuoteProfit}"><display/></field>
|
||||
<field name="percProfit" title="${uiLabelMap.OrderOrderQuotePercProfit}"><display/></field>
|
||||
</form>
|
||||
|
||||
@@ -236,7 +236,7 @@ under the License.
|
||||
<widgets>
|
||||
<decorator-screen name="CommonQuoteDecorator" location="${parameters.quoteDecoratorLocation}">
|
||||
<decorator-section name="body">
|
||||
<screenlet title="${uiLabelMap.OrderOrderQuoteEdit}">
|
||||
<screenlet title="${groovy: parameters.quoteId ? uiLabelMap.OrderOrderQuoteEdit : uiLabelMap.OrderNewQuote}">
|
||||
<include-form name="EditQuote" location="component://order/widget/ordermgr/QuoteForms.xml"/>
|
||||
</screenlet>
|
||||
</decorator-section>
|
||||
|
||||
@@ -3970,35 +3970,35 @@
|
||||
<value xml:lang="zh-TW">合約終止</value>
|
||||
</property>
|
||||
<property key="TermType.description.CFR">
|
||||
<value xml:lang="de">Incoterm Kosten und Fracht</value>
|
||||
<value xml:lang="en">Incoterm Cost and Freight</value>
|
||||
<value xml:lang="fr">Incoterm : chargé dans le bateau, livraison au port de départ, sans assurance</value>
|
||||
<value xml:lang="it">Costi e spese di trasporto incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Kosten und Fracht</value>
|
||||
<value xml:lang="en">Incoterm 2010 Cost and Freight</value>
|
||||
<value xml:lang="fr">Incoterm 2010 : chargé dans le bateau, livraison au port de départ, sans assurance</value>
|
||||
<value xml:lang="it">Costi e spese di trasporto incoterm 2010</value>
|
||||
<value xml:lang="ja">CFR運賃込み渡し/インコタームズ</value>
|
||||
<value xml:lang="nl">INCOTERM: CRF</value>
|
||||
<value xml:lang="pt-BR">Incoterm CFR</value>
|
||||
<value xml:lang="nl">INCOTERM 2010: CRF</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 CFR</value>
|
||||
<value xml:lang="vi">Điều khoản: Giá và Chuyên chở</value>
|
||||
<value xml:lang="zh">国际贸易成本加运费价格</value>
|
||||
<value xml:lang="zh-TW">國際貿易成本加運費價格</value>
|
||||
</property>
|
||||
<property key="TermType.description.CIF">
|
||||
<value xml:lang="de">Incoterm Kosten, Versicherung und Fracht</value>
|
||||
<value xml:lang="en">Incoterm Cost, Insurance and Freight</value>
|
||||
<value xml:lang="fr">Incoterm : chargé sur le bateau, frais jusqu'au port d'arrivée, avec assurance</value>
|
||||
<value xml:lang="it">Costi, assicurazione e spese di trasporto incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Kosten, Versicherung und Fracht</value>
|
||||
<value xml:lang="en">Incoterm 2010 Cost, Insurance and Freight</value>
|
||||
<value xml:lang="fr">Incoterm 2010 : chargé sur le bateau, frais jusqu'au port d'arrivée, avec assurance</value>
|
||||
<value xml:lang="it">Costi, assicurazione e spese di trasporto incoterm 2010</value>
|
||||
<value xml:lang="ja">CIF運賃保険料込み渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm CIF</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 CIF</value>
|
||||
<value xml:lang="vi">Điều khoản: Giá , Bảo hiểm và Chuyên chở</value>
|
||||
<value xml:lang="zh">国际贸易到岸价格(成本、保险费加运费)</value>
|
||||
<value xml:lang="zh-TW">國際貿易到岸價格(成本、保險費加運費)</value>
|
||||
</property>
|
||||
<property key="TermType.description.CIP">
|
||||
<value xml:lang="de">Incoterm Transport und Versicherung bezahlt an</value>
|
||||
<value xml:lang="en">Incoterm Carriage and Insurance Paid to</value>
|
||||
<value xml:lang="fr">Incoterm : livraison au premier transporteur, frais jusqu'au déchargement du mode de transport, avec assurance</value>
|
||||
<value xml:lang="it">Trasporto e assicurazione pagata incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Transport und Versicherung bezahlt an</value>
|
||||
<value xml:lang="en">Incoterm 2010 Carriage and Insurance Paid to</value>
|
||||
<value xml:lang="fr">Incoterm 2010 : livraison au premier transporteur, frais jusqu'au déchargement du mode de transport, avec assurance</value>
|
||||
<value xml:lang="it">Trasporto e assicurazione pagata incoterm 2010</value>
|
||||
<value xml:lang="ja">CIP運送費保険料込み渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm CIP</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 CIP</value>
|
||||
<value xml:lang="vi">Điều khoản: Giá , Bảo hiểm trả tới</value>
|
||||
<value xml:lang="zh">国际贸易运费、保险费付至</value>
|
||||
<value xml:lang="zh-TW">國際貿易運費、保險費付至</value>
|
||||
@@ -4039,62 +4039,62 @@
|
||||
<value xml:lang="zh-TW">佣金</value>
|
||||
</property>
|
||||
<property key="TermType.description.CPT">
|
||||
<value xml:lang="de">Incoterm Transport bezahlt an</value>
|
||||
<value xml:lang="en">Incoterm Carriage Paid To</value>
|
||||
<value xml:lang="it">Trasporto pagata incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Transport bezahlt an</value>
|
||||
<value xml:lang="en">Incoterm 2010 Carriage Paid To</value>
|
||||
<value xml:lang="it">Trasporto pagata incoterm 2010</value>
|
||||
<value xml:lang="ja">CPT運送費込み渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm CPT</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 CPT</value>
|
||||
<value xml:lang="vi">Điều khoản phí chuyển thanh toán tới</value>
|
||||
<value xml:lang="zh">国际贸易运费付至</value>
|
||||
<value xml:lang="zh-TW">國際貿易運費付至</value>
|
||||
</property>
|
||||
<property key="TermType.description.DAF">
|
||||
<value xml:lang="de">Incoterm Geliefert an Grenze</value>
|
||||
<value xml:lang="en">Incoterm Delivered At Frontier</value>
|
||||
<value xml:lang="it">Consegnato alla frontiera incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2000 Geliefert an Grenze</value>
|
||||
<value xml:lang="en">Incoterm 2000 Delivered At Frontier</value>
|
||||
<value xml:lang="it">Consegnato alla frontiera incoterm 2000</value>
|
||||
<value xml:lang="ja">DAF国境持込渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm DAF</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2000 DAF</value>
|
||||
<value xml:lang="vi">Điều khoản nhận tại biên giới (Delivered At Frontier)</value>
|
||||
<value xml:lang="zh">国际贸易边境交货</value>
|
||||
<value xml:lang="zh-TW">國際貿易邊境交貨</value>
|
||||
</property>
|
||||
<property key="TermType.description.DDP">
|
||||
<value xml:lang="de">Incoterm Geliefert Zoll bezahlt</value>
|
||||
<value xml:lang="en">Incoterm Delivered Duty Paid</value>
|
||||
<value xml:lang="it">Dazio pagato alla consegna incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Geliefert Zoll bezahlt</value>
|
||||
<value xml:lang="en">Incoterm 2010 Delivered Duty Paid</value>
|
||||
<value xml:lang="it">Dazio pagato alla consegna incoterm 2010</value>
|
||||
<value xml:lang="ja">DDP仕向地持込渡し(関税込み)/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm DDP</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 DDP</value>
|
||||
<value xml:lang="vi">Điều khoản nhận thanh toán thuế</value>
|
||||
<value xml:lang="zh">国际贸易完税后交货价</value>
|
||||
<value xml:lang="zh-TW">國際貿易完稅後交貨價</value>
|
||||
</property>
|
||||
<property key="TermType.description.DDU">
|
||||
<value xml:lang="de">Incoterm Geliefert Zoll nicht bezahlt</value>
|
||||
<value xml:lang="en">Incoterm Delivered Duty Unpaid</value>
|
||||
<value xml:lang="it">Dazio non pagato alla consegna incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2000 Geliefert Zoll nicht bezahlt</value>
|
||||
<value xml:lang="en">Incoterm 2000 Delivered Duty Unpaid</value>
|
||||
<value xml:lang="it">Dazio non pagato alla consegna incoterm 2000</value>
|
||||
<value xml:lang="ja">DDU仕向地持込渡し(関税抜き)/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm DDU</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2000 DDU</value>
|
||||
<value xml:lang="vi">Điều khoản nhận miễn thuế</value>
|
||||
<value xml:lang="zh">国际贸易未完税交货价</value>
|
||||
<value xml:lang="zh-TW">國際貿易未完稅交貨價</value>
|
||||
</property>
|
||||
<property key="TermType.description.DEQ">
|
||||
<value xml:lang="de">Incoterm Geliefert ab Kai</value>
|
||||
<value xml:lang="en">Incoterm Delivered Ex Quay</value>
|
||||
<value xml:lang="it">Consegnato ex banchina incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2000 Geliefert ab Kai</value>
|
||||
<value xml:lang="en">Incoterm 2000 Delivered Ex Quay</value>
|
||||
<value xml:lang="it">Consegnato ex banchina incoterm 2000</value>
|
||||
<value xml:lang="ja">DEQ埠頭持込渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm DEQ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2000 DEQ</value>
|
||||
<value xml:lang="vi">Điều khoản nhận tại cảng</value>
|
||||
<value xml:lang="zh">国际贸易目的港码头交货价</value>
|
||||
<value xml:lang="zh-TW">國際貿易目的港碼頭交貨價</value>
|
||||
</property>
|
||||
<property key="TermType.description.DES">
|
||||
<value xml:lang="de">Incoterm Geliefert ab Schiff</value>
|
||||
<value xml:lang="en">Incoterm Delivered Ex Ship</value>
|
||||
<value xml:lang="de">Incoterm 2000 Geliefert ab Schiff</value>
|
||||
<value xml:lang="en">Incoterm 2000 Delivered Ex Ship</value>
|
||||
<value xml:lang="fr">Incoterm : livré sur quai</value>
|
||||
<value xml:lang="it">Consegnato ex spedizione incoterm</value>
|
||||
<value xml:lang="it">Consegnato ex spedizione incoterm 2000</value>
|
||||
<value xml:lang="ja">DES本船持込渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm DES</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2000 DES</value>
|
||||
<value xml:lang="vi">Điều khoản nhận tại tàu</value>
|
||||
<value xml:lang="zh">国际贸易目的港船上交货</value>
|
||||
<value xml:lang="zh-TW">國際貿易目的港船上交貨</value>
|
||||
@@ -4118,34 +4118,34 @@
|
||||
<value xml:lang="zh-TW">排他關連</value>
|
||||
</property>
|
||||
<property key="TermType.description.EXW">
|
||||
<value xml:lang="de">Incoterm ab Werk</value>
|
||||
<value xml:lang="en">Incoterm Ex Works</value>
|
||||
<value xml:lang="fr">Incoterm : au départ non chargé, non dédouané</value>
|
||||
<value xml:lang="it">Ex fabbrica incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 ab Werk</value>
|
||||
<value xml:lang="en">Incoterm 2010 Ex Works</value>
|
||||
<value xml:lang="fr">Incoterm 2010 : au départ non chargé, non dédouané</value>
|
||||
<value xml:lang="it">Ex fabbrica incoterm 2010</value>
|
||||
<value xml:lang="ja">EXW工場渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm EXW</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 EXW</value>
|
||||
<value xml:lang="vi">Điều khoản Ex Works</value>
|
||||
<value xml:lang="zh">国际贸易工厂交货价</value>
|
||||
<value xml:lang="zh-TW">國際貿易工廠交貨價</value>
|
||||
</property>
|
||||
<property key="TermType.description.FAS">
|
||||
<value xml:lang="de">Incoterm Frei längsseits Schiff</value>
|
||||
<value xml:lang="en">Incoterm Free Alongside Ship</value>
|
||||
<value xml:lang="fr">Incoterm : sur le quai du port de départ</value>
|
||||
<value xml:lang="it">Gratis accanto alla spedizione incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Frei längsseits Schiff</value>
|
||||
<value xml:lang="en">Incoterm 2010 Free Alongside Ship</value>
|
||||
<value xml:lang="fr">Incoterm 2010 : sur le quai du port de départ</value>
|
||||
<value xml:lang="it">Gratis accanto alla spedizione incoterm 2010</value>
|
||||
<value xml:lang="ja">FAS船側渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm FAS</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 FAS</value>
|
||||
<value xml:lang="vi">Điều khoản chuyển miễn phí theo dọc thân tàu</value>
|
||||
<value xml:lang="zh">国际贸易(启运地)船边交货价格</value>
|
||||
<value xml:lang="zh-TW">國際貿易(啟運地)船邊交貨價格</value>
|
||||
</property>
|
||||
<property key="TermType.description.FCA">
|
||||
<value xml:lang="de">Incoterm Freier Transport</value>
|
||||
<value xml:lang="en">Incoterm Free Carrier</value>
|
||||
<value xml:lang="fr">Incoterm : marchandises dédouanées et chargées dans le pays de départ</value>
|
||||
<value xml:lang="it">Gratis spedizioniere incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Freier Transport</value>
|
||||
<value xml:lang="en">Incoterm 2010 Free Carrier</value>
|
||||
<value xml:lang="fr">Incoterm 2010 : marchandises dédouanées et chargées dans le pays de départ</value>
|
||||
<value xml:lang="it">Gratis spedizioniere incoterm 2010</value>
|
||||
<value xml:lang="ja">FCA運送人渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm FCA</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 FCA</value>
|
||||
<value xml:lang="vi">Điều khoản miễn phí chuyên chở</value>
|
||||
<value xml:lang="zh">国际贸易离岸价</value>
|
||||
<value xml:lang="zh-TW">國際貿易離岸價</value>
|
||||
@@ -4378,12 +4378,12 @@
|
||||
<value xml:lang="zh-TW">付款淨天數,第三部分</value>
|
||||
</property>
|
||||
<property key="TermType.description.FOB">
|
||||
<value xml:lang="de">Incoterm Frei Schiff</value>
|
||||
<value xml:lang="en">Incoterm Free On Board</value>
|
||||
<value xml:lang="fr">Incoterm chargé sur le bateau</value>
|
||||
<value xml:lang="it">Gratis a bordo incoterm</value>
|
||||
<value xml:lang="de">Incoterm 2010 Frei Schiff</value>
|
||||
<value xml:lang="en">Incoterm 2010 Free On Board</value>
|
||||
<value xml:lang="fr">Incoterm 2010 chargé sur le bateau</value>
|
||||
<value xml:lang="it">Gratis a bordo incoterm 2010</value>
|
||||
<value xml:lang="ja">FOB本船甲板渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm FOB</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2010 FOB</value>
|
||||
<value xml:lang="vi">Điều khoản miễn phí trên tàu</value>
|
||||
<value xml:lang="zh">国际贸易离岸价格</value>
|
||||
<value xml:lang="zh-TW">國際貿易離岸價格</value>
|
||||
@@ -4545,4 +4545,109 @@
|
||||
<value xml:lang="zh">阈值</value>
|
||||
<value xml:lang="zh-TW">門檻值</value>
|
||||
</property>
|
||||
</resource>
|
||||
<property key="TermType.description.INCO_TERM_2020_EXW">
|
||||
<value xml:lang="de">Incoterm 2020 ab Werk</value>
|
||||
<value xml:lang="en">Incoterm 2020 Ex Works</value>
|
||||
<value xml:lang="fr">Incoterm 2020 : au départ non chargé, non dédouané</value>
|
||||
<value xml:lang="it">Ex fabbrica incoterm 2020</value>
|
||||
<value xml:lang="ja">EXW工場渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 EXW</value>
|
||||
<value xml:lang="vi">Điều khoản Ex Works</value>
|
||||
<value xml:lang="zh">国际贸易工厂交货价</value>
|
||||
<value xml:lang="zh-TW">國際貿易工廠交貨價</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_FCA">
|
||||
<value xml:lang="de">Incoterm 2020 Freier Transport</value>
|
||||
<value xml:lang="en">Incoterm 2020 Free Carrier</value>
|
||||
<value xml:lang="fr">Incoterm 2020 : marchandises dédouanées et chargées dans le pays de départ</value>
|
||||
<value xml:lang="it">Gratis spedizioniere incoterm 2020</value>
|
||||
<value xml:lang="ja">FCA運送人渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 FCA</value>
|
||||
<value xml:lang="vi">Điều khoản miễn phí chuyên chở</value>
|
||||
<value xml:lang="zh">国际贸易离岸价</value>
|
||||
<value xml:lang="zh-TW">國際貿易離岸價</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_FAS">
|
||||
<value xml:lang="de">Incoterm 2020 Frei längsseits Schiff</value>
|
||||
<value xml:lang="en">Incoterm 2020 Free Alongside Ship</value>
|
||||
<value xml:lang="fr">Incoterm 2020 : sur le quai du port de départ</value>
|
||||
<value xml:lang="it">Gratis accanto alla spedizione incoterm 2020</value>
|
||||
<value xml:lang="ja">FAS船側渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 FAS</value>
|
||||
<value xml:lang="vi">Điều khoản chuyển miễn phí theo dọc thân tàu</value>
|
||||
<value xml:lang="zh">国际贸易(启运地)船边交货价格</value>
|
||||
<value xml:lang="zh-TW">國際貿易(啟運地)船邊交貨價格</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_FOB">
|
||||
<value xml:lang="de">Incoterm 2020 Frei Schiff</value>
|
||||
<value xml:lang="en">Incoterm 2020 Free On Board</value>
|
||||
<value xml:lang="fr">Incoterm 2020 chargé sur le bateau</value>
|
||||
<value xml:lang="it">Gratis a bordo incoterm 2020</value>
|
||||
<value xml:lang="ja">FOB本船甲板渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 FOB</value>
|
||||
<value xml:lang="vi">Điều khoản miễn phí trên tàu</value>
|
||||
<value xml:lang="zh">国际贸易离岸价格</value>
|
||||
<value xml:lang="zh-TW">國際貿易離岸價格</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_CPT">
|
||||
<value xml:lang="de">Incoterm 2020 Transport bezahlt an</value>
|
||||
<value xml:lang="en">Incoterm 2020 Carriage Paid To</value>
|
||||
<value xml:lang="it">Trasporto pagata incoterm 2020</value>
|
||||
<value xml:lang="ja">CPT運送費込み渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 CPT</value>
|
||||
<value xml:lang="vi">Điều khoản phí chuyển thanh toán tới</value>
|
||||
<value xml:lang="zh">国际贸易运费付至</value>
|
||||
<value xml:lang="zh-TW">國際貿易運費付至</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_CFR">
|
||||
<value xml:lang="de">Incoterm 2020 Kosten und Fracht</value>
|
||||
<value xml:lang="en">Incoterm 2020 Cost and Freight</value>
|
||||
<value xml:lang="fr">Incoterm 2020 : chargé dans le bateau, livraison au port de départ, sans assurance</value>
|
||||
<value xml:lang="it">Costi e spese di trasporto incoterm 2020</value>
|
||||
<value xml:lang="ja">CFR運賃込み渡し/インコタームズ</value>
|
||||
<value xml:lang="nl">INCOTERM 2020: CRF</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 CFR</value>
|
||||
<value xml:lang="vi">Điều khoản: Giá và Chuyên chở</value>
|
||||
<value xml:lang="zh">国际贸易成本加运费价格</value>
|
||||
<value xml:lang="zh-TW">國際貿易成本加運費價格</value>
|
||||
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_CIF">
|
||||
<value xml:lang="de">Incoterm 2020 Kosten, Versicherung und Fracht</value>
|
||||
<value xml:lang="en">Incoterm 2020 Cost, Insurance and Freight</value>
|
||||
<value xml:lang="fr">Incoterm 2020 : chargé sur le bateau, frais jusqu'au port d'arrivée, avec assurance</value>
|
||||
<value xml:lang="it">Costi, assicurazione e spese di trasporto incoterm 2020</value>
|
||||
<value xml:lang="ja">CIF運賃保険料込み渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 CIF</value>
|
||||
<value xml:lang="vi">Điều khoản: Giá , Bảo hiểm và Chuyên chở</value>
|
||||
<value xml:lang="zh">国际贸易到岸价格(成本、保险费加运费)</value>
|
||||
<value xml:lang="zh-TW">國際貿易到岸價格(成本、保險費加運費)</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_CIP">
|
||||
<value xml:lang="de">Incoterm 2020 Transport und Versicherung bezahlt an</value>
|
||||
<value xml:lang="en">Incoterm 2020 Carriage and Insurance Paid to</value>
|
||||
<value xml:lang="fr">Incoterm 2020 : livraison au premier transporteur, frais jusqu'au déchargement du mode de transport, avec assurance</value>
|
||||
<value xml:lang="it">Trasporto e assicurazione pagata incoterm 2020</value>
|
||||
<value xml:lang="ja">CIP運送費保険料込み渡し/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 CIP</value>
|
||||
<value xml:lang="vi">Điều khoản: Giá , Bảo hiểm trả tới</value>
|
||||
<value xml:lang="zh">国际贸易运费、保险费付至</value>
|
||||
<value xml:lang="zh-TW">國際貿易運費、保險費付至</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_DPU">
|
||||
<value xml:lang="en">Incoterm 2020 Delivered at Place Unloaded</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_DAP">
|
||||
<value xml:lang="en">Incoterm 2020 Delivered at Place</value>
|
||||
</property>
|
||||
<property key="TermType.description.INCO_TERM_2020_DDP">
|
||||
<value xml:lang="de">Incoterm 2020 Geliefert Zoll bezahlt</value>
|
||||
<value xml:lang="en">Incoterm 2020 Delivered Duty Paid</value>
|
||||
<value xml:lang="it">Dazio pagato alla consegna incoterm 2020</value>
|
||||
<value xml:lang="ja">DDP仕向地持込渡し(関税込み)/インコタームズ</value>
|
||||
<value xml:lang="pt-BR">Incoterm 2020 DDP</value>
|
||||
<value xml:lang="vi">Điều khoản nhận thanh toán thuế</value>
|
||||
<value xml:lang="zh">国际贸易完税后交货价</value>
|
||||
<value xml:lang="zh-TW">國際貿易完稅後交貨價</value>
|
||||
</property>
|
||||
</resource>
|
||||
@@ -731,6 +731,9 @@
|
||||
<value xml:lang="zh">无法新建已存在的会员角色</value>
|
||||
<value xml:lang="zh-TW">無法新建已存在的團體角色</value>
|
||||
</property>
|
||||
<property key="PartyRoleAssociationRequired">
|
||||
<value xml:lang="en">Party id: ${partyId} should be in role: ${roleDescription}</value>
|
||||
</property>
|
||||
<property key="partyroleservices.could_not_create_party_role_read">
|
||||
<value xml:lang="de">Akteur Rolle kann nicht erstellt werden (Lesefehler).</value>
|
||||
<value xml:lang="en">could not create party role read</value>
|
||||
|
||||
@@ -104,7 +104,7 @@ under the License.
|
||||
<attribute name="partyRelationshipTypeId" type="String" mode="IN" optional="true"/>
|
||||
<attribute name="ownerPartyIds" type="List" mode="IN" optional="true"/><!-- Lead Owners Parties -->
|
||||
<attribute name="sortField" type="String" mode="IN" optional="true"/>
|
||||
<attribute name="partyClassificationGroupId" type="String" mode="IN" optional="true"/>
|
||||
<attribute name="partyClassificationGroupId" type="List" mode="IN" optional="true"/>
|
||||
|
||||
<attribute name="listIt" type="org.apache.ofbiz.entity.util.EntityListIterator" mode="OUT" optional="true"/>
|
||||
</service>
|
||||
|
||||
@@ -89,6 +89,10 @@ public class PartyHelper {
|
||||
}
|
||||
}
|
||||
result.append(UtilFormatOut.checkNull(partyValue.getString("firstName")));
|
||||
if (partyValue.getString("middleName") != null) {
|
||||
result.append(" ");
|
||||
}
|
||||
result.append(UtilFormatOut.checkNull(partyValue.getString("middleName")));
|
||||
} else {
|
||||
result.append(UtilFormatOut.ifNotEmpty(partyValue.getString("firstName"), "", " "));
|
||||
result.append(UtilFormatOut.ifNotEmpty(partyValue.getString("middleName"), "", " "));
|
||||
|
||||
+446
-355
File diff suppressed because it is too large
Load Diff
@@ -54,5 +54,16 @@ under the License.
|
||||
</select>
|
||||
<input type="submit" value="${uiLabelMap.CommonUpload}" />
|
||||
</form>
|
||||
<div id='progress_bar'><div></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="application/javascript">
|
||||
jQuery("#uploadPartyContent").validate({
|
||||
submitHandler: function(form) {
|
||||
<#-- call upload scripts - functions defined in PartyProfileContent.js -->
|
||||
uploadPartyContent();
|
||||
getUploadProgressStatus();
|
||||
form.submit();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -38,7 +38,7 @@ under the License.
|
||||
<#if (content.contentName?has_content)>
|
||||
<a href="<@ofbizUrl>stream?contentId=${(content.contentId)!}</@ofbizUrl>" target="_blank">${uiLabelMap.CommonView}</a>
|
||||
</#if>
|
||||
<form name="removePartyContent_${pContent_index}" method="post" action="<@ofbizUrl>removePartyContent/viewprofile</@ofbizUrl>">
|
||||
<form name="removePartyContent_${pContent_index}" method="post" action="<@ofbizUrl>removePartyContent</@ofbizUrl>">
|
||||
<input type="hidden" name="contentId" value="${pContent.contentId}" />
|
||||
<input type="hidden" name="partyId" value="${pContent.partyId}" />
|
||||
<input type="hidden" name="partyContentTypeId" value="${pContent.partyContentTypeId}" />
|
||||
@@ -52,4 +52,4 @@ under the License.
|
||||
<#else>
|
||||
${uiLabelMap.PartyNoContent}
|
||||
</#if>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -192,7 +192,11 @@ under the License.
|
||||
|
||||
</#if>
|
||||
<#if security.hasEntityPermission("PAY_INFO", "_DELETE", session) || security.hasEntityPermission("ACCOUNTING", "_DELETE", session)>
|
||||
<a href="<@ofbizUrl>deletePaymentMethod/viewprofile?partyId=${partyId}&paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>">${uiLabelMap.CommonExpire}</a>
|
||||
<form name="deletePaymentMethod_${paymentMethod.paymentMethodId}" method="post" action="<@ofbizUrl>deletePaymentMethod</@ofbizUrl>">
|
||||
<input type="hidden" name="partyId" value="${partyId}" />
|
||||
<input type="hidden" name="paymentMethodId" value="${paymentMethod.paymentMethodId}" />
|
||||
<input type="submit" value="${uiLabelMap.CommonExpire}"/>
|
||||
</form>
|
||||
<#else>
|
||||
|
||||
</#if>
|
||||
|
||||
@@ -1017,8 +1017,11 @@ under the License.
|
||||
<request-map uri="removePartyContent">
|
||||
<security auth="true" https="true"/>
|
||||
<event type="service" invoke="removePartyContent"/>
|
||||
<response name="success" type="request-redirect" value="EditPartyContents">
|
||||
<redirect-parameter name="partyId"></redirect-parameter>
|
||||
<response name="success" type="request-redirect" value="viewprofile">
|
||||
<redirect-parameter name="partyId"/>
|
||||
</response>
|
||||
<response name="error" type="request-redirect" value="viewprofile">
|
||||
<redirect-parameter name="partyId"/>
|
||||
</response>
|
||||
</request-map>
|
||||
|
||||
@@ -1235,6 +1238,7 @@ under the License.
|
||||
<request-map uri="LookupEmplPosition"><security auth="true" https="true"/><response name="success" type="view" value="LookupEmplPosition"/></request-map>
|
||||
<request-map uri="LookupOrderHeader"><security auth="true" https="true"/><response name="success" type="view" value="LookupOrderHeader"/></request-map>
|
||||
<request-map uri="LookupProduct"><security auth="true" https="true"/><response name="success" type="view" value="LookupProduct"/></request-map>
|
||||
<request-map uri="LookupBudget"><security auth="true" https="true"/><response name="success" type="view" value="LookupBudget"/></request-map>
|
||||
|
||||
<!-- Financial History Report-->
|
||||
<request-map uri="PartyFinancialHistory">
|
||||
@@ -1446,6 +1450,7 @@ under the License.
|
||||
<view-map name="visitdetail" type="screen" page="component://party/widget/partymgr/VisitScreens.xml#visitdetail"/>
|
||||
<view-map name="listLoggedInUsers" type="screen" page="component://party/widget/partymgr/VisitScreens.xml#ListLoggedInUsers"/>
|
||||
|
||||
<view-map name="LookupBudget" type="screen" page="component://humanres/widget/LookupScreens.xml#LookupBudget"/>
|
||||
<view-map name="LookupPartyName" type="screen" page="component://party/widget/partymgr/LookupScreens.xml#LookupPartyName"/>
|
||||
<view-map name="LookupPartyEmail" type="screen" page="component://party/widget/partymgr/LookupScreens.xml#LookupPartyEmail"/>
|
||||
<view-map name="LookupPartyClassificationGroup" type="screen" page="component://party/widget/partymgr/LookupScreens.xml#LookupPartyClassificationGroup"/>
|
||||
|
||||
@@ -19,7 +19,7 @@ specific language governing permissions and limitations
|
||||
under the License.
|
||||
-->
|
||||
|
||||
<web-app version="3.0">
|
||||
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
|
||||
<description>Party Manager Module of the Apache OFBiz Project</description>
|
||||
<display-name>Apache OFBiz - Party Manager</display-name>
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ under the License.
|
||||
</field>
|
||||
<field name="partyClassificationGroupId" title="${uiLabelMap.PartyClassificationGroup}" use-when="parentTypeId == null">
|
||||
<drop-down allow-multiple="true" size="5" allow-empty="false">
|
||||
<entity-options entity-name="PartyClassificationGroupAndType" description="${typeDescription}" key-field-name="partyClassificationGroupId">
|
||||
<entity-options entity-name="PartyClassificationGroupAndType" description="${typeDescription} - ${partyClassificationGroupId}" key-field-name="partyClassificationGroupId">
|
||||
<entity-order-by field-name="partyClassificationGroupId"/>
|
||||
</entity-options>
|
||||
</drop-down>
|
||||
@@ -142,13 +142,18 @@ under the License.
|
||||
<field-map field-name="partyId" from-field="partyId"/>
|
||||
<field-map field-name="userLogin" from-field="userLogin"/>
|
||||
</service>
|
||||
<entity-and entity-name="PartyClassification" list="partyClassifications" use-cache="true">
|
||||
<field-map field-name="partyId" from-field="partyId"/>
|
||||
</entity-and>
|
||||
<set field="fieldId" value="partyClassificationGroupId"/>
|
||||
<set field="partyClassificationGroupIds" value="${groovy:org.apache.ofbiz.entity.util.EntityUtil.getFieldListFromEntityList(partyClassifications, fieldId, true);}"/>
|
||||
</row-actions>
|
||||
<field name="partyId" sort-field="true">
|
||||
<hyperlink description="${partyId}" target="viewprofile">
|
||||
<parameter param-name="partyId"/>
|
||||
</hyperlink>
|
||||
</field>
|
||||
<field name="ClassificationGroup"><display description="${parameters.partyClassificationGroupId}"/></field>
|
||||
<field name="ClassificationGroup" use-when="partyClassificationGroupIds.size() > 0"><display description="${partyClassificationGroupIds}"/></field>
|
||||
<field name="userLoginId" use-when="userLoginSize > 1"><include-grid name="ListPartyUserLogin" location="component://party/widget/partymgr/PartyForms.xml"/></field>
|
||||
<field name="userLoginId" use-when="userLoginSize == 1"><display description="${logins[0].userLoginId}"/></field>
|
||||
<field name="userLoginId" use-when="userLoginSize == 0"><display description="(${uiLabelMap.CommonNone})"/></field>
|
||||
|
||||
@@ -80,7 +80,16 @@ if (fileType) {
|
||||
uploadObject = new HttpRequestFileUpload()
|
||||
uploadObject.setOverrideFilename(defaultFileName)
|
||||
uploadObject.setSavePath(imageServerPath + "/" + filePathPrefix)
|
||||
uploadObject.doUpload(request)
|
||||
if (!uploadObject.doUpload(request, "Image")) {
|
||||
try {
|
||||
(new File(imageServerPath + "/" + filePathPrefix, defaultFileName)).delete()
|
||||
} catch (Exception e) {
|
||||
logError(e, "error deleting existing file (not necessarily a problem, except if it's a webshell!)")
|
||||
}
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels","SupportedImageFormats", locale)
|
||||
logError(errorMessage)
|
||||
return error(errorMessage)
|
||||
}
|
||||
|
||||
clientFileName = uploadObject.getFilename()
|
||||
if (clientFileName) {
|
||||
|
||||
+10
-1
@@ -93,7 +93,16 @@ if (fileType) {
|
||||
uploadObject = new HttpRequestFileUpload()
|
||||
uploadObject.setOverrideFilename(defaultFileName)
|
||||
uploadObject.setSavePath(imageServerPath + "/" + filePathPrefix)
|
||||
uploadObject.doUpload(request)
|
||||
if (!uploadObject.doUpload(request, "Image")) {
|
||||
try {
|
||||
(new File(imageServerPath + "/" + filePathPrefix, defaultFileName)).delete()
|
||||
} catch (Exception e) {
|
||||
logError(e, "error deleting existing file (not necessarily a problem, except if it's a webshell!)")
|
||||
}
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels","SupportedImageFormats", locale)
|
||||
logError(errorMessage)
|
||||
return error(errorMessage)
|
||||
}
|
||||
|
||||
clientFileName = uploadObject.getFilename()
|
||||
if (clientFileName) {
|
||||
|
||||
@@ -93,7 +93,16 @@ if (fileType) {
|
||||
uploadObject = new HttpRequestFileUpload()
|
||||
uploadObject.setOverrideFilename(defaultFileName)
|
||||
uploadObject.setSavePath(imageServerPath + "/" + filePathPrefix)
|
||||
uploadObject.doUpload(request)
|
||||
if (!uploadObject.doUpload(request, "Image")) {
|
||||
try {
|
||||
(new File(imageServerPath + "/" + filePathPrefix, defaultFileName)).delete()
|
||||
} catch (Exception e) {
|
||||
logError(e, "error deleting existing file (not necessarily a problem, except if it's a webshell!)")
|
||||
}
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels","SupportedImageFormats", locale)
|
||||
logError(errorMessage)
|
||||
return error(errorMessage)
|
||||
}
|
||||
|
||||
clientFileName = uploadObject.getFilename()
|
||||
if (clientFileName) {
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import org.apache.ofbiz.entity.*
|
||||
import org.apache.ofbiz.base.util.*
|
||||
import org.apache.ofbiz.base.util.string.*
|
||||
import org.apache.ofbiz.entity.util.EntityUtilProperties
|
||||
@@ -92,7 +91,16 @@ if (fileType) {
|
||||
uploadObject = new HttpRequestFileUpload()
|
||||
uploadObject.setOverrideFilename(defaultFileName)
|
||||
uploadObject.setSavePath(imageServerPath + "/" + filePathPrefix)
|
||||
uploadObject.doUpload(request)
|
||||
if (!uploadObject.doUpload(request, "Image")) {
|
||||
try {
|
||||
(new File(imageServerPath + "/" + filePathPrefix, defaultFileName)).delete()
|
||||
} catch (Exception e) {
|
||||
logError(e, "error deleting existing file (not necessarily a problem, except if it's a webshell!)")
|
||||
}
|
||||
String errorMessage = UtilProperties.getMessage("SecurityUiLabels","SupportedImageFormats", locale)
|
||||
logError(errorMessage)
|
||||
return error(errorMessage)
|
||||
}
|
||||
|
||||
clientFileName = uploadObject.getFilename()
|
||||
if (clientFileName) {
|
||||
@@ -127,12 +135,14 @@ if (fileType) {
|
||||
} else if(file.isFile() && "original".equals(fileType) && !file.getName().equals(defaultFileName)) {
|
||||
file.delete()
|
||||
}
|
||||
}
|
||||
}
|
||||
// Images aren't ordered by productId (${location}/${viewtype}/${sizetype}/${id}) !!! BE CAREFUL !!!
|
||||
} else {
|
||||
File[] files = targetDir.listFiles()
|
||||
for(File file : files) {
|
||||
if (file.isFile() && !file.getName().equals(defaultFileName) && file.getName().startsWith(productId + ".")) file.delete()
|
||||
if (file.isFile() && !file.getName().equals(defaultFileName) && file.getName().startsWith(productId + ".")) {
|
||||
file.delete()
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -40,6 +40,8 @@ if (shipment) {
|
||||
context.destinationFacility = shipment.getRelatedOne("DestinationFacility", false)
|
||||
context.originPostalAddress = shipment.getRelatedOne("OriginPostalAddress", false)
|
||||
context.destinationPostalAddress = shipment.getRelatedOne("DestinationPostalAddress", false)
|
||||
context.originTelecomNumber = shipment.getRelatedOne("OriginTelecomNumber", false)
|
||||
context.destinationTelecomNumber = shipment.getRelatedOne("DestinationTelecomNumber", false)
|
||||
}
|
||||
|
||||
// check permission
|
||||
|
||||
@@ -400,8 +400,9 @@ under the License.
|
||||
<if-compare value="SERIALIZED_INV_ITEM" operator="equals" field="inventoryItem.inventoryItemTypeId">
|
||||
<if-compare value="INV_AVAILABLE" operator="equals" field="inventoryItem.statusId">
|
||||
<!-- change status on inventoryItem -->
|
||||
<set value="INV_PROMISED" field="inventoryItem.statusId"/>
|
||||
<store-value value-field="inventoryItem"/>
|
||||
<set field="updateInventoryItemMap.inventoryItemId" from-field="inventoryItem.inventoryItemId"/>
|
||||
<set field="updateInventoryItemMap.statusId" value="INV_PROMISED"/>
|
||||
<call-service service-name="updateInventoryItem" in-map-name="updateInventoryItemMap"/>
|
||||
|
||||
<!-- store OrderItemShipGrpInvRes record -->
|
||||
<call-simple-method method-name="getPromisedDateTime"/>
|
||||
|
||||
@@ -1122,11 +1122,11 @@ under the License.
|
||||
<entity-one entity-name="InventoryItem" value-field="inventoryItem" auto-field-map="false">
|
||||
<field-map field-name="inventoryItemId" from-field="parameters.inventoryItemId"/>
|
||||
</entity-one>
|
||||
<entity-and entity-name="ProductFacility" list="productFacilities">
|
||||
<entity-one entity-name="ProductFacility" value-field="productFacility">
|
||||
<field-map field-name="productId" from-field="inventoryItem.productId" />
|
||||
</entity-and>
|
||||
<if-not-empty field="productFacilities">
|
||||
<iterate list="productFacilities" entry="productFacility">
|
||||
<field-map field-name="facilityId" from-field="inventoryItem.facilityId" />
|
||||
</entity-one>
|
||||
<if-not-empty field="productFacility">
|
||||
<set field="serviceInMap.productId" from-field="productFacility.productId"/>
|
||||
<set field="serviceInMap.facilityId" from-field="productFacility.facilityId"/>
|
||||
<call-service service-name="getInventoryAvailableByFacility" in-map-name="serviceInMap">
|
||||
@@ -1138,7 +1138,6 @@ under the License.
|
||||
<call-service service-name="updateProductFacility" in-map-name="serviceInMap"/>
|
||||
<clear-field field="productFacility"/>
|
||||
<clear-field field="serviceInMap"/>
|
||||
</iterate>
|
||||
</if-not-empty>
|
||||
</simple-method>
|
||||
<simple-method method-name="createUpdateFacilityGeoPoint" short-description="Create or update GeoPoint assigned to facility">
|
||||
|
||||
@@ -134,7 +134,7 @@ under the License.
|
||||
<simple-method method-name="reserveStoreInventory" short-description="Reserve Store Inventory">
|
||||
<entity-one entity-name="Product" value-field="product" use-cache="true"/>
|
||||
<entity-one entity-name="ProductStore" value-field="productStore" use-cache="true"/>
|
||||
<entity-one entity-name="OrderHeader" value-field="orderHeader" use-cache="true"/>
|
||||
<entity-one entity-name="OrderHeader" value-field="orderHeader"/>
|
||||
<set field="parameters.priority" from-field="orderHeader.priority"/>
|
||||
<if-empty field="productStore">
|
||||
<add-error>
|
||||
|
||||
@@ -740,7 +740,7 @@ under the License.
|
||||
</entity-and>
|
||||
|
||||
<first-from-list list="curUserPartyAndContactMechs" entry="curUserPartyAndContactMech"/>
|
||||
<string-append field="sendEmailMap.sendFrom" string="${curUserPartyAndContactMech.infoString}" prefix=","/>
|
||||
<string-append field="sendEmailMap.sendFrom" string="${curUserPartyAndContactMech.infoString}"/>
|
||||
|
||||
<!-- find email addresses of partyIdFrom, set as sendTo -->
|
||||
<set from-field="shipment.partyIdFrom" field="sendToPartyIdMap.${shipment.partyIdFrom}"/>
|
||||
|
||||
@@ -1016,7 +1016,7 @@ under the License.
|
||||
<description>Create ProductFeature-DataResource</description>
|
||||
<auto-attributes include="pk" mode="IN" optional="false"/>
|
||||
</service>
|
||||
<service name="removeProductFeatureDataResource" default-entity-name="ProductFeatureDataResource" engine="entity-auto" invoke="remove" auth="true">
|
||||
<service name="removeProductFeatureDataResource" default-entity-name="ProductFeatureDataResource" engine="entity-auto" invoke="delete" auth="true">
|
||||
<description>Remove ProductFeature-DataResource</description>
|
||||
<auto-attributes include="pk" mode="IN" optional="false"/>
|
||||
</service>
|
||||
@@ -1578,7 +1578,7 @@ under the License.
|
||||
|
||||
<!-- Alternative URLs -->
|
||||
<service name="createMissingCategoryAndProductAltUrls" engine="simple"
|
||||
location="component://product/minilang/product/catalog/CatalogServices.xml" invoke="createMissingCategoryAndProductAltUrls" auth="true" use-transaction="false">
|
||||
location="component://product/minilang/product/catalog/CatalogServices.xml" invoke="createMissingCategoryAndProductAltUrls" auth="true" use-transaction="true">
|
||||
<description>Create missing Category and Product Alternative URLs</description>
|
||||
<attribute name="prodCatalogId" mode="INOUT" type="String" optional="false"/>
|
||||
<attribute name="category" mode="IN" type="String" optional="true"/>
|
||||
|
||||
@@ -1422,6 +1422,10 @@ under the License.
|
||||
<description>Expire a FacilityLocationGeoPoint record</description>
|
||||
<auto-attributes include="pk" mode="IN" optional="false"/>
|
||||
</service>
|
||||
<service name="deleteFacilityLocationGeoPoint" default-entity-name="FacilityLocationGeoPoint" engine="entity-auto" invoke="delete" auth="true">
|
||||
<description>Delete a FacilityLocationGeoPoint record</description>
|
||||
<auto-attributes include="pk" mode="IN" optional="false"/>
|
||||
</service>
|
||||
|
||||
<!-- InventoryItemType services -->
|
||||
<service name="createInventoryItemType" engine="entity-auto" default-entity-name="InventoryItemType" invoke="create" auth="true">
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user