Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 97ba35d771 Adds Swiss Geo data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169819 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 16:25:12 +00:00
Jacques Le Roux 8d9d3f9942 Normalizes
* Canada GeoId for Province prefixed with CA- as it should be (following ISO 3166-2:CA,  http://en.wikipedia.org/wiki/ISO_3166-2:CA)

* USA GeoId for Province prefixed with US- as it should be (following ISO 3166-2:US,  http://en.wikipedia.org/wiki/ISO_3166-2:US). I did not see any reasons to no use the same scheme for "US Armed Forces provinces"

No other countries had the same problem

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169790 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 15:11:00 +00:00
Jacques Le Roux e497883d62 VCard.java: replaec an UtilValidate.isNotEmpty() by a simple isEmpty()
ShoppingCart.java: a tabs has been automatically replaced by 8 spaces, fixes it
UtilValidate.java: removes useless parentheses
GeneriDao.java: fixes a wrong UtilValidate.isNotEmpty
ModelFormField.java: revert all UtilValidate.is(Not)Empty() changes though I ddid not find an error there, it must be one because https://localhost:8443/humanres/control/EditResponsibilityTypes is not rendered correctly. I will check again

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169754 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 14:13:17 +00:00
Jacques Le Roux a7f92ce35f Fix a bug introduced in r1169478
Thanks to Hans for reporting on dev ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169701 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 11:47:15 +00:00
Jacques Le Roux 441e3c6cf5 Prevent a possible NPE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169683 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 10:51:33 +00:00
Jacques Le Roux 821b574133 Fix a typo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169680 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 10:33:26 +00:00
Jacques Le Roux 9aa9b4fdd5 Makes First and Last names optional in createPerson service. This allows to implement simple create user login screen where user is able create account in system with username and password and then later populate rest of the account information.
I did not change simple-methods where processor-name="person" is called (in call-map-processor) because I think we want this change only in createPerson service. Hopefully with the comment it will be now quite obvious

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169670 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 09:56:42 +00:00
Jacques Le Roux 51fbb73aa4 Wrong formatting there
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169663 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 09:33:02 +00:00
Jacques Le Roux df97329beb Revert some useless UtilValidate.isNotEmpty() changes in applications (noticed by Scott)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169655 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 09:08:59 +00:00
Jacques Le Roux 6cc17a2c00 Removes ?if_exists and ! from Scott's remark on r1167501
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169625 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 07:16:30 +00:00
Hans Bakker 97717d61fe let the scrum component follow the default logout routine
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169601 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 03:59:40 +00:00
Jacques Le Roux 4bd75e57d8 Change artifact info label: adds a warning about duration before availability
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169479 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:29 +00:00
Jacques Le Roux 2b712efb98 No functional changes, simple code refactoring around UtilValidate.is(Not)Empty()
Changes implementation of UtilValidate.isEmpty() for Collection and Map by using isEmpty() instead of c.size() == 0). It's more clear and as efficient. Removes also useless parentheses there.

Makes use of UtilValidate.is(Not)Empty() everywhere it makes senses. This for 2 reasons:
* Make the code more readable by replacing the (!)null/isEmpty pattern.
* Avoid possible NPEs when only isEmpty() was used (after Entity.find... for instance). I found a lot of cases (242 today) where isEmpty() could perhaps be replaced in Framework. But I guess no NPE checks were missing there and anyway it was too much for me to check them all... So I only did the relevant changes in Applications...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169478 13f79535-47bb-0310-9956-ffa450edef68
2011-09-11 17:06:11 +00:00
Jacques Le Roux cfc301acdb A patch from Paul Foxworthy "loadCartFromQuote should put tax adjustments into the shipping group" https://issues.apache.org/jira/browse/OFBIZ-4391
loadCartFromQuote is currently copying all adjustments from a quote into the order-wide adjustments for the shopping cart. Tax adjustments should be copied into the shipping group, i.e. treated in a different way from adjustments like a discount.

There's also a, unit test that demonstrates the bug. Apply just the test patch and you should see the problem. Apply the other patch with the change to loadCartFromQuote, and the test should pass.

jleroux: also a French label fix

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167606 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 21:08:01 +00:00
Jacques Le Roux a06089d496 A patch from Sam Hamilton "Improvement to error message for ImageManagement " https://issues.apache.org/jira/browse/OFBIZ-4384
A small improvement to the error message generated when the system cannot create a directory. 



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167551 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 16:03:18 +00:00
Jacques Le Roux 49ae02a3e8 A patch from Paul Foxworthy "createItemIssuanceRole and deleteItemIssuanceRole require Shipment PK parameter" https://issues.apache.org/jira/browse/OFBIZ-4344
createItemIssuanceRole and deleteItemIssuanceRole both call checkCanChangeShipmentStatusPacked, which checks the current status of a shipment to see if anything about it can be modified.
Therefore, these services require a shipmentId parameter, but at present their service definitions don't say so.
At high logging levels, this bug causes log entries to say there's a missing PK value on a FindOne.
This is not a major problem at present. create... is only called in the midst of another service and the test has already been done, but a direct call to create... might cause incorrect behaviour. delete... is not called within Ofbiz at present.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167517 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 13:54:58 +00:00
Jacques Le Roux e0c9d63dd9 A patch from Marcelo Giubergia "ofbizsetup "INSERT CARRIER_SHIPMENT_METHOD" ERROR when new store is created" script" https://issues.apache.org/jira/browse/OFBIZ-4381
I installed ofbiz from scratch according with recommended method

>ant clean-all
>ant run-install-extseed
>ant create-admin-user-login
>./startofbiz.sh

Then, when I create an store by https://localhost:8443/ofbizsetup/control/createProductStore

Error: Error parsing entity xml file: org.ofbiz.entity.GenericEntityException: Error while inserting: [GenericEntity:CarrierShipmentMethod][createdStamp,2011-08-29 11:16:33.247(java.sql.Timestamp)][createdTxStamp,2011-08-29 11:16:32.951(java.sql.Timestamp)][lastUpdatedStamp,2011-08-29 11:16:33.247(java.sql.Timestamp)][lastUpdatedTxStamp,2011-08-29 11:16:32.951(java.sql.Timestamp)][partyId,sds(java.lang.String)][roleTypeId,CARRIER(java.lang.String)][sequenceNumber,4(java.lang.Long)][shipmentMethodTypeId,LOCAL_DELIVERY(java.lang.String)] (SQL Exception while executing the following:INSERT INTO public.CARRIER_SHIPMENT_METHOD (SHIPMENT_METHOD_TYPE_ID, PARTY_ID, ROLE_TYPE_ID, SEQUENCE_NUMBER, CARRIER_SERVICE_CODE, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) (ERROR: inserción o actualización en la tabla «carrier_shipment_method» viola la llave foránea «carr_shmeth_type»<br/> Detail: La llave (shipment_method_type_id)=(LOCAL_DELIVERY) no está presente en la tabla «shipment_method_type».)) calling service parseEntityXmlFile in importTempDataFile


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167510 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 13:09:51 +00:00
Jacques Le Roux f657282358 A modified patch from Deepak Dixit "Incorrect markup for Production Run Costs page." https://issues.apache.org/jira/browse/OFBIZ-4395
In ProductionRunCosts.ftl there is unclosed div for screenlet-body, due to this unclosed page not render properly. You can view this behavior properly in Tomahawk theme. 

jleroux: I added also some checks to prevent unlikely NPEs

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167501 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 12:11:03 +00:00
Jacques Le Roux 76168a4d8a A patch from Leon "trivial update to "convertUom" script" https://issues.apache.org/jira/browse/OFBIZ-4402
If we setup the custom uom conversion method which is called by convertUom service, and then invoke convertUom service, the exception raised:

    Could not complete the Convert UOM values...blahblah...Unknown parameter found: [convertUomCustom.asOfDate]Unknown parameter found: [convertUomCustom.defaultDecimalScale]Unknown parameter found: [convertUomCustom.defaultRoundingMode]Unknown parameter found: [convertUomCustom.purposeEnumId].

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167480 13f79535-47bb-0310-9956-ffa450edef68
2011-09-10 09:29:28 +00:00
Jacques Le Roux 82addd4795 Fixes some wrong labels (mostly French)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167338 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 19:46:47 +00:00
Jacques Le Roux c52a319848 A patch from Atul Vani "Removed redundant controller entries from product>catalog" https://issues.apache.org/jira/browse/OFBIZ-4401
Removes redundant controller entries from product component's catalog webapp. 
Moves one of the entries, so that related entries be all together. Those entries were exactly same, except for '<request-map uri="updateCategoryContent">' for which the removed entry had '<event type="service" path="" invoke="updateCategory"/>', but there exists no service with name 'updateCategory', the other entry has 'updateProductCategory' service called in it's event.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167314 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 17:55:43 +00:00
Adrian Crum f95d8e8c1c Fixed a number of problems with the Eclipse .classpath file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167298 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 17:07:41 +00:00
Jacques Le Roux f0d96245fc A patch from Paul Foxworthy "Generic class instantiations with incorrect type parameters" https://issues.apache.org/jira/browse/OFBIZ-4387
Some variables are declared as Map<String, String> but assigned collections where not all values are strings. These statements will not compile with some Java compilers.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167132 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 12:32:28 +00:00
Adrian Crum ed013f302b A small refactoring of ArtifactInfoBase.java:
1. Fixed infinite recursion reported by Dimitri Unruh (https://issues.apache.org/jira/browse/OFBIZ-4398).

2. Eliminated expensive repetitive String concatenations.

3. Added hashCode() - since the class implements equals().


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167117 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 11:51:13 +00:00
Jacques Le Roux 17d9382788 A patch from Paul Foxworthy "roleTypeId not copied from ProductStoreShipmentMethod to OrderItemShipGroup" https://issues.apache.org/jira/browse/OFBIZ-4389
In ordershippinginfo.ftl, a list of shipping methods is presented, and when one is chosen values are written into an OrderItemShipGroup. The shipping methods are defined by rows in ProductStoreShipMethod, and one of the attributes of this entity is a carrierRoleTypeId. Similarly, OrderItemShipGroup has a carrierRoleTypeId, but no data is being written into it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167116 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 11:50:01 +00:00
Hans Bakker 94b99a25dd be able to put new rental item dirctly into shopping cart
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167071 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 10:09:36 +00:00
Hans Bakker c4d270c294 be able to change the HR tree with the right mouse button adding orginazations, positions and employees, contribution of kookai
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167042 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 08:37:21 +00:00
Hans Bakker 483299c5ec New product type: Fixed Asset Usage For Rental of an asset which is shipped from and returned to inventory. Including Junit test and demo data. More explanation will follow in a blog on the 'what is new page'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1167015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-09 06:40:28 +00:00
Jacques Le Roux eeb5dc6a4c A slightly modified patch from Dimitri Unruh "cartNotEmpty returns wrong results" https://issues.apache.org/jira/browse/OFBIZ-4397
The cartNotEmpty method return "success" if I got a cart object in my session, but with no items.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1166591 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 09:54:48 +00:00
Hans Bakker 38935cf7db New product type SERVICE_PRODUCT which was discussed in the mailing list. blog linked to the what is new file will be added later
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1166543 13f79535-47bb-0310-9956-ffa450edef68
2011-09-08 07:07:07 +00:00
Sascha Rodekamp 568a9e442d Update to jQuery validation 1.8.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1166288 13f79535-47bb-0310-9956-ffa450edef68
2011-09-07 18:11:01 +00:00
Jacques Le Roux dc05be3295 Forgot .classpath in r1165125
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165497 13f79535-47bb-0310-9956-ffa450edef68
2011-09-06 04:51:17 +00:00
Adrian Crum 642c6383e5 Fix NPE I introduced in my previous commit. Reported by Chatree Srichart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165233 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 10:47:32 +00:00
Adrian Crum 98385f75d2 Replace newnote.ftl with form widget, patch provided by Anne Jessel (https://issues.apache.org/jira/browse/OFBIZ-4394).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165206 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 08:35:43 +00:00
Hans Bakker 0f6c709357 add product type to the catalog product list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165177 13f79535-47bb-0310-9956-ffa450edef68
2011-09-05 05:58:41 +00:00
Jacques Le Roux 0215f9b4be A "patch" from Wickersheimer Jeremy https://issues.apache.org/jira/browse/OFBIZ-4185 "processCaptureResult error with billing account"
When using a billing account the processCaptureResult will fail with a missing captureRefNum parameter.

There is a hack that sets it to an empty string but i guess a change occurred and calling makeValid will convert that empty string to null making the service call fail.

The fix is simply a matter of copying the workaround in private static void processCaptureResult(DispatchContext dctx, Map<String, Object> result, GenericValue userLogin, GenericValue paymentPreference, String authServiceType):

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165130 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 23:07:17 +00:00
Jacques Le Roux b01369ef25 Migration to Tomcat 6.0.33 due to a security issue in previous revisions, see http://tomcat.apache.org/download-60.cgi#6.0.33
I have kept tomcat-6.0.32-tomcat-juli-adapters.jar & tomcat-6.0.32-tomcat-juli.jar and renamed them to 33, did not find any issues...



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165125 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 22:44:50 +00:00
Jacques Le Roux 60dc2a519a An effort has been made in r1163575. But it needed a bit more love. I simplified by renaming to geoAssocTypeId instead of uselessly complicated stateProvncGeoAssocTypeId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165124 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 22:33:17 +00:00
Jacques Le Roux 30b4566a7c Revert r1165076 (at Adrian's right demand)
Actually I hastily did it bad using static instead of caching. Anyway, I checked there are no real needs to change current code in OFBiz for perf.: one instance is in an exception and the other not called OOTB...

Was:  Closes https://issues.apache.org/jira/browse/OFBIZ-4201

"DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165084 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 19:07:16 +00:00
Adrian Crum 78106cefd6 Some minor en spelling fixes for CommonUiLabels.xml plus some en_GB additions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165081 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 18:29:03 +00:00
Jacques Le Roux fd92b0eca1 Closes https://issues.apache.org/jira/browse/OFBIZ-4201
"DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance"

jlr: It's not really cache but a static class constant

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165076 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 17:08:54 +00:00
Adrian Crum b891086624 Fixed a ModelFormField bug introduced in rev 1075322 - date and date-time form fields were throwing exceptions because the description Strings were HTML encoded before being converted to other types. I moved the HTML encoding to post-conversion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1165011 13f79535-47bb-0310-9956-ffa450edef68
2011-09-04 13:26:57 +00:00
Adrian Crum fb9ae9ffb5 Added some Calendar<->Date data type converters. Commit includes some unintended code formatting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164906 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 18:36:39 +00:00
Jacques Le Roux 03336ecd7a Closes https://issues.apache.org/jira/browse/OFBIZ-4142
Assetmaint: PDF rendering in same browser window as OFBiz in stead of new window

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164883 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 16:25:34 +00:00
Jacques Le Roux 65995583d2 human ress source was missing since r1160969
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164844 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 10:50:14 +00:00
Adrian Crum b758748e52 Oops, I forgot to add a permission check in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164839 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 09:46:36 +00:00
Adrian Crum 9a54c2df9d Added two new services - copyWorkEffort and copyWorkEffortAssocs. The copyWorkEffort service can be used as a replacement for the duplicateWorkEffort service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164773 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 00:38:25 +00:00
Adrian Crum aa531f10af Improved mini-language <set> operation: now supports groovy: syntax in the from-field attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164712 13f79535-47bb-0310-9956-ffa450edef68
2011-09-02 20:55:15 +00:00
Hans Bakker d5b3965d29 The auto-save list still has the last item even it's removed from cart. So when user login again, the cart is loaded from the auto-save list which is wrong. fixed with this change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163959 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 09:19:55 +00:00
Hans Bakker 1ce4f86892 change the component template to use the application decorator
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163944 13f79535-47bb-0310-9956-ffa450edef68
2011-09-01 08:45:39 +00:00