Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 2dfdb7bd7a Implemented: Rename "loadAll" the "loadDefault" Gradle task
(OFBIZ-9411)

As discussed on user ML (https://s.apache.org/xjFj) rename "loadAll" 
the "loadDefault" Gradle task.

This moves the README.md.html file from the unique separated branch tools 

I used the documentation subfolder to put the README.md.hmlt file which is then 
used in the https://cwiki.apache.org/confluence/display/OFBIZ/From+Ant+to+Gradle 
page. So only the trunk version is used in this page. I'll rather put the 
README.md.hmlt file in the root directory (at least for now, maybe a 
documentation page would fit better notably in relation with my proposition 
at https://s.apache.org/mpRV where README.md.hmlt files would more used) 
and create a separated version for the R11 branch 
(README.md.hmlt file and wiki page)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798859 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 16:58:05 +00:00
Jacques Le Roux d952873c74 Implemented: Rename "loadAll" the "loadDefault" Gradle task
(OFBIZ-9411)

As discussed on user ML (https://s.apache.org/xjFj) rename "loadAll" 
the "loadDefault" Gradle task.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798844 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 15:35:59 +00:00
Deepak Dixit d78bd1d62b Improved: Only formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798817 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 10:29:53 +00:00
Jacques Le Roux 195171a37c Fixed: RequestHandlerException on request link of Quote Price page
(OFBIZ-9384)

To reproduce get to 
https://localhost:8443/ordermgr/control/ManageQuotePrices?quoteId=CQ0001
Click on link under View Request. It gives a RequestHandlerException.

jleroux: I simply changed the link from inter-app to simple (inter-app works 
also but is not right)

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798808 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:52:43 +00:00
Jacques Le Roux ac67cc7ad3 Fixed: RequestHandlerException on request link of Quote Profit page
(OFBIZ-9386)

To reproduce get to 
https://localhost:8443/ordermgr/control/ViewQuoteProfit?quoteId=CQ0001
Click on link under View Request. It gives a RequestHandlerException.

jleroux: I simply changed the link from inter-app to simple (inter-app works 
also but is not right)

Thanks: Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798803 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:39:17 +00:00
Deepak Dixit f149a0d95c Improved: Updated Geo data for India (OFBIZ-9406)
India has 29 states and 7 Union Territory. Need to update data as in data Union Territory also added as STATE,
used TERRITORY as GeoTypeId for Union Territories.

Applied patch from jira issue 
- Updated geoTypeId for 7 union territory from STATE to TERRITORY
- Update geoName for Andaman And Nicobar it should be Andaman and Nicobar Islands
- Corrected geoName and gooId and other detail for Delhi union territory
- Corrected to the name for Jammu and Kashmir (And should be in lower camel case)
- Corrected name for Odisha (Orissa>> Odisha)
- Corrected geoName for Puducherry, also added wellKnownText = "Pondicherry"
- Corrected geoName for Tamil Nadu (Tamilnadu >> Tamil Nadu)
- Added data for new state Telangana
- Corrected geoName for Uttarakhand (Uttaranchal >> Uttarakhand)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798796 13f79535-47bb-0310-9956-ffa450edef68
2017-06-15 08:16:45 +00:00
Jacques Le Roux e2b9b26cb4 Fixed: simple methods not terminating on error condition
(OFBIZ-9407)

jleroux: adding a <check-errors/> is quite right

Thanks: Wai 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798682 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 13:47:25 +00:00
Jacques Le Roux ff549a43aa No functional change
Just removes trailing blanks

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798681 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 13:46:17 +00:00
Deepak Dixit 300f0b2701 Improved: No functional change, only convert the Geo_IN.xml data geoName from upper case to upper camel case (OFBIZ-9406)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798668 13f79535-47bb-0310-9956-ffa450edef68
2017-06-14 11:28:45 +00:00
Jacques Le Roux 2d409ff0e2 No functional change
Just comments about EntityListIterator usage in Paginator class. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798599 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 13:28:04 +00:00
Jacques Le Roux 93dc619f0a No functional changes.
Replaces EntityListIterator.close() in finally by try-with-ressource

I think I have done all these kinds of changes. This is tested.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798571 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 09:48:49 +00:00
Jacques Le Roux 2929627451 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources when possible

This completes OFBIZ-9385, there are no other cases left.

There are few methods like FindServices.executeFind() or performFindParty 
service which can't be improved because they return an EntityListIterator. 
So methods using them must be carefully crafted to close the EntityListIterator. 
Most where already documented (in the framework). I completed few in 
applications at r1798495  




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798566 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 08:29:28 +00:00
Jacques Le Roux aa644a0975 No functional change
Completes the JavaDoc of few methods which return an EntityListIterator

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798563 13f79535-47bb-0310-9956-ffa450edef68
2017-06-13 08:16:28 +00:00
Jacques Le Roux df46ff51de No functional change
Improves the documentation of few methods which return an EntityListIterator

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798495 13f79535-47bb-0310-9956-ffa450edef68
2017-06-12 17:20:36 +00:00
Jacques Le Roux 29a55bc4b0 No functional change, just a debug log change
As mentioned by Scott on dev ML the stack trace at this point is irrelevant

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798422 13f79535-47bb-0310-9956-ffa450edef68
2017-06-12 07:35:54 +00:00
Jacques Le Roux 19d6c74fce No functional change, this is better than r1798060
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798388 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 17:30:26 +00:00
Jacques Le Roux ce3fcec143 No functional change, fix an ugly bug put in with r1798335 due to an
abandoned refactoring

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798358 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 12:19:19 +00:00
Jacques Le Roux f0b87bd3e0 Fixed: ERROR: Cannot do a find that returns an EntityListIterator with no
transaction in place
(OFBIZ-9286)

While working on OFBIZ-9385 "EntityListIterator closed but not in case of 
exception" I forgot that  you must begin the transaction before the 
try-with-resources, this fixes last cases, lesson learned the hard way!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798353 13f79535-47bb-0310-9956-ffa450edef68
2017-06-11 10:12:32 +00:00
Jacques Le Roux dfbacd84c2 No functional change, removes an useless EntityListIterator initialisation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798335 13f79535-47bb-0310-9956-ffa450edef68
2017-06-10 19:42:08 +00:00
Jacques Le Roux 41d19f3d1c Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

The getProductSearchResults() method was public but only used in the class.
I made it private

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798300 13f79535-47bb-0310-9956-ffa450edef68
2017-06-10 09:12:05 +00:00
Jacques Le Roux b291ec839b No functional change.
Adds a suggestion to report in case of EntityListIterator Not Closed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798104 13f79535-47bb-0310-9956-ffa450edef68
2017-06-08 18:39:23 +00:00
Jacques Le Roux d9a24d5a34 This fixes a bug introduced with r1797097
As noted in code the EntityListIterator was not closed for a "good" reason: it
might be used later by the framework though not passed as a var. I think I found
1 case where it's closed after the returned list have been used (in 
EntityAnd.getChildren() in ModelTree.java); but I have to check the whole thing

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798086 13f79535-47bb-0310-9956-ffa450edef68
2017-06-08 16:16:29 +00:00
Jacques Le Roux c7bda90601 Fixes a bug due to r1797222. I missed in some cases the EntityListIterator
might not exist in the context (this seems still weird to me, but obviously 
there are cases...)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1798060 13f79535-47bb-0310-9956-ffa450edef68
2017-06-08 13:49:23 +00:00
Jacques Le Roux 17af201267 No functional changes.
Replaces EntityListIterator.close() in finally by try-with-ressource

With, mmm..., some refactoring. For instance I don't like re-throwing an 
exception 
and I'm not alone 
https://martinfowler.com/articles/replaceThrowWithNotification.html

In case of event I prefer when we use something like
   request.setAttribute("_ERROR_MESSAGE_", errMsg);
like also suggests Martin Fowler

So I did that, of course it's tested, as similar changes done already

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797792 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 14:58:11 +00:00
Jacques Le Roux e408aee01c Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797791 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 14:35:33 +00:00
Jacques Le Roux fb110d6679 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797790 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 14:32:25 +00:00
Jacques Le Roux 6126b7e191 Improved:
Improved: Writer closed but not in case of exception
(OFBIZ-9388)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the Writer creation and before it's closed the 
Writer remains in memory.

The solution is to use try-with-ressources when possible.

This also improves the way the EntityListIterator is closed, using
 try-with-ressources instead of closing in case of exception

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797744 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 07:49:40 +00:00
Jacques Le Roux 2388ed61f7 No functional changes.
Replaces Writer.close() in finally by try-with-ressource

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797743 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 07:40:51 +00:00
Jacques Le Roux 4e529f7055 Improved: Writer closed but not in case of exception
(OFBIZ-9388)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the Writer creation and before it's closed the 
Writer remains in memory.

The solution is to use try-with-ressources when possible, even when finally was
used (no problems then).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797742 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 07:34:28 +00:00
Deepak Dixit 3708ada432 Fixed: CostServices.xml#getProductCost fail currency conversion.(OFBIZ-9387)
Thanks Wai for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797733 13f79535-47bb-0310-9956-ffa450edef68
2017-06-06 06:12:22 +00:00
Jacques Le Roux ec2f674a92 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

I noticed Groovy has no try-with-ressources statement. I put a comment in
the description of OFBIZ-9296 "Update Gradle to 2.4.10" Maybe a solution would
be to use streams but really WTF! It seems Gradle 2.5 has autocloseable...

This contains also some refactoring and code cleaning




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797373 13f79535-47bb-0310-9956-ffa450edef68
2017-06-02 11:25:17 +00:00
Jacques Le Roux 004cd686b2 No functional change,
Improves EntityListIterator.close() warning

It was something like

ContentAssoc] has already been closed, not closing again.

It's now properly

This EntityListIterator for Entity [ContentAssoc] has already been closed, 
not closing again.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797356 13f79535-47bb-0310-9956-ffa450edef68
2017-06-02 09:49:32 +00:00
Jacques Le Roux 74c018177a Improved: Update Groovy to 2.4.10
(OFBIZ-9296)

While working to see if we can somehow use a mechanism like try-with-ressources 
in Groovy I found that apart for streams it's not available. It seems 
autocloseable is available in 2.5 but I did not dig enough

In the meantime this updates Groovy to 2.4.10. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797226 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 13:51:26 +00:00
Jacques Le Roux fd8af94e07 Fixes a typo just introduced with r1797222 (missing "}")
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797224 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 13:42:18 +00:00
Jacques Le Roux e76e9c04de No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797222 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 13:23:40 +00:00
Jacques Le Roux a98186ad28 No functional change, removes not referenced empty services implementations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797169 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 09:17:19 +00:00
Jacques Le Roux 842e1b21cd No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

This is a weirdo badly written double case but with some refactoring 
I can confirm it works at 
https://localhost:8443/facility/control/ViewFacilityInventoryByProduct
which uses the getProductInventoryAndFacilitySummary service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797161 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:18:48 +00:00
Jacques Le Roux 12ecb8926f Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797160 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:14:41 +00:00
Jacques Le Roux 21401486e0 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797159 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:12:12 +00:00
Jacques Le Roux 75316e1f57 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797158 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:10:51 +00:00
Jacques Le Roux b1a7a0f9a8 No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

This is a weirdo badly written double case but with some refactoring 
I can confirm it works at 
https://localhost:8443/facility/control/ViewFacilityInventoryByProduct
which uses the getProductInventoryAndFacilitySummary service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797155 13f79535-47bb-0310-9956-ffa450edef68
2017-06-01 08:07:36 +00:00
Jacques Le Roux e49d09f7dd No functional changes.
Replaces entityListIterator.close() in finally by try-with-ressource

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797097 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 18:43:05 +00:00
Jacques Le Roux 9f635d26e2 Fixed: Find Projects throw "EntityListIterator Not Closed for Entity" error
(OFBIZ-7406)

Steps to regenerate issue:
1. Go to PROJECTS component
2. Click on sub-menu "Projects"
3. Click on find button
________________________________________________
#Browse the link:
https://localhost:8443/projectmgr/control/FindProject

This is similar with OFBIZ-9385 but the case is one of the convoluted. 
The fix is though rather simple: use try-with-ressources and refactor around

Thanks: Vaibhav Jain for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797079 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 17:25:36 +00:00
Jacques Le Roux b6e1e35f81 Improved: EntityListIterator closed but not in case of exception
(OFBIZ-9385)

This is an improvement only because no cases were reported. But obviously in 
case of unlucky exception after the EntityListIterator creation and before it's 
closed the EntityListIterator remains in memory. 
It should be closed in EntityListIterator.finalize() but the less happens there 
the better.

The solution is to use try-with-ressources

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797074 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 17:16:15 +00:00
Jacques Le Roux 00a3ff4b6f Improved: Greater precise value overriding price in order
(OFBIZ-9145)

I encounter a problem when try to re-enter orders originally created in another 
system (not ofbiz). And I found some cases when it's not possible to reproduce 
it exactly due to some promo rules triggered in this another system. 
But I must. Difference .01 is important.

Solution would be if I can change the unit price in an existing order using 
value with 3 digits after decimal point. I found that if I add new order item 
and check "Override" price I am able to enter more precise values.

But if I update unit price in an existing order item I am not, updateOrderItems 
rounds it to 2 digits. Exactly the same intention but works differently.

This makes me think we can remove rounding in second case. 
I believe if user want to change the unit price he knows why.

jleroux: despite slightly changing the behaviour of updateOrderItems, I see no
crucial reasons why we would not do that. The consistency aspect is here 
important.


Thanks: Oleg Andreyev

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1797066 13f79535-47bb-0310-9956-ffa450edef68
2017-05-31 16:09:11 +00:00
Gil Portenseigne f2fac1a18f Fixed: Convert AcctgAdminServices.xml mini-lang to groovyDSL (OFBIZ-9372)
Related to task OFBIZ-9350 Deprecate Mini Lang, convert services createPartyAcctgPreference, getPartyAccountingPreferences, setAcctgCompany, updateFXConversion and getFXConversion from mini-lang to groovyDSL
Commited slightly modified patch from Leila, implementing Jacques and Deepak recommendations.

Thanks to Jacques and Deepak for the review, Leila for the provided patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796731 13f79535-47bb-0310-9956-ffa450edef68
2017-05-30 07:14:27 +00:00
Nicolas Malin 0185345b7a Fixed: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
related to task OFBIZ-9350 Deprecate Mini Lang, convert service updateRateAmount, deleteRateAmount updatePartyRate and deletePartyRate from mini-ang to groovyDSL
Thanks to Deepak for the review

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796428 13f79535-47bb-0310-9956-ffa450edef68
2017-05-27 16:23:31 +00:00
Deepak Dixit 18d4cc3381 Improved: Replace fields with "id-ne", "id-long-ne" and "id-vlong-ne"
with "id", "id-long" and "id-vlong" respectively which are primary keys
(OFBIZ-9351)
Thanks Aditya Sharma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796379 13f79535-47bb-0310-9956-ffa450edef68
2017-05-27 11:28:36 +00:00
Deepak Dixit d345ecf8e5 Improved: Made formName filed optional in renderDateTimeField macro, as this field is not required for all the cases, Only if user define an filed outside of form and want to submit it with form then only we need to use renderDateTimeField formName field. (OFBIZ-9380)
Thanks Chuck Kosta for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796262 13f79535-47bb-0310-9956-ffa450edef68
2017-05-26 09:19:29 +00:00
Michael Brohl 9b54d99541 Fixed: Fix TemporalExpressions.Frequency to avoid moving job start times away
from given freqCount raster.
(OFBIZ-9374)

If a job is scheduled using TemporalExpressions.Frequency the start time of the 
job will gradually move forward when the excecution of the job is delayed by one 
or more units of the frequency type.

Example: Job is set up to start at 2017-01-01 00:00:00 and run every ten 
minutes. One month later due to some circumstances the job starts at 
2017-02-01 00:01:01 which results in the next execution to be scheduled at 
2017-02-01 01:11:00 in stead of 2017-02-01 01:10:00.

The reason behind this behaviour is the TemporalExpressions.Frequency#prepareCal 
function. It has the purpose to jump from the first starting time to the latest 
possible execution of the job. But instead it just sets it to the current time 
(with the precision of the chosen frequency type) and calculates the next 
execution time from this point.

Thanks: Tobias Laufkötter for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1796047 13f79535-47bb-0310-9956-ffa450edef68
2017-05-24 12:26:48 +00:00