Commit Graph
27737 Commits
Author SHA1 Message Date
Arun Patidar 8a399bf0bd Improved: Make accounting entry configurable.
(OFBIZ-10391)

Thanks Aman Agrawal for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834186 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 09:17:33 +00:00
Arun Patidar abf3318c29 FIXED:Incorrect succes mesage after creating customer.
(OFBIZ-9898)

Thanks Anushi Gupta for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1834181 13f79535-47bb-0310-9956-ffa450edef68
2018-06-23 06:26:56 +00:00
Jacques Le Roux 65a705eb56 Improved: Use in and spread operator in gradlewSubprocess
(OFBIZ-10431)

No functional change. The idea of using the spread operator is to have less 
mutation involved. In Groovy, using operator overloads like in is more idiomatic 
than using explicitly the associated method.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833997 13f79535-47bb-0310-9956-ffa450edef68
2018-06-21 11:41:22 +00:00
Jacques Le Roux 985aeaee03 Improved: Use list literals when possible
(OFBIZ-10431)

No functional change. List literals feels simply more readable.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833981 13f79535-47bb-0310-9956-ffa450edef68
2018-06-21 08:02:33 +00:00
Jacques Le Roux 5f37e7ea51 Fixed: Don't guess the system file separator
(OFBIZ-10428)

In case of Windows we need to escape "\" so adding "\\" } before fileSep 
is required

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833957 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 21:47:46 +00:00
Jacques Le Roux daa5194031 Improved: Use functional programming in build script
(OFBIZ-10429)

No functional change, the idea is to have more declarative code.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833951 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:43:35 +00:00
Jacques Le Roux 7b79f3d2b4 Improved: Don't guess the system file separator
(OFBIZ-10428)

The JVM already knows the file separator of the current system when running 
Gradle so use that value instead of guessing from the operating system property.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833949 13f79535-47bb-0310-9956-ffa450edef68
2018-06-20 20:36:59 +00:00
Taher A. Alkhateeb d46a33a627 Improved: improve XML parsing with more restrictive settings
(OFBIZ-10435)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833708 13f79535-47bb-0310-9956-ffa450edef68
2018-06-18 12:23:44 +00:00
Jacques Le Roux ca9b1bbd41 Reverted: Navigate from a domain to another with automated signed in
authentication
(OFBIZ-10307)

This reverts the work done previously for OFBIZ-9833 and OFBIZ-10206
Most parts of it will actually be reused later in a patch. By reverting it will 
allow to provide a patch for others to review


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833510 13f79535-47bb-0310-9956-ffa450edef68
2018-06-14 14:37:24 +00:00
Jacques Le Roux bdd946d0e8 Improved: Remove unused code in CommonEvents::setFollowerPage
(OFBIZ-10413)

`CommonEvents::setFollowerPage` contains two unused variable definitions.  
After basic search I found that this request handler is used only in 
`webapp/partymgr/controller.xml` 
However I was unable to understand its purpose, so I have added a comment to add
 some kind of docstring.

jleroux: this event method is never used because the pushPage request map is 
also never used. So we can get rid of the whole.
At the same time, fixes a typo in comment an remove an useless import

Thanks: Mathieu Lirzin for initial reporting

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833505 13f79535-47bb-0310-9956-ffa450edef68
2018-06-14 13:18:49 +00:00
Jacques Le Roux 4472a0e39e Improved: no functional change, fix a typo in a comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833388 13f79535-47bb-0310-9956-ffa450edef68
2018-06-12 09:22:40 +00:00
Rishi Solanki b9cf8a5d55 Improved: Add Support for Disable attribute in CheckBox Form Widget. Disabled attrivute can be used as
<field><check disabled=true/></field>

and default value for attribute will be false.
(OFBIZ-10367)
Thanks Pawan Verma for reporting the improvement and providing patch for that.
Thanks James Yong for testing the work.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833231 13f79535-47bb-0310-9956-ffa450edef68
2018-06-09 12:34:49 +00:00
Jacques Le Roux 48ac12b6e1 Improved: no functional change, fixes formatting found by chance
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833214 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 20:41:18 +00:00
Jacques Le Roux a948ce1747 Fixed: streaming large content cause out of memory exception.
(OFBIZ-10133)

With r1821036 DataResourceWorker.getDataResourceStream() may return an 
InputStream (if the data resource is a file) instead of a ByteArrayInputStream 
which was expected in few places.

This fixes it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833211 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 20:37:32 +00:00
Michael Brohl 38a90dbefa Improved: Add a VERSION file in root dir.
(OFBIZ-10141)

This adds a VERSION file to store the release version information
and changes the footer of the themes to show the release version.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833173 13f79535-47bb-0310-9956-ffa450edef68
2018-06-08 14:42:18 +00:00
Jacques Le Roux 3304dec663 Fixed: The first visit event are not executed in case of CMS
(OFBIZ-10389)

Execution of the first visit events depends on the trackVisit function

In RequestHandler.java file

if (this.trackVisit(request) && session.getAttribute("_FIRST_VISIT_EVENTS_") == null) {
    // execute first visit event
}

trackVisit function does not honor the default controller request 
(in this case, cms) So, we should improve the code of trackVisit to honor 
default controller request.


Thanks: Swapnil M Mane

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832944 13f79535-47bb-0310-9956-ffa450edef68
2018-06-05 13:56:29 +00:00
Jacques Le Roux 66fa6b9c51 Improved: no functional change, fixes a typo in comment while at it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832930 13f79535-47bb-0310-9956-ffa450edef68
2018-06-05 11:29:11 +00:00
Jacques Le Roux c704689c3a Improved: no functional change, removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832762 13f79535-47bb-0310-9956-ffa450edef68
2018-06-03 08:55:51 +00:00
Jacques Le Roux 25f853db70 Fixed: Session fixation issue
(OFBIZ-10420)

Prevents the session fixation by making Tomcat generate a new jsessionId 
(ultimately put in cookie). Only do when really signing in to avoid unnecessary 
calls

This improves the way it's done by using request.changeSessionId() instead of 
creating a brand new session. So there is no possible side effects on client and
no need to set initial request info (using setInitialRequestInfo)

Thanks: Taher for asking about it










git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832756 13f79535-47bb-0310-9956-ffa450edef68
2018-06-03 08:33:09 +00:00
Jacques Le Roux 598eee0d93 Fixed: Session fixation issue
(OFBIZ-10420)

Fixes a session fixation security issue discovered by a client with the security
 audit tool "IBM Security AppScan Enterprise , Version : 9.0.3.7"

Prevents the session fixation by making Tomcat generate a new jsessionId 
(ultimately put in cookie). 

Only do when really signing in to avoid unnecessary calls
Though if the client has disabled the use of cookies, then a session will be 
new on each request, not a good choice on client side!




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832662 13f79535-47bb-0310-9956-ffa450edef68
2018-06-01 07:37:27 +00:00
Jacques Le Roux 94ec9094c4 Improved: Add session tracking mode and make cookie secure
(OFBIZ-6655)

In CrossSubdomainSessionValve::replaceCookie sets HttpOnly if it was in replaced
cookie

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832591 13f79535-47bb-0310-9956-ffa450edef68
2018-05-31 09:27:32 +00:00
Wei Zhang 6da8a7fc29 Fixed: Incorrect data type conversion of variable serviceEndTime in CoreEvents.java
(OFBIZ-10419)

A minor fix for serviceEndTime conversion

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832577 13f79535-47bb-0310-9956-ffa450edef68
2018-05-31 01:20:54 +00:00
Jacques Le Roux 7036cb66e0 Improved: Update DBCP to 2.3.0
(OFBIZ-10404)

This is a minor release, including bug fixes and enhancements.
See http://commons.apache.org/proper/commons-dbcp/changes-report.html#a2.3.0
I'm running with it locally for 2 weeks, all seems OK

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832426 13f79535-47bb-0310-9956-ffa450edef68
2018-05-29 06:32:57 +00:00
Jacques Le Roux 16ad1e4870 Improved: New documentation for EntitySync
(OFBIZ-10390)

No functional changes while working on EntitySync-manual.adoc and checking the 
opportunity of existing debug log (it's a bit verbose, but it's OK as is)
Simply uses a multi-catch where possible



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832411 13f79535-47bb-0310-9956-ffa450edef68
2018-05-28 17:34:20 +00:00
Jacques Le Roux 22b6c33e88 Improved: Empty header row should not render if list to render in file is empty
(OFBIZ-7598)

If list inside form doesn't contain data, then header row should not render from
better UI perspective and proper message should be shown to user.

Get to catalog/control/EditProductGoodIdentifications with eg 
productId=ID:GZ-1006 for a test 

Thanks: Suraj 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832401 13f79535-47bb-0310-9956-ffa450edef68
2018-05-28 14:37:44 +00:00
Jacques Le Roux cc969366be Improved: Replace Inline js with External js in renderFormClose macro
(OFBIZ-9846)

Fixing patch, we forgot the other macro libraries.

Thanks: Aditya 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832365 13f79535-47bb-0310-9956-ffa450edef68
2018-05-28 06:50:51 +00:00
Rishi Solanki 8430ac5cc3 Improved: Generic message from entity-auto service can be enhanced. For example ProductStoreFacility Updated Successfully, we can have better success message as Product Store Facility Updated Successfully.
(OFBIZ-10409)
Thanks Suraj Khurana for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832309 13f79535-47bb-0310-9956-ffa450edef68
2018-05-26 13:00:56 +00:00
Jacques Le Roux 5ed72f1e95 Improved: Replace Inline js with External js in renderFormClose macro
(OFBIZ-9846)

Replaced inline js from renderFormClose macro to external js in OfbizUtils.js
Done following:
Used custom data attributes: data-focus-field to define focus field for the form.
Used attribute selector to find elements and set focus on the particular field.

Added "requireValidation" class to all the forms with required fields.

Used the class selector to find such forms & attached Validator plugin to it.

Steps to verify:

At add ProdCatalog page: https://localhost:8443/catalog/control/EditProdCatalog

Dialogs:
New Example dialog on Find Example page 
    Go to Find Example page https://localhost:8443/example/control/FindExample
    Click on New Example button
    Validations should work in dialog on form submit.

Additional Changes:

Link for dialog in HtmlMenuMacroLibrary still had the inline code. 
Replaced the code with external js code.

Validations on forms rendered with renderSubmitField macro from 
HtmlFormMacroLibrary.ftl seems not working 
https://demo-trunk.ofbiz.apache.org/partymgr/control/NewEmployee, will create 
a separate ticket for it.

jleroux: 
I agree about NewEmployee issue
As mentionned Aditya themes/rainbowstone/template/HtmlMenuMacroLibrary.ftl was
redundant, removed
I also removed commented out code in rainbowstone HtmlMenuMacroLibrary.ftl 
(left by Aditya while working on the issue I guess)

Thanks: Aditya 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832307 13f79535-47bb-0310-9956-ffa450edef68
2018-05-26 12:42:20 +00:00
Rishi Solanki bc4a0cbfc3 Improved: Remove Entity suffix from title of all entities. In all EntityModel.xml files, title should not contain Entity as suffix.
(OFBIZ-10408)
Thanks to Suraj Khurana for reporting the improvement and providing fix for that.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832235 13f79535-47bb-0310-9956-ffa450edef68
2018-05-25 12:19:07 +00:00
Jacques Le Roux fc8348f410 Improved: Refactor JavaEventHandler class
(OFBIZ-10410)

Instead of relying on manual synchronisation, use a concurrent map for caching 
loaded classes.  
Inline private `invoke` delegate which intent was fuzzy.  
Spread arguments when calling `Method::invoke` and `Class::getMethod`.

jleroux: interesting, it's the 1st use in OFBiz of the "::" syntax for calling
methods
(cf. https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.13-500)
I note that the string "::" is used in many places as a separator, notably
in caches, as  cache key separator but this should not be confusing.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832199 13f79535-47bb-0310-9956-ffa450edef68
2018-05-24 20:42:19 +00:00
Jacques Le Roux affc8a17cc Improved: Remove UtilValidate::isEmpty(String) method
(OFBIZ-10412)

UtilValidate class contains a `isEmpty` method both for `CharSequence` and for 
`String` types but since the first is an interface for the other and that the 
implementation are the same we don't need to keep the one for the concrete type.

Additionnaly I have removed the unused Generic type for the remaining 
implementation.

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832170 13f79535-47bb-0310-9956-ffa450edef68
2018-05-24 13:36:08 +00:00
Nicolas Malin 3c54a7c761 Fixed: Escape NullPointerException with test ProductPromo.testProductShipCharge
(OFBIZ-10370)
In previous commit r1831783, I excluded this line correction but it necessary to ensure all test pass.
This didn't solve the origin problem, why the worker ShoppingCart.getAdjustmentPromoIndex() parse some non promotion adjustment
but just escape potential null pointer that ProductPromo.testProductShipCharge test have been raised.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832141 13f79535-47bb-0310-9956-ffa450edef68
2018-05-24 07:47:12 +00:00
Jacques Le Roux 1840297cac Improved: Secure HTTP headers
(OFBIZ-6766)

After reading https://www.fastly.com/blog/headers-we-dont-want and more in the
Jira, only improves UtilHttp.setResponseBrowserProxyNoCache() by adding 
Cache-Control:private to avoid caching in proxy.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832128 13f79535-47bb-0310-9956-ffa450edef68
2018-05-23 20:53:45 +00:00
Jacques Le Roux b4cea27a59 Improved: adds a missing ASL2 header. It could be that we don't want one there but then
I let Michael decide and put a line in the RAT exclude file. I finally did 
because I thought that maybe this file will be enhanced

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1832091 13f79535-47bb-0310-9956-ffa450edef68
2018-05-23 09:54:19 +00:00
Jacques Le Roux 257dd146a4 Improved: XML schemas should use predefined boolean type
(OFBIZ-10411)

To define boolean values, some ad-hoc enumeration of "true" and "false" are 
repeatedly used.  Since XML Schema defines a standard boolean datatype 
better to use it. 

For now only `site-conf.xsd` is fixed 

Thanks: Mathieu Lirzin

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831930 13f79535-47bb-0310-9956-ffa450edef68
2018-05-20 10:19:29 +00:00
Gil Portenseigne 9fbb3765e4 Implemented : File transfer management with communicationEvent and new contactMech FTP_ADDRESS
(OFBIZ-10245)

This commit introduce a new way to manage file transfer in OFBiz.
Inspired by mailing communication event management, a new communicationEventTypeId is created ('FILE_TRANSFER_COMM').

Such commEvent with classics : partyIdFrom/partyIdTo/contactMechIdTo/entryDate etc. are analysed by a job (like sendEmailDated), to send associated contents to a configured FTP/SFTP/FTPS server. If failure happens, it is catched and stored in communicationEvent, waiting for a new try.

For this purpose :

A new contactMechTypeId is introduced (FtpAddress), with its corresponding table. This contactMech store needed information for basic user/password authentication (server url and protocol, port, username, password, etc.)
A new service sendFileTransferDated that will look for pending file transfer and call following service.
A new service sendCommEventAsFtp that take a selected commEvent, check its structure and manage its status after trying the associated content file transfers.
A new service sendContentToFtp, that take a content and transfer it to a given FtpAddress.
A seca createCommEventFromFtpTransfer on sendContentToFtp to manage plural content file transfer, creating children communicationEvent to follow each content transfer separately (only for several content transfers).
A new Interface FtpClientInterface, with the 3 implementations of FTP, FTPS (To Implement), SFTP clients to manage Ftp connection and transfer.
A new property file to enable and manage redirection for testing purpose.

With this implementation, creating a communicationEvent, with a FtpAddress contactMechIdTo, and sendFileTransferDated job planned, the file is transfered to the ftp : communication event status set to COM_COMPLETE, if error occured the communication event status is set to COM_BOUNCED with error message on communicationEvent note.

Thanks Rishi for your feedbacks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831867 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 15:53:35 +00:00
Michael Brohl 9341c23b0f Reverted: Undo remove of test files in r1831567
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831846 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 10:48:44 +00:00
Jacques Le Roux 62fce8c184 Fixed:: Dynamic values not rendering properly in property tag of fail-property
attribute
(OFBIZ-10406)

While calling checkProductRelatedPermission, if permission is failed ten 
fail-property tag uses ${checkActionLabel} which is not handled properly in 
MessageElement.java.
There are 2-3 other occurrences as well of such type but not in working 
condition.

Thanks: Suraj

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831831 13f79535-47bb-0310-9956-ffa450edef68
2018-05-18 08:11:55 +00:00
Gil Portenseigne a71f88b1ad Fixed : change OFBiz always log level to OFF log4j level, instead of using FATAL log4j level
(OFBIZ-6206)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831788 13f79535-47bb-0310-9956-ffa450edef68
2018-05-17 15:02:03 +00:00
Nicolas Malin a3c1177bc8 Improved: Migrate product promotion condition and action rule on SOA
(OFBIZ-10370)

Currently promotion rule engine works with :
    entities ProductPromoCond et ProductPromoAction
    java linear function ProductPromoWorker.checkCondition() (ProductPromoWorker:910) and ProductPromoWorker.performAction (ProductPromoWorker:1423)
    Enumeration list to indicate on java function what piece of code to activate the control or action

The problem with this structure is when you want to create a new case of condition or action, you need to modify the framework code base.

We convert the 2 big java leaner function to service representation with one service by case. To realize it we introduce a relation with CustomMethod :
  ProductPromoRule --> ProductPromoCond   -> CustomMethod
                    -> ProductPromoAction -> CustomMethod
Each functions's case are converted to service with a related CustomMethod.
With this pattern now you can write your own condition rule and action rule on your plugin and link it on the promo engine

For backward compatibility purpose, current "PPIP" enumeration entries receive in enumCode data the new corresponding customMethodId reference, to ensure that old data works fine with the new engine
on EntityData
 <CustomMethod customMethodId="PPC_PRODUCT_AMOUNT" customMethodTypeId="PRODUCT_PROMO_COND" customMethodName="productPromoCondProductAmount" description="Product amount"/>
 <Enumeration enumId="PPIP_PRODUCT_AMOUNT" enumCode="PPC_PRODUCT_AMOUNT"/><!--link enumeration with customMethod for backward compatibility-->
on Java
 //for backward compatibility resolve customMethodId from enumCode
 GenericValue condEnum = EntityQuery.use(delegator).from("Enumeration").where("enumId", inputParamEnumId).cache().queryOne();
 if (condEnum != null) {
     customMethod = EntityQuery.use(delegator).from("CustomMethod").where("customMethodId", condEnum.get("enumCode")).cache().queryOne();
     if (customMethod == null) {
         Debug.logWarning("The oldest enumeration " + inputParamEnumId + " for promo " + productPromoCond.getPkShortValueString() + " haven't the new customMethod to use, please check your data or load seed data", module);
         return false;
     }
     serviceName = customMethod.getString("customMethodName");
 }

Many thanks to Ziri Khalifa and Leila Mekika for their helping work

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831783 13f79535-47bb-0310-9956-ffa450edef68
2018-05-17 14:03:46 +00:00
Taher A. Alkhateeb 197e44e5e4 Fixed: bugs with asciidoctor PDF generation in Windows
(OFBIZ-9873)

We are facing multiple issues in PDF generation in windows. Most of these bugs
are related to incompatible transitive dependencies and some JRuby libraries.
From researching it seems that most of these bugs should be resolved in upcoming
releases of asciidoctor and hence this workaround might be resolved in the
future by upgrading asciidoctor.

Thanks: Jacques Le Roux for reporting and testing


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831619 13f79535-47bb-0310-9956-ffa450edef68
2018-05-15 10:33:37 +00:00
Deepak Dixit f21663a651 Fixed: Wrong permission action leads to error
(OFBIZ-10405)
Thanks Suraj Khurana for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831608 13f79535-47bb-0310-9956-ffa450edef68
2018-05-15 06:20:05 +00:00
Michael Brohl 5c547ae60e Fixed: Removed unnecessary class and folders.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831567 13f79535-47bb-0310-9956-ffa450edef68
2018-05-14 13:34:03 +00:00
Jacques Le Roux f939ba4767 Improved: Replace deleteRequirement service by entity-auto
(OFBIZ-10400)

Also, introduces deleteRequirementAndRelated service which will delete all 
related entity records before deleting requirement. This new service is used 
in place of deleteRequirement for history compatibility reason

Thanks: Suraj

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831542 13f79535-47bb-0310-9956-ffa450edef68
2018-05-14 07:46:50 +00:00
Jacques Le Roux f1676f1aec Improved: Migrate createContent service from Minilang to Entity Auto
(OFBIZ-10401)

Like Suraj did for createRequirement, this uses 
  <override name="statusId" default-value="CTNT_IN_PROGRESS"/>
to replace the only thing specific in the Minilang implementation

Improves 2 related French labels


Thanks: Deepak for discussion and Suraj for initial idea

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831511 13f79535-47bb-0310-9956-ffa450edef68
2018-05-13 10:09:06 +00:00
Jacques Le Roux 4099e7f049 Improved: Convert Requirement related services from simple to entity-auto
(OFBIZ-10395)

I was wrong to removes "useless" default optional="true" for auto-attributes.
What misleaded me is that optional="true" is the default for override attribute 
but it's the contrary for auto-attributes (which makes sense)

Also I used override instead of attribute to add the custRequestId and
custRequestItemSeqId fields :/


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831501 13f79535-47bb-0310-9956-ffa450edef68
2018-05-12 21:15:30 +00:00
Jacques Le Roux c6e4737b03 Improved: Convert Requirement related services from simple to entity-auto
(OFBIZ-10395)

We missed the optional custRequestId and custRequestItemSeqId parameters

Also removes useless default optional="true" elsewhere

Thanks: Suraj and Rishi

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831480 13f79535-47bb-0310-9956-ffa450edef68
2018-05-12 13:46:45 +00:00
Jacques Le Roux 8ec16c5b8d Improved: Convert Requirement related services from simple to entity-auto
(OFBIZ-10395)

There is nothing extra in these services and they can be made to entity-auto.

Thanks: Suraj Khurana

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831467 13f79535-47bb-0310-9956-ffa450edef68
2018-05-12 11:23:29 +00:00
Jacques Le Roux 0d0704beb5 No functional change
Changes the order of the TortoiseSvn log template. I most often use Improved and
Fixed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831466 13f79535-47bb-0310-9956-ffa450edef68
2018-05-12 11:22:03 +00:00
Rishi Solanki df59a53e68 Improved: Check for QOH while doing reservations. Change the codition to check ATP instead of QOH. As ATP will be always lesser than QOH, will improved performance with no impact on the reservation logic.
(OFBIZ-10337)
Thanks to Suraj Khurana for reporting the issue and providing fix.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1831465 13f79535-47bb-0310-9956-ffa450edef68
2018-05-12 11:19:26 +00:00