Commit Graph
14503 Commits
Author SHA1 Message Date
Ashish Vijaywargiya f67ad0317d Applied product folder related changes from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641044 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 11:26:20 +00:00
Ashish Vijaywargiya a090f96cad Applied party component patch from jira issue - OFBIZ-5844 - Convert java files to EntityQuery.
Thanks Arun for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1641043 13f79535-47bb-0310-9956-ffa450edef68
2014-11-22 11:17:45 +00:00
Jacques Le Roux b48c6a16b6 At r1639887 I forgot to put the content of templateContext in the local tempTemplateContext. Thanks to Deepak for spotting it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1640717 13f79535-47bb-0310-9956-ffa450edef68
2014-11-20 10:49:56 +00:00
Ashish Vijaywargiya 66e20b8d44 Applied patch from jira issue - OFBIZ-5551 - Cannot delete the record When Server Timezone and Application timeZone are different.
Thanks  SenthilMurugan for reporting the issue and thanks Deepak for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639892 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:22:21 +00:00
Ashish Vijaywargiya 8b60bc3ae0 Applied patch from jira issue - OFBIZ-5470 - List Price gets reset to zero after updating default/base price of existing order items.
Thanks  Christian for reporting the issue and Thanks Arun for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639889 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:10:59 +00:00
Jacques Le Roux 6fd38f2cc0 OFBIZ-5822 - Uses a tempTemplateContext instead of templateContext which is used later in the method, thanks to Scott's post on dev ML
I will wait to commit the last changes for the Poodle vulnerability in release branches (for running tests with Java 1.7) before backporting, because I used the "new" diamond operator here (1st in OFBiz it seems)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639887 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 14:06:50 +00:00
Ashish Vijaywargiya 73ec4634a3 Applied patch from jira issue - OFBIZ-4655 - searchCategory is not available in results in keywordsearch.groovy
Thanks Kiran for reporting the issue and thanks Deepak for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639884 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 13:57:48 +00:00
Ashish Vijaywargiya 21513583f1 Applied patch from jira issue - OFBIZ-5766 - Error when adding/modifying a task to a Production Run - field type error.
Thanks Guillaume Sigoigne for reporting the issue, Thanks Divesh for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639880 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 13:35:45 +00:00
Ashish Vijaywargiya db646b4997 Committing minor changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639872 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:40:39 +00:00
Ashish Vijaywargiya b889daf058 Applied patch from jira issue - OFBIZ-4362 - MapKey for CMS content cannot be updated.
Thanks Manuela for reporting the bug, Thanks Deepak for providing the patch for this issue. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639867 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:19:44 +00:00
Jacques Le Roux 4330fcd646 Following changes for "PortalPage entity definition wrong. ownerUserLoginId field must be id-vlong-ne" https://issues.apache.org/jira/browse/OFBIZ-5110
Fixes other cases as well

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639863 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 12:14:37 +00:00
Ashish Vijaywargiya 817d96fdc6 Applied patch from jira issue - OFBIZ-5630 - service updateFxConversion doesn't set thruDate properly.
==========================================================================================
When updating an existing foreign currency exchange rate in accounting the service creates a new exchange rate and sets the thruDate of the old rate.
But in stead of taking the fromDate of the new exchange rate as a starting point for the thruDate of the expired exchange rate it uses nowTimeStamp.
==========================================================================================
Thanks Pierre for reporting the issue. Thanks Pranay for providing the fix. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639848 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 09:18:39 +00:00
Ashish Vijaywargiya e6bae23919 Applied patch from jira issue - OFBIZ-2567 - Entity VirtualProduct missing.
Thanks  Jan Valkovic for reporting the issue, Thanks Deepak for providing the patch for the same.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639846 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 08:57:13 +00:00
Ashish Vijaywargiya e60c40b733 Applied patch from jira issue - OFBIZ-904 - Error when "Inventory Facility Id" is left blank in product store settings.
Thanks Michel for creating the issue and Thanks Arun Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639841 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 07:07:36 +00:00
Ashish Vijaywargiya bade7c3eb2 Applied patch from jira issue - OFBIZ-5150 - reserveProductInventory method looses priority attribute in oisgir for non serialized and non requireInventory.
Thanks Deepak Agarwal for reporting the issue and Thanks Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639840 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 06:08:59 +00:00
Ashish Vijaywargiya 9a791b7caa Applied patch from jira issue - OFBIZ-5416 - Sales order cart items already assigned to ship groups are incorrectly able to be modified to quantities/prices that break the ProductStoreShipmentMeth rules.
Thanks Christian for reporting the issue and Thanks Arun for providing the patch. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639835 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 05:28:30 +00:00
Ashish Vijaywargiya d2d3178e50 Applied bug fix from jira issue OFBIZ-5854 - Order On Hold Auto Approves When Edited.
Thanks Vikas for creating the issue and thanks Akash for verification. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639833 13f79535-47bb-0310-9956-ffa450edef68
2014-11-15 05:15:17 +00:00
Jacques Le Roux 1e75493723 A patch from Pierre Gaudin for "use requestParameters for customMethod call" https://issues.apache.org/jira/browse/OFBIZ-5822
For a content, you can set a custom method that perform an action before content's rendering.
Unfortunately, in the customMethod call, the request Parameters can't be used because they are not set into the map that is used to create custom method IN parameters.
This patch solves this problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1639606 13f79535-47bb-0310-9956-ffa450edef68
2014-11-14 11:15:54 +00:00
Jacopo Cappellato 06abae3dfa Enhanced the OFBiz DSL with an alternative way of invoking a service; converted one service call in OrderView.groovy to demonstrate its usage.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638801 13f79535-47bb-0310-9956-ffa450edef68
2014-11-12 14:45:56 +00:00
Jacopo Cappellato ddbb176a9a Converted the OrderView.groovy script to use the runService DSL method instead of the dispatcher.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638074 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 12:51:53 +00:00
Jacopo Cappellato d896026f58 No need to import the EntityQuery class when the new OFBiz DSL methods (select or from) are used to use the EntityQuery builder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638056 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:49:10 +00:00
Jacopo Cappellato e24c111f05 Added to the OFBiz DSL the ability to invoke the new EntityQuery builder.
Modified two calls in OrderView.groovy to demonstrate the new feature.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1638054 13f79535-47bb-0310-9956-ffa450edef68
2014-11-11 09:33:15 +00:00
Nicolas Malin b6518f08a0 Correct createPartyRole call with pk collision risk detected by Supatthra Nawicha on OFBIZ-5853, while waiting for discussion if revert of createPartyRole from entity-auto is need or not
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637721 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:30:26 +00:00
Nicolas Malin 1f17ccfa03 Correct parameter fields present direclty on target value instead of use the parameter's link element that generate for partyId this string : '∂yId' , thanks for Supachai Chaima-ngua and Francis Douet for the alert on OFBIZ-5847
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637716 13f79535-47bb-0310-9956-ffa450edef68
2014-11-09 19:18:02 +00:00
Jacopo Cappellato cc8f10a6c7 OFBIZ-5793 Enhanced logic to run product subscription expiry service only once when the subscription expires:
a) augment the OFBiz data model with the new field: Subscription.expirationCompletedDate
b) modify the algorithm of runServiceUponSubscriptionExpiry to also check whether the expiry service has already run, by checking that expirationCompletedDate is null.
if expirationCompletedDate is null (and the other conditions are satisfied), run the service in SubscriptionResource.serviceNameOnExpiry and update the date/time into expirationCompletedDate
if expirationCompletedDate is not null, skip the expired subscription and move to the next

Thanks to Ivan Cauchi for the patch (slightly modified by me).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637535 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 09:38:09 +00:00
Jacques Le Roux b4030cbc48 I forgot to commit this fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637089 13f79535-47bb-0310-9956-ffa450edef68
2014-11-06 12:45:32 +00:00
Hans Bakker f67e5b0e87 role not checked for existence: https://issues.apache.org/jira/browse/OFBIZ-5845
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636495 13f79535-47bb-0310-9956-ffa450edef68
2014-11-04 02:45:29 +00:00
Hans Bakker a227fcfd04 use of wrong field name: https://issues.apache.org/jira/browse/OFBIZ-5846
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1636493 13f79535-47bb-0310-9956-ffa450edef68
2014-11-04 02:39:56 +00:00
Jacques Le Roux 1fe3e6de9c Comments out some Chinese duplicated labels, fixes a NL labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635946 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 13:22:05 +00:00
Jacques Le Roux 03c0951bf4 A partial patch from Pierre Smits for "Improvement of Dutch localization in Product" at https://issues.apache.org/jira/browse/OFBIZ-5434
jleroux: complete last patch


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635945 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 12:55:28 +00:00
Jacques Le Roux cb805c8525 OFBIZ-5434, reverts r1635916, to have a complete patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635921 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 11:08:08 +00:00
Jacques Le Roux 857439837a A partial patch from Pierre Smits for "Improvement of Dutch localization in Product" at https://issues.apache.org/jira/browse/OFBIZ-5434
jleroux: 3 parts were rejected (tool old patch)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635916 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 10:25:22 +00:00
Jacopo Cappellato 3552f65800 Merged json-integration-refactoring into trunk:
* moved the json-lib jar (json-lib-2.2.3-jdk15.jar) from the framework/webapp to the framework/base component
* removed the SQL select Parser.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code
* removed the JSON.jj (parser definition) and its unit tests: it was not used (and never used) by any OFBiz code apart from the JSON Converters (now migrated to json-lib, see next items in this list) some utility methods in UtilIO.java (that have been removed too because they have never been used in OFBiz) 
* removed the JavaCC jar and related ant scripts because no more needed after the removal of Parser.jj and JSON.jj
* converted the JSONConverter code that was based on JSON.jj to Jackson
* added a new class org.ofbiz.base.lang.JSON that have been contributed by Adrian Crum that is a facade for simplifying the client code and for hiding the specific JSON library being used
* removed an unused method: ImageManagementServices.toJsonObject(...)
* added TestBooleanConverters to the list of tests
* new unit tests for the new JSON converters
* refactored Ajax code in applications to use the common request json response rather than a custom method
* OFBIZ-5790 Implemented ability to call a service event by passing its input parameters in the request body as JSON data. These classes provide a simple mechanism, based on the request's content type, that can be extended to support other formats (e.g. XML).

This commit resolves OFBIZ-4572, OFBIZ-3365, OFBIZ-5751, OFBIZ-5790



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635901 13f79535-47bb-0310-9956-ffa450edef68
2014-11-01 09:06:42 +00:00
Jacques Le Roux 0bcf05380b Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
Re-running the same load test with a service call proves that the problem was not in the service call but only in the minilang implementation. So putting back this part.

There are more work to do as suggested Scott on dev ML: the call could be done in the same transaction right before committing, to reduce the amount of time the lock is held. But for now it's enough

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635567 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 18:03:43 +00:00
Scott Gray 44e2c4fda1 Regex search/replace for delegator.findOne() to EntityQuery.queryOne()
Apologies for the large commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635383 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:18:05 +00:00
Scott Gray caec934e1a Partially convert ordermgr component's java files to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635382 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:16:45 +00:00
Scott Gray 2840ebab61 Convert marketing component's java files to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635381 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:16:39 +00:00
Scott Gray a0ab1ab53e Convert manufacturing app's java files to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635380 13f79535-47bb-0310-9956-ffa450edef68
2014-10-30 04:16:33 +00:00
Jacopo Cappellato 77e602dc99 Fixes for the "Did you know?" screenlet in ecommerce that was throwing errors after Scott's recent fix to a content related method (the fix has exposed the data issues).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635232 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 18:02:51 +00:00
Jacques Le Roux 83615e50af Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
At r1635192, I forgot to remove the Minilang implementation of countProductQuantityOrdered

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635219 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 17:34:07 +00:00
Jacques Le Roux 8c0a2b1ddf Commit for https://issues.apache.org/jira/browse/OFBIZ-5843
The storeOrder service, implemented by the OrderService.createOrder() method, synchronously calls the countProductQuantityOrdered service implemented in Minilang. OOTB, the countProductQuantityOrdered service is only called by the storeOrder service implementation. It's called inside a loop on orderItems.

While intentionally load testing a custom project with JMeter on a weak m1.small AWS machine, I noticed the overhead of the service call for each order item iteration was significant on this slow machine. With only 30 concurrent users the process was blocked by  a timeout on the countProductQuantityOrdered service.

I then decided to transform the minilang code into an OrderService.countProductQuantityOrdered() method that can be directly called inside OrderService.createOrder() and also implements the countProductQuantityOrdered service. Hence it avoids the overhead of the  minilang service calls in loop while still providing a countProductQuantityOrdered service for possible external uses. For that I moved the definition from Product component to Order component to avoid the hard coded dependency of Order to Product. I then did not cross issues with the same load test.

I also added a test for the countProductQuantityOrdered service by adding an order item of a virtual product (GZ-1006-1) in SalesOrderTest.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1635192 13f79535-47bb-0310-9956-ffa450edef68
2014-10-29 16:37:40 +00:00
Scott Gray 32a9078e7b Convert humanres component's java files from Delegator usage to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634038 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 09:39:44 +00:00
Scott Gray 96cd99914e Remove unnecessary imports
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634027 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:28:47 +00:00
Scott Gray dab58e739b Convert content app's java file from Delegator usage to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1634024 13f79535-47bb-0310-9956-ffa450edef68
2014-10-24 08:22:56 +00:00
Scott Gray 6b34697a86 Remove another duplicated Content record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633217 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 20:10:11 +00:00
Jacques Le Roux fac16cdff6 During their last bug crush the HMW missed those (related to OFBIZ-5783 and OFBIZ-4606)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633188 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 17:25:08 +00:00
Jacques Le Roux d1d0d3b61e A patch from Deepak Dixit for "The updation and deletion of content meta data tab is not working.Needs a change of entity ContentMetaData." https://issues.apache.org/jira/browse/OFBIZ-4927
MetaDataValue is changed from primary key to non primary key as the value can be updated.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1633100 13f79535-47bb-0310-9956-ffa450edef68
2014-10-20 11:06:59 +00:00
Ashish Vijaywargiya 44ce4114b6 Applied patch from jira issue - OFBIZ-4668 - CommunicationEventAndRole entity: Field with name custRequestDate not found.
==============================================================================
when displaying this portal page:
https://localhost:8443/myportal/control/main?portalPageId=MYPORTAL_EMPLOYEE0&parentPortalPageId=MYPORTAL_EMPLOYEE

this message is thrown to the console:
Message: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [executeFind]: Error running Find on the CommunicationEventAndRole entity: Field with name custRequestDate not found in the CommunicationEventAndRole Entity
==============================================================================
Thanks Mridul for the contribution and thanks Erwan for creating the issue. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632801 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:38:46 +00:00
Ashish Vijaywargiya 5846ffcaa7 Applied patch from jira issue - OFBIZ-5826 - Shipper Account screen not rendering shipper accounts.
===========================================
Here is the steps to regenerate issue:
{code}
<PortalPagePortlet portalPageId="PartyProfile" portalPortletId="ShipperAccount" portletSeqId="00001" columnSeqId="00001" sequenceNum="7"/>
{code}

Upload the PortalPagePortlet data for shipper Account, and go to viewprofile screen. Now add shipper account from shipper account screen.

Expected Result: Newly added/ all shipper account of party should be listed under shipper account screen.

Actual Result:
No shipper accounts are listing.
===========================================
Thanks Deepak for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632797 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 14:27:19 +00:00
Ashish Vijaywargiya 0a9e82d6e9 Applied patch from jira issue - OFBIZ-5714 - Comment does not save.
===========================================================
1. find P.O.
2. select approaved p.o.
3. edit items
4 add item (at bottom of screen)
5. Comment does not save.
Note! shouldn't the comment be displayed on some of the P.O. screens?
I only know it does not save as I edited the .FTL on viewpo and pdf to include comment. Comments from the orignal create P.O. show up, ALso should be able to edit a comment, when edit items is entered.
===========================================================
Thanks Joel for creating the issue and Thanks Akash for providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632777 13f79535-47bb-0310-9956-ffa450edef68
2014-10-18 12:17:25 +00:00