Commit Graph
14503 Commits
Author SHA1 Message Date
Jacques Le Roux 00afa0c283 A patch from Dimitri Unruh "Some dead variable assignments " https://issues.apache.org/jira/browse/OFBIZ-4426
Some value assignments to local variables without reading or using it.

jleroux: indeed I don't see any reasons to set the size of a byte array before feeding it with String.getBytes(), since NPE is handled above. I have even simplified it more using function composition style.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1172015 13f79535-47bb-0310-9956-ffa450edef68
2011-09-17 16:51:38 +00:00
Hans Bakker 8f2e70a279 make sure that the product type productservice does not affect accounting when entering and shipping from inventory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171093 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 13:32:52 +00:00
Sascha Rodekamp 9910aa369d FIX: getOrderStatus service is defined with export="true" (https://issues.apache.org/jira/browse/OFBIZ-4419). A patch from Dimitri Unruh sets the export flag to false: The getOrderStatus service is defined with export="true" without to do any authorization checks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1171020 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 09:17:40 +00:00
Sascha Rodekamp 46b29a9911 IMPROVEMENT: Replace String concatenation in a loop (https://issues.apache.org/jira/browse/OFBIZ-4418) A patch from Dimitri Unruh.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170961 13f79535-47bb-0310-9956-ffa450edef68
2011-09-15 06:04:29 +00:00
Adrian Crum cfdca6d115 Fixed Facility Group screen layout.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170888 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 23:02:25 +00:00
Adrian Crum 82366d0274 Fixed Facility Geo Location screen layout.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170780 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 19:17:15 +00:00
Sascha Rodekamp c80d7e70c9 UPDATE: The "Orders" tab in "Catalog > Products" is not working (https://issues.apache.org/jira/browse/OFBIZ-4403). A patch from Atul Vani which fixes the Order Tab in Catalog >Products.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170469 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 08:14:45 +00:00
Sascha Rodekamp 0d1218dbfd UPDATE: Some inefficient Map iterations (https://issues.apache.org/jira/browse/OFBIZ-4405). A small changed patch from Dimitri Unruh which handles some inefficient Map iterations.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170447 13f79535-47bb-0310-9956-ffa450edef68
2011-09-14 06:41:51 +00:00
Hans Bakker 6ff0e4f1f8 move the public holiday definition from scrum to the HR component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170129 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 11:57:22 +00:00
Hans Bakker 3e70fb8005 test was creating properties file on disk instead of in memory, reported by Jacques and Adrian
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170063 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 07:07:30 +00:00
Jacques Le Roux af139395c4 For historical reason, revert recent geo data changes for USA and CAN.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1170061 13f79535-47bb-0310-9956-ffa450edef68
2011-09-13 06:45:13 +00:00
Jacques Le Roux 13ef710f90 We need also to update seed and demo data for USA states GeoId changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1169822 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 16:39:56 +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 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
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 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
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
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
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
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
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
Sascha Rodekamp 28eff53625 Update to the current jQuery Version 1.6.2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163547 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 09:26:56 +00:00
Hans Bakker fa3a1a241c add sortable add/mod date to the party find list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163511 13f79535-47bb-0310-9956-ffa450edef68
2011-08-31 07:16:41 +00:00
Adrian Crum b041ecab57 Some small fixups for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163391 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 21:15:19 +00:00
Hans Bakker 2a61998b2d junit tests to test the change in r1163083 to have invoicing per order/or shipment. Also added spring jar files to be able to test ofbiz events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163084 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:25:28 +00:00
Hans Bakker 2dc94f4372 added a new accounting configuration option to generate invoice per order or per shipment. can be overridden at the order level
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163083 13f79535-47bb-0310-9956-ffa450edef68
2011-08-30 04:11:16 +00:00
Adrian Crum 46ce86f899 Clean up, debug, improve the duplicateWorkEffort service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163026 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 21:42:20 +00:00
Erwan de Ferrieres bb24322ee3 There must have been some errors when copying/removing files at revs 1160209, 1160226 and 1160233. The ProductionRunForms.xml file was empty. Thanks Leila for noticing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162977 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 20:15:25 +00:00
Hans Bakker 00b98dcdbc comment put forward in jira OFBIZ-4375 by Atul Vani with addition by 'M'
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162688 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 09:09:50 +00:00
Adrian Crum 7fce7954e4 Added MarketInterest entity CRUD services to the Product component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162503 13f79535-47bb-0310-9956-ffa450edef68
2011-08-28 11:45:15 +00:00
Adrian Crum d586fc7d9e Removed empty (and apparently unused) Marketing Segment find services.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1162498 13f79535-47bb-0310-9956-ffa450edef68
2011-08-28 11:29:18 +00:00