(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
(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
(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
(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
(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
(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
(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
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
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
I found an inconsistency in the code for string comparison statusId.equals("PRUN_COMPLETED") whereas it should be written as "PRUN_COMPLETED".equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.
Thanks Devanshu Vyas for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1795341 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9322)
Completes r1793170
Removes duplicates data that should rather be in the PartyDemoData.xml
Moves and merges data from DemoPaymentsInvoices.xml to PartyDemoData.xml
Moves and merges data from DemoOrderTestData.xml to PartyDemoData.xml
Note that if later we want to have data located with tests data like those moved
from DemoOrderTestData might need to be located again in order component. But
anyway then a lot of data would need to be moved. For now we rely on the
components loading order defined in applications component-load.xml
Tests pass
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1794092 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9322)
Completes r1792866
This in DemoProduct.xml (accounting) duplicates the same in ProductDemoData.xml
It fit more in ProductDemoData.xml (product) so I remove it from DemoProduct.xml
Tests pass
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793764 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9322)
This commit completes the removal of final dependency on plugins. After this
commit tests can run successfully on framework stand-alone. This is achieved by
removing portions of failing tests described in more detail in below ML thread
Discussion thread: https://s.apache.org/3fiL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793633 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9322)
Further removed dependencies on demo data defined in ecommerce by modifying
the following data items:
- Move the DemoSupplier demo data from ecommerce to accounting
- Move the PartyIdentificationType of "CARD_ID" from ecommerce to party
This brings down total failing tests to only two
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1793170 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9322)
This is the first commit to removed dependencies on the ecommerce plugin data
by moving the following files to applications:
- DemoStandardCosting to applications/accounting/data/
- DemoOrderPeopleData.xml to applications/order/data/
- DemoOrderTestData.xml to applications/order/data/
- DemoProduct.xml to applications/order/data/
- DemoRentalShipping.xml to applications/order/data/
- DemoShipping.xml to applications/order/data/
Also modified some data on the below files to fix dependency order
- applications/product/data/ProductDemoData.xml
(move facility data needed for tests from plugins)
- applications/marketing/data/sfaDemoData.xml
(move data to DemoOrderPeopleData.xml)
- applications/party/testdef/data/PartyTestsData.xml
(status does not exist)
- applications/workeffort/testdef/data/WorkEffortTestData.xml
(status does not exist)
- applications/workeffort/minilang/test/WorkEffortTests.xml
(depends on planHours which is defined in project componnent)
And finally updated the below component files with the moved data
- applications/order/ofbiz-component.xml
- applications/accounting/ofbiz-component.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792866 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7452)
Go to Catalog -> product
Select any product and then switch to attributes tab
Find Add Product Attribute form, proper validations must be there.
Thanks: Suraj Khurana
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791752 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7220)
When an order contains back ordered products the quick ship option should not
be available
Thanks: Padmavati Rawat for report, Suraj Khurana for solution and patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791751 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7375)
Steps to regenerate -
1) Navigate to manufacturing -> Routing
2) Press New Routing button.
3) Try to create a routing without entering Routing Name. It will not allowed to
create the record as routing name is mandatory field.
4) Create routing by adding proper details.
5) Now, select newly create routing from manufacturing -> Routing
6) Try to update selected routing with empty Routing Name.
Actual : Routing can be update with empty Routing Name.
Expected : Routing should not allow to update with empty Routing Name.
Thanks: Ankit Joshi for analysis and patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791634 13f79535-47bb-0310-9956-ffa450edef68
screen
Improved:
(OFBIZ-7850)
1. Go to Find Forum group list page
https://localhost:8443/content/control/findForumGroups
2. Select one of the Forum from the available forum list.
3. On this Forum Group page, In Add Forum and List Forums section, the UI label
From Date Time displayed "From Date & Time", it should be corrected to
display From Date Time.
jleroux: patch obsolete, I had to change things by hand
Thanks: Gopal Yadav
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791473 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9314)
Steps to reproduce:
Go to workEffort component.
2) Create a new task from New Task button
https://localhost:8443/workeffort/control/mytasks .
3) After creating Task with required fields, click on parties tab.
4) Screen for WorkEffort Party Assignment will be displayed.
5) Choose any party and role.
6) Click on Add. Error will be displayed.
Solution:
Any party is assigned to a WorkEffort on specific role, hence it is necessary
that party should be in that role first (PartyRole).
Added code which make sure the party should be in given role (i.e service call
to ensurePartyRole).
Thanks: Jagpreet Kaur
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1791277 13f79535-47bb-0310-9956-ffa450edef68