Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux be880e2c5f No functional automated changes
Add @Override annotations
Fixes comments indentation
Removes trailing blanks


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1552077 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 20:12:37 +00:00
Jacques Le Roux 60597ea005 Fixes <<FIXME: Replace DCL code with AtomicReference>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1552073 13f79535-47bb-0310-9956-ffa450edef68
2013-12-18 19:46:50 +00:00
Jacques Le Roux 3d458932c5 A slightly modified patch from Leon for "sequence-bank-size attributes does not work anymore" https://issues.apache.org/jira/browse/OFBIZ-5429
No matter how I set "sequence-bank-size" for an entity (in my example, its "EntityAuditLog"), the bank size is always default value "10".
It seems that this feature was lost by a serials update of revision 922724 to 922733 submitted by doogie.

jleroux: This thread http://markmail.org/message/ifosqek74gqtv7fz trace the root cause
Leon's fix is safe from a concurrency perspective. I just added a check on SequenceBank.maxBankSize and put some doc in the XSD

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551744 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 22:45:20 +00:00
Jacques Le Roux ad01b0df4c A slightly modified patch from Pierre Smits for "Improvement of Dutch localization in WorkEffortMgr" https://issues.apache.org/jira/browse/OFBIZ-5435
jleroux: Removed few duplicates en labels


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551609 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 16:35:25 +00:00
Jacques Le Roux 00fe5c3681 A slightly modified patch from Pierre Smits for "Improvement of Dutch localization in PartyMgr" https://issues.apache.org/jira/browse/OFBIZ-5433
jleroux: 
French label change wrong, removed
<value xml:lang="fr">OFBiz : Gestionnaire d'acteur</value>
Removed duplicates en
<value xml:lang="nl">Team</value>
<value xml:lang="nl">Account</value>
<value xml:lang="nl">Project team</value>
<value xml:lang="nl">Sponsor</value>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551605 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 16:22:49 +00:00
Jacques Le Roux b670bf49c9 A patch from Pierre Smits for "Improvement of Dutch localization of OrderEntityLabels.xml" https://issues.apache.org/jira/browse/OFBIZ-5432
jleroux: the French label change was wrong, removed (forgot in previous commit)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551600 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 16:13:42 +00:00
Jacques Le Roux 75042592c8 A slightly modified patch from Pierre Smits for "Improving Dutch localization of OrderUiLabel.xml" https://issues.apache.org/jira/browse/OFBIZ-5431
jleroux: the French label change was wrong, removed

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551596 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 16:05:57 +00:00
Jacques Le Roux eb01bb126d Misc. cleaning in labels
Removes all empty ones
Removes some redundant/duplicates ones (please committers don't commit those again, I know it's not easy to catch, hopefully now we should have less of them)
Automatically replaces some tabs
Few French labels improvements
Removes 2 orphan entries ("ja" & "cs")
Fixes the schema header of WebtoolsUiLabels.xml


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551594 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 16:00:50 +00:00
Christian Geisert 38a03c0c29 Completed German translation for MarketingUiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551585 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 15:41:47 +00:00
Jacques Le Roux 69ca22e987 Removes nl labels which are actually duplicates of en.
Those were introduced (as wrong C/P I guess) at r732423

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551460 13f79535-47bb-0310-9956-ffa450edef68
2013-12-17 05:31:14 +00:00
Jacques Le Roux 4c3e9b7ec8 No functional changes:
Removes all remaining unchecked warnings
Automatically adds some @Override

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1551207 13f79535-47bb-0310-9956-ffa450edef68
2013-12-16 13:30:46 +00:00
Jacques Le Roux 5a535722ef Better to have this in another tab or window
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550702 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 12:16:00 +00:00
Jacques Le Roux 063c383d33 Better to have this in another tab or window
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550690 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 11:11:06 +00:00
Jacques Le Roux 18e77722a4 I see no reasons to not have expand/collapse all for new product (creation). I guess it was simply a half-batched C/P from above item, so I will backport to releases (R11.04 is ok)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550515 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 20:39:09 +00:00
Jacques Le Roux bd155829c9 Removes blank line
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550434 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 15:13:26 +00:00
Jacques Le Roux 0c2d1c6201 No functional change. Removes useless check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550433 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 15:13:08 +00:00
Jacques Le Roux 576a213948 No functional changes, code improvements
Fixes some dead code entries
Automatically adds some override annotations


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550429 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 14:53:38 +00:00
Jacques Le Roux 20c0205762 I checked with Pierre this was a wrong C/P from above
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550380 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 09:23:48 +00:00
Jacques Le Roux fadc86742b A patch from Pierre Smits for "Improving Dutch references in AccountingEntityLabels.xml" https://issues.apache.org/jira/browse/OFBIZ-5407
jleroux: there are also few English labels changes and a new TaxAuthorityRateType.description.EXCISE_TAX labels with much languages

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550378 13f79535-47bb-0310-9956-ffa450edef68
2013-12-12 09:12:55 +00:00
Jacques Le Roux 2fec67919d No functional changes
This removes a tab introduced with Christian Carlow's patch for "Cancelled ship groups show incorrect quantities on edit order items page" OFBIZ-5405
It also puts the quantity check box near the quantity to avoid any confusion and modify the related label to clarify (English and French only), incidentally this removes a tab introduced with Thaï labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550258 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 21:00:27 +00:00
Jacques Le Roux 11300fa28f A patch from Christian Carlow for "Cancelled ship groups show incorrect quantities on edit order items page" https://issues.apache.org/jira/browse/OFBIZ-5405
Cancelled ship groups show incorrect quantities on the edit order items page.  I cancelled a ship group with a quantity of 2 for an order item but the quantity was still set to 2 when entering edit mode again.  Because its not set to 0 or blank, all cancelled ship groups must manually be set to one of those values in order for the quantity not to be added back after updating the order items.

This patch resolves the problem. It calculates the ship group quantity with OrderItemShipGroupAssoc.quantity - OrderItemShipGroupAssoc.cancelQuantity in editorderitems.ftl



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550255 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 20:48:30 +00:00
Jacques Le Roux f477c73ae7 A patch from Gareth Carter for "htmlFormMacroLibrary.ftl renderNextPrev does not calculate number of pages correctly" https://issues.apache.org/jira/browse/OFBIZ-5422
There are 2 issues with the existing code.
1 - floor is applied to viewSize only not the computed value
2 - if the listSize divides with viewSize evenly, you'll get one extra
eg
24/2=12 - no of pages = 13
24/5=4.8 - no of pages = 5

Change to correctly calculate the number of pages using ceiling rather than floor

To repoduce this I went into find party screen, search for all and manually set the view size (I had to click next and change the VIEW_SIZE parameter in the url).

In my description I mention 24/2=12 and 24/5=4.8,
24 is number of parties I had
2/5 is the view size

It does not matter what the item size is (as long as its more than 0), you just have to make sure listSize divides by viewSize evenly. In my case 24/2 divided evenly and which should have have given 12 pages but gave 13.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550201 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 17:48:37 +00:00
Jacques Le Roux 248b2a3b19 Fixes a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1550117 13f79535-47bb-0310-9956-ffa450edef68
2013-12-11 12:17:50 +00:00
Jacques Le Roux 017010e346 A, directly sent to me, Olivier Heintz's patch which completes the work done by Adrian at r1546891:
>>> Moved web access authorization code from the Flat Grey visual
>>> theme to LoginWorker.java. This change needs to be copied to
>>> other visual themes as well.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1549981 13f79535-47bb-0310-9956-ffa450edef68
2013-12-10 21:52:57 +00:00
Jacques Le Roux 4c49d987f2 No functional changes.
Not a big deal(because it should be very rarely changed during a session + with cache cleared) but I did not want to have final here. I tried this "save action" in Eclipse (on private variable) but finally decided to remove it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1549026 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 13:01:46 +00:00
Jacques Le Roux 80b881bd11 No functional change: removes trailing spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1549017 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 11:07:20 +00:00
Jacques Le Roux 082d2ec52f In r1533839 (related to https://issues.apache.org/jira/browse/OFBIZ-4794 "Set different ports for testing in a CI environment (e.g. Jenkins)"
Which will mostly be used to simultaneously run official demos without having to create patches, I forgot the portOffset for websites and url.properties ports values.
This fixes this point. I also did in it RequestHandler class though the getDefaultServerRootUrl() method is now deprecated.
To be consistent with r1547186 I will backport in R13.07

People should be aware that this will change the ports values of websites and url.properties ports values which in some cases could be an unwanted side effect. 
Anyway the portOffset feature is not destined to be used in production environments where websites and url.properties ports values are often changed purposely

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1549015 13f79535-47bb-0310-9956-ffa450edef68
2013-12-08 10:48:18 +00:00
Jacques Le Roux 6983020dc5 A patch from Christian Carlow for "HTML embedded in entity fields is rendered as text rather than HTML elements when using FTL" https://issues.apache.org/jira/browse/OFBIZ-5376
StringUtil.wrapString is now employed as it is on the order items section of the order creation review page.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1548143 13f79535-47bb-0310-9956-ffa450edef68
2013-12-05 14:06:39 +00:00
Adrian Crum fb23ff7e09 Improved error message in GenericEntity.java - no functional change. The improved message should help developers solve the problem causing the exception.
This has been discussed before, but I will mention it again for instruction: GenericEntity instances that are kept in the entity cache are shared among multiple threads. Therefore, they must be immutable. If you get a GenericEntity instance from the cache and you want to modify it, you must clone it first.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547790 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 12:43:24 +00:00
Jacques Le Roux b169a7dcfc Missed to commit GetAccountOrganizationAndClass.groovy in previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547745 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 09:35:22 +00:00
Jacques Le Roux 777b0ec794 I made a mistake in r1527171. When I removed the call to GetInvoiceItemTypes.groovy in InvoiceScreens.xml I did not notice it was also generating the AccountOrganizationAndClass list.
This fixes it by renaming GetInvoiceItemTypes.groovy to GetAccountOrganizationAndClass.groovy and removing the now useless invoiceItemTypes list inside it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547742 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 09:29:59 +00:00
Jacques Le Roux eba5ff475c Fixes an issue when no amount have been specified while creating an invoice item
Better groovy scriplets (elvis operator)
I believe using BigDecimal for both fields quantity and total can't hurt
Increases size of both fields quantity and total 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547719 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 07:24:26 +00:00
Jacques Le Roux 83c6338646 Fixes an issue reported by Christian Carlow at "Invoice Item type drop down empty when creating new invoice item" https://issues.apache.org/jira/browse/OFBIZ-5415
jleroux: Rather than what proposed Christian I used the same best practice than in r1527171

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547717 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 06:55:59 +00:00
Adrian Crum 6fe9c29219 Merged revision(s) 1547657 from ofbiz/branches/release13.07:
Fixed some flawed conditional logic introduced in rev 1488656.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547673 13f79535-47bb-0310-9956-ffa450edef68
2013-12-04 01:48:16 +00:00
Jacques Le Roux 5292b2f5bc A patch from Praveen Agrawal for "Checking with orderAdjustment.productPromoId rather than adjustment.productPromoId" https://issues.apache.org/jira/browse/OFBIZ-5411
While iterating the adjustments list we are checking with orderAdjustment.productPromoId rather then the adjustment.productPromoId. Using orderAdjustment.productPromoId the condition will never true and the newOrderAdjustmentTotal will always be 0.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1547548 13f79535-47bb-0310-9956-ffa450edef68
2013-12-03 19:40:57 +00:00
Jacopo Cappellato 203d03cc3b When retrieving the product record for the Lucene indexing don't use the cached value; this fixes the issue reported in OFBIZ-5389 by Christian Carlow
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1546954 13f79535-47bb-0310-9956-ffa450edef68
2013-12-02 10:54:50 +00:00
Adrian Crum 63462fa908 Added a new attribute to the ofbiz-component.xml <webapp> element - access-permission. It is used to specify an explicit permission to allow access to the web application, instead of the implied permissions specified in the base-permission attribute (which causes unpredictable behavior).
Also moved web application authorization code from the Flat Grey visual theme to LoginWorker.java. This change needs to be copied to other visual themes as well.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1546891 13f79535-47bb-0310-9956-ffa450edef68
2013-12-02 04:19:48 +00:00
Ashish Vijaywargiya 863e160ede Bug fix. Reset password functionality doesn't work in multi-tenant environment as expected. Lets say you have created UserLogin data in any of the tenant and has set UserLogin.requirePasswordChange="Y" then when user try to login into tenant then reset password functionality doesn't work as user expects.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1546782 13f79535-47bb-0310-9956-ffa450edef68
2013-12-01 06:58:40 +00:00
Jacques Le Roux fe79723a1f Removes an useless FIXME (w/o comment)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1544458 13f79535-47bb-0310-9956-ffa450edef68
2013-11-22 10:03:30 +00:00
Jacques Le Roux f552aca3ea A slightly modified patch from Christian Carlow for "Incorrect selected ship destination displayed on purchase order entry form" https://issues.apache.org/jira/browse/OFBIZ-5397
Selected ship group destinations are displayed incorrectly on the purchase order entry Shipping page.  The first ship group destination is selected without checking if any of the other destinations were selected.  Part of the problem is that the facilityId of the destination chosen is not specified in the parameters passed to CheckOutEvents finalizeOrderEntry function.

To reproduce:
1.  Create an order to DemoSupplier
2.  Add any supplier product to the order and click Finalize Order
3.  Click Continue until you reach the Shipping page
4.  Choose the second shipping destination and click Continue
5.  Click the Shipping link to go back to the previous shipping page
6.  Notice that the second destination is not selected

The second destination is actually assigned because it appears on the confirmation page but no code exists to check the correct radio option.  The facilityId will have to be passed in somehow to allow such logic to be correctly implemented.

Using the @ symbol probably isn't the best one to use for separating fields. I wanted to provide the facility destination contactMechIds in a drop down list rather than as a list of radio options and when the @ symbol is used, it is encoded as @ which prevents matching of the key. This means that I don't get an accurate description in the drop down list of the selected record. Replacing the @ symbol with something else such as _ fixes the issue but might cause problems if some facilities or contactMechIds contain an _.

jleroux:I simply used the token _@_ as separator to prevent wrong splits in case @ or _ would have been used in facilities or contactMechIds (though it's not possible OOTB from UI, those Ids are generated)
This solution works well with radio buttons. There are a lof of information to show in each ship group address and I believe in such case it's easier to read as it's currently done (multiple lines for each address) than using a drop-down.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1544444 13f79535-47bb-0310-9956-ffa450edef68
2013-11-22 09:27:34 +00:00
Adrian Crum 3afb5a5c06 Fixed a regression in ModelEntity.java caused by the recent thread-safety refactoring. Patch provided by Leon - https://issues.apache.org/jira/browse/OFBIZ-5399.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543994 13f79535-47bb-0310-9956-ffa450edef68
2013-11-21 00:37:08 +00:00
Jacques Le Roux 1e8edf4956 No functional changes, removes trailing white spaces and a deprecated comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543792 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 11:46:48 +00:00
Jacques Le Roux 9401e9fb05 No functional changes, adds back trailing white spaces which should not have been removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543781 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 11:36:17 +00:00
Jacques Le Roux 7a58861e61 A completed patch from Pierre Smits for "Using type=accounting-number in form in facility generates wrong output for inventory overview" https://issues.apache.org/jira/browse/OFBIZ-5335
When using locale DE or NL several quantities (ATP, QOH and others) get transformed wrong.
E.g. a ATP of 250 for a product is 250.00 in locale EN or FR, but for DE and NL the output is 250.000.000,00

jleroux: I completed Pierre's patch in 2 ways:
* used also BigDecimal for minimumStock in getProductInventoryAndFacilitySummary service and groovy script
* Fixed the same kind of issue in  CountFacilityInventoryByProduct.groovy

In by and large i18n contexts, this fixes number of Inventory views and reports, also in Asset Maint and Birt components where those 2 service/groovy scripts are used

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543766 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 11:02:42 +00:00
Jacques Le Roux 6a9ef48903 Fixes a wrong rendered info in case of promotion
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1543744 13f79535-47bb-0310-9956-ffa450edef68
2013-11-20 09:54:03 +00:00
Jacques Le Roux a38a21fc0a This closes "Introduce Tomcat's JreMemoryLeakPreventionListener and why" https://issues.apache.org/jira/browse/OFBIZ-5395
The idea is to avoid ThreadLocal with custom classes, this can lead to memory leaks when an external application server is used.
Reverts r1075322 (commit for OFBIZ-4107) hence removes CompilerMatcher 
Uses PatternFactory instead of CompilerMatcher class (from CompilerMatcher keeps the compiled patterns cache idea)
In UtilHttp.java
  Removes dead code
  Removes useless "UtilHttp." for class methods and constants calls (moot point, have we conventions on this?).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542960 13f79535-47bb-0310-9956-ffa450edef68
2013-11-18 09:46:35 +00:00
Jacques Le Roux de40fb6041 Makes createOrGetPerl5CompiledPattern static
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542959 13f79535-47bb-0310-9956-ffa450edef68
2013-11-18 09:45:33 +00:00
Jacques Le Roux c2f81951cf Adds the JreMemoryLeakPreventionListener, see https://issues.apache.org/jira/browse/OFBIZ-5395 for details
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542795 13f79535-47bb-0310-9956-ffa450edef68
2013-11-17 18:53:17 +00:00
Jacques Le Roux be3985ea60 No functional changes, renames
https://cwiki.apache.org/OFBADMIN/mini-language-reference.html
to
https://cwiki.apache.org/confluence/display/OFBADMIN/Mini-language+Reference

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542734 13f79535-47bb-0310-9956-ffa450edef68
2013-11-17 14:30:06 +00:00
Jacques Le Roux 98e992fc1d Renames the Perl5 method createOrGetPerl5CompiledPattern, in case later we want to implement other regex flavors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542725 13f79535-47bb-0310-9956-ffa450edef68
2013-11-17 13:52:11 +00:00