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
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
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
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
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
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
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
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
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
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
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
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