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
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
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
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
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
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
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
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
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
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
This did not make sense: the pattern was compiled and then the string compiled was retrieved.
Also removes 2 trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542704 13f79535-47bb-0310-9956-ffa450edef68
Adds a word about ant-tests: sometimes you need to clear your data before running 'load-demo'
Removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1542261 13f79535-47bb-0310-9956-ffa450edef68
So better be safe than sorry, even if in the loops we loose a bit of performance (here only "short" loops anyway)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541641 13f79535-47bb-0310-9956-ffa450edef68
While rebuilding it, it seems I inadvertently pushed a OK button somewhere...
This reverts r1541470 and all pending stuff which should not have slipped in
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541485 13f79535-47bb-0310-9956-ffa450edef68