Commit Graph
14503 Commits
Author SHA1 Message Date
Bruno Busco e20f900808 Changed several ecommerce ftl files rendering screenlets so that the HTML is the same as the one that is rendered by the screenlet widget.
Added screenlet styles to the ecommain.css
Added several missin screenlet-body tags.
This allows better and more omogeneus rendering when mixing together FTL and screenlet widgets.
To be continued...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042133 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 10:34:47 +00:00
Jacques Le Roux 0047d57c15 The rounding is already present in the divide operation, so the additional setScale wasn't necessary. Thanks to Scott on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042132 13f79535-47bb-0310-9956-ffa450edef68
2010-12-04 10:32:18 +00:00
Jacques Le Roux 55bf8c5419 A patch from Mirko Vogelsmeier "Added Labels for Option-fields in FindProductPromoCode.ftl" (https://issues.apache.org/jira/browse/OFBIZ-4034) - OFBIZ-4034
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042038 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 22:43:53 +00:00
Jacques Le Roux 0e73bcfb62 A suggested change by Jeremy Wickersheimer "Rounding error in prorating returned adjustments" (https://issues.apache.org/jira/browse/OFBIZ-4038) - OFBIZ-4038
The error is in applications/order/src/org/ofbiz/order/order/OrderReturnServices.java the getAdjustmentAmount method is prorating using this code:

newAmount = returnTotal.divide(originalTotal, decimals, rounding).multiply(amount).setScale(decimals, rounding);

it should be:

newAmount = returnTotal.multiply(amount).divide(originalTotal, decimals, rounding);

else by dividing first what should be for example 1/3 of the adjustment ends up being 0.33

JLR: I have added the setScale part

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042034 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 22:34:06 +00:00
Jacques Le Roux c8d757a6af A patch from Anne Jessel "Improve handling and display of additional product images" (https://issues.apache.org/jira/browse/OFBIZ-4024) - OFBIZ-4024
This patch adds several closely-related features, intended to improve the display of products and their images in the ecommerce webapp.

When additional images for a product are uploaded via the Catalog, the scaled versions that were already being created in service addAdditionalViewForProduct are now recorded as ProductContent. This makes them easily available for use elsewhere.

New ProductContentType values were added to identify these content types. The obviously consistent string to use for these was too long, and so I had to choose something less consistent, but shorter and hopefully still clear. I used XTRA instead of ADDITIONAL.

The sizes to which additional images are rescaled has been changed, so they better fit in the ecommerce display. Relevant sizes in productdetail.ftl have been updated to match these sizes.

The ecommerce product display now uses the scaled additional images if available, rather than relying on the web browser to scale the images.

When displaying a single product in ecommerce, the main image is larger than the additional images. Hovering over an additional image displays a larger version in place of the main image.

Clicking on an additional image displays a popup with a detailed version of the image.

To use the new features, one or more large images (suggest at least 600x600) should be attached as additional images to a product, using the form on the bottom of the content tab for a product in Catalog. Viewing the product in ecommerce should then exhibit the above behaviour.

I have tried to maintain backwards compatibility, so that products with the old-style use of additional images will continue to display as they did previously. This means some of the code is not as streamlined as it might be.

JLR: You might prefer to keep the old ImageProperties.xml values...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042024 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 22:05:19 +00:00
Jacques Le Roux c809b35097 Fixes an issue reported by Erwan at OFBIZ-4008 "displaying promoText in finalizeOrder is wrongly done"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042009 13f79535-47bb-0310-9956-ffa450edef68
2010-12-03 21:18:53 +00:00
Hans Bakker 753f0ec36a allow a user to make his uploaded files public y/n
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1041305 13f79535-47bb-0310-9956-ffa450edef68
2010-12-02 08:31:59 +00:00
Hans Bakker 4453ba3814 correct conversion error by changing the service definition field format from long to bigdecimal, was only used in create/update billing account term screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1041289 13f79535-47bb-0310-9956-ffa450edef68
2010-12-02 06:40:11 +00:00
Hans Bakker 6cab58f905 change all @yahoo.com to @example.com Suggestion from Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040914 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:38:00 +00:00
Hans Bakker 4a9ea51f54 allow single pieces and boxes with a numkber of pieces share the same inventory location but can however be sold at optionally different prices. More explanation will be given in the new feature list of december 2010. Contribution of tukkata.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040908 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 09:26:47 +00:00
Jacques Le Roux b0cd0dfbd4 Fix wrong indentation on Adam's remark on dev ML.
No functional changes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040887 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 08:21:13 +00:00
Hans Bakker 3d2fc9f2fc add support email address to the company for demo purposes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040878 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 06:57:27 +00:00
Hans Bakker f05c14073d add an default purpose parameter to the getPartyEmail service to allow the selection of a specific purpose email
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040867 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 03:37:46 +00:00
Anil Patel 15bb00bbc6 Simplified code in EditShipment screen. Its real simple screen but had some really complex code. Ftl was not needed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040865 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 03:11:44 +00:00
Adam Heath 86b3d1d577 Add some calcAndAddTax variants that allow ship groups without an
address to be skipped.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040836 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:19:19 +00:00
Adam Heath 50e04ed280 Add helper method on CartShipInfo to clear all tax info, on the group
and its items.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040835 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:19:13 +00:00
Adam Heath db80ed5260 Oops, fix errant paste into wrong line, </td> was placed inside the
</#if>, instead of outside.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040834 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:19:06 +00:00
Adam Heath d241a1049a Fix several xml files that had DOS line endings; converted them to UNIX,
so that on fresh checkouts they will be auto-converted to native.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040833 13f79535-47bb-0310-9956-ffa450edef68
2010-12-01 00:15:17 +00:00
Adam Heath c63b8db8be When addSuggestionsToShoppingList was called with a non-existant
shoppping list, and it tried to create a new one(based on auto-save), it
wasn't passing the productStoreId to the service.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040805 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:04:23 +00:00
Adam Heath f0cd365956 Allow optimizeForLargeRuleSet to be specified when calling
calculateProductPrice; previously, it was always hard-coded to false.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040803 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:04:11 +00:00
Adam Heath 6cf143c8db If the last item of an approved order is cancelled, and a new item is
then added, the orderItemSeqId would be reused.  This is because
OrderReadHelper.getValidOrderItems() does not return cancelled/rejected
items, so the loop to find the highest orderItemSeqId wouldn't consider
them.  This means we have to loop over all items, to find the highest
value, then skip the invalid ones locally.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040802 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:04:04 +00:00
Adam Heath b1fbc9800d Remove uses of delegator.findByPrimaryKey(Cache)?, and replace with findOne.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040801 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:58 +00:00
Adam Heath 58a261d393 Fix method updateProductWithReviewRatingAvg, it wasn't storing the productId correctly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040800 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:51 +00:00
Adam Heath 3f8ba48174 Make use of several copy() helper methods in UtilIO; these methods all use an internal buffer, instead of the old code that copied 1 byte or 1 character at a time.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040799 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:46 +00:00
Adam Heath b42218b540 The poster of a review(UserLogin) may not have a party attached, so
protect against a NPE.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040797 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:34 +00:00
Adam Heath 4b9c6d3fca postedPerson can be null(because no userLogin was attached to the
review), so protect against its access.  What would happen is when no
userLogin was available for the review, the table cell would not be
rendered, and the rest of the row cells would shift.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040796 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 22:03:29 +00:00
Jacques Le Roux d2d3552892 Generalizes by using countries.ftl
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040440 13f79535-47bb-0310-9956-ffa450edef68
2010-11-30 09:01:51 +00:00
Jacques Le Roux bbc854feb9 According to Dukian at OFBIZ-4031 those lines should be removed. I just kept 2 duplicates in Chinese, and one in German
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040078 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 11:46:56 +00:00
Scott Gray e7961c147e Switched processWorkEffortEventReminder to use an EmailTemplateSetting record instead of its own property file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040016 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 05:37:56 +00:00
Scott Gray 0fc0ea4ad5 Extract processWorkEffortEventReminder out to a service so that the implementation can be overridden if desired. Deprecates org.ofbiz.workeffort.workeffort.WorkEffortServices.processEventReminder(DispatchContext, GenericValue, Map<String, Object>), use the processWorkEffortEventReminder service instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039980 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 23:29:44 +00:00
Jacques Le Roux d555ce6c36 Fix duplicates in labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039858 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 09:56:44 +00:00
Jacques Le Roux 66c5dd10a0 A patch from Dukian "Add Traditional Chinese translation for applications, ecommerce, and ofbizsetup" (https://issues.apache.org/jira/browse/OFBIZ-4031) - OFBIZ-4031
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039574 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 21:56:14 +00:00
Hans Bakker 50cd9ce3ee make link from commevent to role optional so all commevents will be found even without a role
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039358 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 13:58:20 +00:00
Jacques Le Roux bfc89cc920 Fix a small bug reported by Anne Jessel on user ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039343 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 13:23:57 +00:00
Ashish Vijaywargiya c582896678 Bug Fix.
If someone working in different time zone(For ex: PST) then updating, deleting records from db gives error on the console. 

Thanks Amit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039256 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 07:38:33 +00:00
Hans Bakker 78b5293c60 change style of new blog article button
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039243 13f79535-47bb-0310-9956-ffa450edef68
2010-11-26 03:16:45 +00:00
Ashish Vijaywargiya 0d7010f561 Bug fix. If we have lot of category on CategoryRollup page then pagination is not working.On this page it is showing few categories & after certain limit it is also not showing remaining category.This patch will fix this issue.
Thanks Amit for the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038990 13f79535-47bb-0310-9956-ffa450edef68
2010-11-25 10:26:29 +00:00
Andrew Zeneski e45861d1b7 addressing JIRA OFBIZ-4029; where the CNP response was being clobbered by the CP response; this addresses the issue and includes a few minor clean-ups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038317 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 20:14:57 +00:00
Andrew Zeneski 88817e1192 added order party Id override when loading cart from a shopping list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038278 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 18:58:42 +00:00
Jacques Le Roux 4d55dcdae8 A patch from Sascha Rodekamp "Paging for products in category mgr is not correct" (https://issues.apache.org/jira/browse/OFBIZ-4033) - OFBIZ-4033
As you can see at https://demo-trunk.ofbiz.apache.org/catalog/control/EditCategoryProducts?productCategoryId=100
The number of products is 'one' (but there are more than one). It's related to the distinct operator in the EntityFindOptions.

This patch fixes the issue and shows the paging in the right way.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038228 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 17:51:13 +00:00
Jacques Le Roux b8689d9e7a A patch from Sascha Rodekamp "Security Update for forgotten passwords " (https://issues.apache.org/jira/browse/OFBIZ-3842) - OFBIZ-3842
Improve the a random Password generation when the "require new password" function is called. In the current Trunk it's a kind of hard coded password that will be send to the user. After generating a new pass the "requireNewPassword" flag will be set to true (configurable).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1038209 13f79535-47bb-0310-9956-ffa450edef68
2010-11-23 17:13:53 +00:00
Jacques Le Roux d699ac5a57 A patch from Willem Janssen "Error in service signUpForContactList" (https://issues.apache.org/jira/browse/OFBIZ-4001) - OFBIZ-4001
The service signUpForContactList does not store the email address of the new entry to the list, instead it uses the email address of the first partyId NA to store to the list.

The service signUpForContactList calls service createContactListParty that has a check on a missing contactMechId. However this parameter is not a parameter that is used by the signUpForContactList service. So the check on the contactMechId has always the same result, it is missing!

signUpForContactList uses parameter prefferedContactMechId so I made a patch that adds the check on this parameter to createContactListParty. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037567 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 21:40:39 +00:00
Jacques Le Roux ac2e687b61 A modified patch from Anne Jessel "title-property should be titleProperty" (https://issues.apache.org/jira/browse/OFBIZ-4018) - OFBIZ-4018
Anne: some screen widgets set the field title-property instead of titleProperty. This causes errors in the logs, and means that the page title is not being set.
While preparing this patch, I discovered the labels referred to by some of these titleProperties were not available in Order component. However the missing ones were in Ecommerce. So I copied the missing ones to OrderUiLabels.xml.

JLR: instead of copying labels in OrderUiLabels.xml, I moved them to CommonUiLabels.xml: less and more consistent changes in the future.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037559 13f79535-47bb-0310-9956-ffa450edef68
2010-11-21 21:07:19 +00:00
Bruno Busco eae5209812 Added missing uiLabels property-map loading in screens used in the Ajax form update.
This caused some labels to not being localized when using the form pagination.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037079 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 23:22:48 +00:00
Bruno Busco ac92eeffd0 Enabled column sorting in Survey list, WebSite list and DataResource list forms
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1037078 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 23:19:10 +00:00
Bruno Busco 6896249104 Enabled column sorting in ListContent form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036985 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 19:14:13 +00:00
Ashish Vijaywargiya 3633e9ef46 Improved comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036794 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 10:38:26 +00:00
Ashish Vijaywargiya 96e80e14ad Code Enhancement.
Sometime it happens that you are reading order information from some legacy database and importing them in OFBiz. So if orderDate is passed in context then lets check it with sales discontinuation date. And if sales discontinuation date is greater then passed order date then you should safely import the order.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036773 13f79535-47bb-0310-9956-ffa450edef68
2010-11-19 09:33:08 +00:00
Ashish Vijaywargiya 7e22493c32 Bug fix. If line feed exists in the note data then find those line feeds and replace it with the <br/> tag. This is better fix from my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036669 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 22:55:21 +00:00
Jacques Le Roux c233358a63 A patch from Shi Yusen "Improve the Chinese translation of word 'Review' " (https://issues.apache.org/jira/browse/OFBIZ-4028) - OFBIZ-4028
Improve the Chinese translation of word 'Review' to make it same as the term used by local ecommerce suites.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1036483 13f79535-47bb-0310-9956-ffa450edef68
2010-11-18 15:16:29 +00:00