Commit Graph
14503 Commits
Author SHA1 Message Date
Christian Geisert 6881ce39aa Moved Swiss German ("Offerte") to de_CH labels
See OFBIZ-2862


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1325807 13f79535-47bb-0310-9956-ffa450edef68
2012-04-13 15:37:04 +00:00
Jacques Le Roux 8941baebee A patch from Tom Burns for "Add Support for Dependent Country State Drop Downs to SFA New Postal Address " https://issues.apache.org/jira/browse/OFBIZ-4801
Description

In SFA "Create New Account" does not implement dependent drop downs for Country/State.
This is not consistent whith the behavior in the Account update form which uses Country/State dependent drop downs.

To Reproduce:
In SFA select Accounts
Select "Create New Account"

Expect: "State" values to be limited to values valid for the selected country.
Actual: "State" values include all values in stateProvinceGeoId regardless of the selected Country.

After Improvement:
State values will be filtered based on the value selected in "Country Geo Id"


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1325136 13f79535-47bb-0310-9956-ffa450edef68
2012-04-12 06:46:34 +00:00
Jacques Le Roux 6d75b53002 A patch from Tom Burns for "Facility Edit Contact Information use Dependent drop-downs" https://issues.apache.org/jira/browse/OFBIZ-4798
Now uses the dependent drop-down mechanism as it was recently done for Party Profile

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1324573 13f79535-47bb-0310-9956-ffa450edef68
2012-04-11 05:57:23 +00:00
Jacques Le Roux de2293d16a Removes trailing blanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310957 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:31:09 +00:00
Jacques Le Roux 27822125e1 setCountryStatesEventJs.ftl was a specialisation of setDependentDropdownValuesJs.ftl introduced 2 years ago with it. It has never been used and finally whan I thnk about it I don't see any needs to keep (slim down spirit)
So this to remove it and clean duplicated references/comments about setDependentDropdownValuesJs.ftl

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310954 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:19:48 +00:00
Jacques Le Roux 050690362d Fixes "Party Manager Default Country in Update" reported by Tom Burns at https://issues.apache.org/jira/browse/OFBIZ-4787
In Party Manager > Profile > Contact Information > Update the "Country" drop down always defaults to "United States".
This is misleading if the Country is not "United States".
If a user were to change some other address element he/she would have to also re-set "Country" to keep it from being changed to "United States".

To reproduce:
In Party Manager lookup a party with a "Postal Address" say "DemoSupplier"*
In Contact Information > Postal Address Click "Update"
In the Country field select any country but "United States" say Switzerland
Click "Save"

Note -
Expect drop down default after save = "Switzerland"
Actual drop down default after save = "United States"

Click "Go Back"
Expect "Postal Address" country = "Switzerland"
Actual "Postal Address" country = "Switzerland"

Click
Click "Update"
Expect drop down default to be "Switzerland"
Actual "United States"

jleroux: rather than using Tom's patch I reused setDependentDropdownValuesJs.ftl. There were no OOTB examples of its use in FTL templates so now there is one.The same could be done for other EditContactMech.ftl (eCommerce and Facility) I will ask Tom to try it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310953 13f79535-47bb-0310-9956-ffa450edef68
2012-04-08 05:15:29 +00:00
Jacques Le Roux 279fb0debf A patch from Tom Burns for "SFA Postal Address Broken" https://issues.apache.org/jira/browse/OFBIZ-4786
SFA does not store countryGeoId or stateProvinceGeoId in PostalAddress entity when creating a new account causing postal address display to break in SFA and Party Manager profile screens.

Demo data for "sfa100" does not have values for countryGeoId or stateProvinceGeoId

Values countryGeoId or stateProvinceGeoId are needed to display party profile.

To reproduce:
1. In Party Manager search for Party Id "sfa100"
Open "sfa100" from search results
See error message under "General Correspondence Address"

2. Similar in SFA Account Lookup
3. A New Account created in SFA will produce the same error.

Adding address to an existing account works. For example the demo accounts created by other components.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310731 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 11:01:49 +00:00
Jacques Le Roux 5709385ad6 Followed Scott"s suggestion and added a generic EMAIL_PASSWORD EmailTemplateSetting (used to send a new password at user request)
I finally kept also the previous way because it allow an easier 18n of at the email subject.

Still the same concern: OOTB, if the user has not set a SMPT server in general.properties for the defaultFromEmailAddress the message "A new password has been created and sent to you. Please check your Email." when actually nothing happens. But that's anyway user's responsibility

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310716 13f79535-47bb-0310-9956-ffa450edef68
2012-04-07 09:17:41 +00:00
Scott Gray 05616620b7 CVE-2012-1621: Prevent user submitted data from being streamed directly back to the browser when the content map-key is not found. Log a warning instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309993 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 18:24:54 +00:00
Hans Bakker 8ce6e56675 comment from jacopo, to revert changes from the freemarker down grade
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309778 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 11:30:30 +00:00
Hans Bakker 62bce8407c comment from jacopo, was not according our conventions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309775 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 11:29:53 +00:00
Jacopo Cappellato a65a7a77a6 small formatting fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309725 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:46:39 +00:00
Jacopo Cappellato ef748ee49d Added check to fix a NPE error preventing the purchase order creation for orders with non product items.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309724 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:44:55 +00:00
Jacopo Cappellato 622a234694 Prevent NPE error if a bulk item is added to the cart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309716 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:27:57 +00:00
Jacques Le Roux 5655989997 A patch from Paul Foxworthy https://issues.apache.org/jira/browse/OFBIZ-4784 "storeIncomingEmail assumes variable is not null when it might be"
In storeIncomingEmail in CommunicationEventServices.java, the code to assemble the aboutThisEmail debugging message assumes addressesFrom and addressesTo are not null. But the methods that return values for those variables might return null if they encounter an exception.

Removes also uses of UtilValidate.isEmpty, which should only be used for collections and sequences (see OFBIZ-4427).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309715 13f79535-47bb-0310-9956-ffa450edef68
2012-04-05 09:27:24 +00:00
Jacopo Cappellato 031c552ed0 Added postal address formatters for Germany; thanks to Markus M. May for the patch (OFBIZ-4764)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308379 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 15:10:45 +00:00
Jacques Le Roux a6018705ff A patch from Sebastian Leitner https://issues.apache.org/jira/browse/OFBIZ-4766 "PriceRule applies action to wrong priceType"
If you create a PriceRule and add an action of type "PRICE_POD" (Percent of default price) I read this as:
"take the default price and give an amount of x% to that"

These rules are applied within the service "calculateProductPrice" (specifically in PriceServices.calcPriceResultFromRules). It calculates the amount of discount using the default price (as specified by the action of the rule). But then it adds this discount to the listPrice instead of the defaultPrice.

An example:
listPrice = 100,
defaultPrice = 10,
rule says you give 10% of defaultPrice,
modifyAmount = -1 (this is the correct discount amount)
result would be 100-1 = 99.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308063 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 10:35:09 +00:00
Jacques Le Roux 8b2a581061 Replaces width="200" by style="cssImgXLarge" for images
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307920 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 22:08:39 +00:00
Jacques Le Roux 2ab258f919 A patch from BREMA Dev Team "email password broken" https://issues.apache.org/jira/browse/OFBIZ-3790
There is no productStoreId in the session for an user of a backend application, and ProductStoreEmailSetting is not available. This is the reason.
However we can use default template and default sender's address from general.properties in this case.
Also removes some dead code.

jleroux: this uses  "general.properties", "defaultFromEmailAddress". So to work correctly it still needs "defaultFromEmailAddress" (default =ofbiztest@example.com), "mail.smtp.relay.host" (default =localhost) and such to be set correctly... In other words the message "A new password has been created and sent to you. Please check your Email." could even more misleading if people are not aware about setting SMTP


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307895 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 20:35:42 +00:00
Erwan de Ferrieres ffd9fc86b7 no functional change: removing an array of 1 element
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307836 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 15:45:12 +00:00
Hans Bakker a582973d78 promotions not added to ordertotal: corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307302 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 08:25:41 +00:00
Jacopo Cappellato 4dfcf989fb Implemented new Freemarker transform to set a context variable.
The transform is now used to pass the "postalAddress" to the context of the postal address formatter screen.
This should fix the issue, reported by Chatree, that prevented to render the localized address when the screen was rendered from the send mail service (no request object was available).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307288 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 07:28:39 +00:00
Hans Bakker 3795166f01 enable searching orders by payment status
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307283 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 06:38:11 +00:00
Erwan de Ferrieres 1832d2ac8b OFBIZ-4770 - editCalEvent not use label system on status drop-down - a patch from Nicolas Malin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307097 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 20:38:21 +00:00
Christian Geisert 85ee0b3a7d Finished German translation for OrderErrorUiLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306751 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 08:32:48 +00:00
Sascha Rodekamp 9cb01a05f3 If his/her gender is editable by a customer, the service "getPartyNameForDate" should include it if available (https://issues.apache.org/jira/browse/OFBIZ-3483). A patch from Seabastian Leitner: The service "getPartyNameForDate" returns the name and some personal data for a person for a specific date. If a person is able to edit its gender, I think it would be nice, if the service would also return the gender as an optional output-parameter, if it's available.
IMHO this makes sense, if you use the gender to find out the salutation.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306745 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 07:57:22 +00:00
Sascha Rodekamp 1ce82e8dfe ProductStoreCartAwareEvents: wrong check for website in setSessionProductStore (https://issues.apache.org/jira/browse/OFBIZ-4744). A patch from Michael Brohl: There's a duplicate check if the productStore is null instead of checking productStore and website in ProductStoreCartAwareEvents.setSessionProductStore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306742 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 07:51:00 +00:00
Sascha Rodekamp a6ba1f9e5e runSubscriptionAutoReorders places duplicate orderIds (https://issues.apache.org/jira/browse/OFBIZ-4762) A patch from Sebastian Leitner: The services "runSubscriptionAutoReorders" runs every midnight by default. It checks for expired subscriptions and places a new order to extend them. It fills up a cart from the previous order and places the order.
It also sets the orderId of the old order at the cart, which is used during creation of the new order. According to this, no new order can be placed because of duplicate-entry exceptions from the database.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306732 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 07:28:30 +00:00
Erwan de Ferrieres fcff838a2c Updating Apache POI to the latest stable version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306575 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:26:58 +00:00
Erwan de Ferrieres 029f6e9410 Removing usage some more iterators
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306568 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:18:13 +00:00
Jacopo Cappellato 6c49613480 OFBIZ-4715 Committed patch from Markus M. May to extend the country specific address formatter to PDF (fo.ftl).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305898 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:48:54 +00:00
Ashish Vijaywargiya 1d1f6dae2f Bug fix. Setting up transaction-timeout="7200" for updateOrderItems service. This problem comes into picture when you have large number of items in an order. For example: Suppose you have more then 100 _different_ items in the cart, each has large quantity and now you wanted to update any of the item quantity then you will observe transaction timeout issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305733 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 05:26:25 +00:00
Erwan de Ferrieres fdf00739ee I replaced too much while in order component at rev 1305309. Here are the right ones back
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305426 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 16:19:21 +00:00
Erwan de Ferrieres 55535e8a47 Replacement of iterators with for-each loops for order component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305309 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 11:08:11 +00:00
Erwan de Ferrieres a1074d4ea1 Replacement of iterators with for-each loops for product component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305308 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 11:06:08 +00:00
Jacques Le Roux 1554be0379 A patch from Markus M. May "Add Product Reviews to the profile Screen" https://issues.apache.org/jira/browse/OFBIZ-4736
Currently there is no way for a customer to view her/his reviews created in the ecommerce application. This functionality is added with the attached patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305038 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 14:02:59 +00:00
Jacques Le Roux 231c289650 My user name on Windows is "Jacques Le Roux" I get a an exception when creating shopping list cookie. This is because <<if the cookie name contains illegal characters (for example, a comma, space, or semicolon) or it is one of the tokens reserved for use by the cookie protocol>> http://docs.oracle.com/javaee/6/api/javax/servlet/http/Cookie.html
This fixes it (I did not handle comma not semicolon, I don't think any name use them)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305033 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 13:44:42 +00:00
Jacques Le Roux f105261233 A patch from Atul Vani "When changing picklists status to something invalid, user friendly error message should be displayed." https://issues.apache.org/jira/browse/OFBIZ-4579
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305025 13f79535-47bb-0310-9956-ffa450edef68
2012-03-25 13:14:12 +00:00
Erwan de Ferrieres 233ed0ab49 Change misspelled parameter mainSubmited to mainSubmitted - a patch from Markus M. May
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304713 13f79535-47bb-0310-9956-ffa450edef68
2012-03-24 05:42:18 +00:00
Jacques Le Roux 6cbfc00269 Ha forgot to save before committing, just better formatting around one operator and else block surrounded with curly bracket (could have been one line but in this case it's better read and safe like that)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304590 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 20:51:31 +00:00
Jacques Le Roux 83b98aca7d A patch from Kiran Gawde "Category Detail, Out of Stock check doesn't take into account Marketing Package and multiple facilities" https://issues.apache.org/jira/browse/OFBIZ-4525
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304589 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 20:47:20 +00:00
Jacques Le Roux f66035de48 Small refactoring: no need to have 2 blocks here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304570 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 19:39:34 +00:00
Jacques Le Roux 370bd8fb61 No functional change, only comments
Explains preferred way of using getCategoryTrail service and related method


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304454 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 15:42:24 +00:00
Jacques Le Roux 3214b476cb A patch from Tri Duc Vo "contribute Ofbiz Vietnamese tranlasting to community from HaNoi" https://issues.apache.org/jira/browse/OFBIZ-4627
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304237 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 08:56:48 +00:00
Jacques Le Roux 4cccea2eea A patch from Markus M. May "Minor Refactoring in CategoryWorker - use delegator instead of request in getRelatedCategoriesRet" https://issues.apache.org/jira/browse/OFBIZ-4738
The method getRelatedCategoriesRet uses the request, the final called method could be called using the delegator directly easily. I have refactored the method accordingly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304207 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 06:41:56 +00:00
Jacques Le Roux ad04c356d9 A patch from Paul Pipper "Categories - calculated trails" https://issues.apache.org/jira/browse/OFBIZ-4580
I noticed that currently OFBiz misses a simple function to generate a category trail. 
Generating a trail, however, is often useful when generating breadcrums, facetted search results, and proper category trees in general. 
Hence I created getCategoryTrail



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304205 13f79535-47bb-0310-9956-ffa450edef68
2012-03-23 06:32:23 +00:00
Jacques Le Roux 8cfaf4aaf6 A patch from Sebastian Leitner "ContentManagementServices throws NullPointerException" https://issues.apache.org/jira/browse/OFBIZ-4751
Fixes a NPE

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303764 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 12:59:00 +00:00
Jacques Le Roux 4bc25aede9 Avoids to show CC payment information in log when in verbose mode
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303714 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 10:25:31 +00:00
Hans Bakker 324b42bd1d In image management browsing an image caused the upload service to start: fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303662 13f79535-47bb-0310-9956-ffa450edef68
2012-03-22 06:12:49 +00:00
Hans Bakker d59773d4af fix that cannot cancel order when the order use payment gateway of authorize.net
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1303329 13f79535-47bb-0310-9956-ffa450edef68
2012-03-21 09:41:37 +00:00