Commit Graph
194 Commits
Author SHA1 Message Date
Marco Risaliti 80c7d141b8 Remove most of the java compilation warning (generics markup, unused code/import) (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059659 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 20:51:22 +00:00
Hans Bakker 338a2456e3 service 'performFindItem' got sometimes unwanted output parameter 'listSize' from parent findList service: removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058041 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:06:19 +00:00
Jacques Le Roux 0a72fe8793 3 patches from Sascha Rodekamp "Localisation of labels in javascript" (https://issues.apache.org/jira/browse/OFBIZ-3964) - OFBIZ-3964
This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki

Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.

* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels

I simply fixed some typos. I did not test all cases but did a good review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056497 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 20:40:31 +00:00
Adrian Crum 38dea67fbc All find services return a list size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053771 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 23:32:26 +00:00
Ashish Vijaywargiya f0f5ff3898 Bug fix.
When there is failure in sending email from OFBiz we need to break the loop.

Thanks Pranay for the contribution. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053289 13f79535-47bb-0310-9956-ffa450edef68
2010-12-28 09:44:17 +00:00
Scott Gray 47f43a302a Remove unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044931 13f79535-47bb-0310-9956-ffa450edef68
2010-12-12 21:31:27 +00:00
Jacques Le Roux 9679d72618 A patch from Anne Jessel "Is Empty for text-find widget broken" (https://issues.apache.org/jira/browse/OFBIZ-4025) - OFBIZ-4025
To reproduce:
    * go to Facility, Inventory Items tab (or any form that uses text-find widget)
    * choose "Is Empty" from drop-down next to Product Id
    * click Find button

Expected behaviour: no matching items listed, as all items have a Product Id.
Observed behaviour: all items match.

Problem is caused by find code assuming that there is no entity condition to be created if the text field is empty, but of course Is Empty is
different to the other operators in that the text field is expected to be empty.

The attached patch adds a special check for the Is Empty operator.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042396 13f79535-47bb-0310-9956-ffa450edef68
2010-12-05 18:43:44 +00:00
David E. Jones 6683ce38e5 Changed rateProductTaxCalc service to expand Geos differently, using a Map so there is only one geoId for each geoTypeId and when the IDs are expanded by regions it prioritizes current values over new ones, especially values from the original PostalAddress have priority over expanded regions like a countyGeoId on the PostalAddress will be used instead of one (or more) expanded based on the zip code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1025874 13f79535-47bb-0310-9956-ffa450edef68
2010-10-21 08:05:19 +00:00
Hans Bakker c3f42f6e0b correction on commit 1022409
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022412 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 08:24:16 +00:00
Hans Bakker 4fa8c6436a correction on commit 1000753 attachment name list is optional making send invoice fail
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1022409 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14 08:04:48 +00:00
David E. Jones 9b940f0056 Changed sendMailFromScreen service to support a list of attachments instead of just one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1000753 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24 07:47:05 +00:00
Scott Gray 10a56ea013 Copied CommonWorkers.hasParentType(...) over to EntityTypeUtil and deprecated the method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981446 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 10:47:26 +00:00
Scott Gray 4448c4a866 No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Jacques Le Roux c16497a20c Revert r959673 on Scott's advice. There is already a getCategoryMembers. A bit different but it's ok, as it does not make much sense to sort categoryMembers with another field than sequenceNum
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959943 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 10:32:58 +00:00
Jacques Le Roux b89ca0e0ff Adds a getAssociatedProductsList method. I will certainly add the companions service and request later in the Product application.
I have also the vague desire to generalize this more, as I have been able to quickly use it in a widget form following the Freemarker way already used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959673 13f79535-47bb-0310-9956-ffa450edef68
2010-07-01 14:05:21 +00:00
Hans Bakker 5eb1ace0a3 typo in last commit (955133)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@955137 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16 06:35:54 +00:00
Hans Bakker b58eececc7 when emails are sent out related to a custrequest, create also the link between email and custrequest (same pattern as for order)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@955133 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16 05:48:00 +00:00
Adam Heath ce4c794fb6 Revert wrongly committed 950261
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950274 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:59:21 +00:00
Adam Heath caa519f006 Revert wrongly committed 950262
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950273 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:59:02 +00:00
Adam Heath b1da3a854c Make use of new HashCrypt cryptPassword functionality.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950262 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:06 +00:00
Adam Heath 2840ae46fb Refactored LoginServices.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950261 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:00 +00:00
David E. Jones 0c3b76171d Added removeUserPreference service, needed because you can't pass an empty value to the set service to clear out preferences, also this actually removes the record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948697 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 07:18:59 +00:00
Hans Bakker 3d6839ca91 date range selection in a form did not work for 'lessthan' operator added to the find services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945482 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 03:55:48 +00:00
Adrian Crum 90f78694f6 Cleaned up the code in the performFind service in FindServices.java, service now uses the new createConditionList method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937755 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 06:22:54 +00:00
Adrian Crum c25f8887bc Added a method to FindServices.java. The original code parses input parameters into a nested Map structure, then parses the nested Map structure into an EntityCondition. The new method takes a direct approach and parses input parameters directly into an EntityCondition. The method isn't used yet.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937749 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 05:56:21 +00:00
Adrian Crum 73ebeb3f80 Small change to FindServices.java - Extracted the parameter parsing code into a separate method so it can be reused.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937727 13f79535-47bb-0310-9956-ffa450edef68
2010-04-25 00:26:18 +00:00
Adrian Crum 0b9d80f87a Some small code cleanups in FindServices.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937686 13f79535-47bb-0310-9956-ffa450edef68
2010-04-24 19:45:17 +00:00
Scott Gray eee7ea6436 The noConditionFind parameter wasn't being passed from the performFind service to the prepareFind service but it's needed to perform some logic around the filterByDate condition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931283 13f79535-47bb-0310-9956-ffa450edef68
2010-04-06 19:29:46 +00:00
Ashish Vijaywargiya 8f83bfeda0 The screen was broken for CommunicationEventOrder.
The order was not associating with communication event when the new communication event was generating in system for different mail notifications(like OrderConfirmation, OrderComplete, ShipmentComplete etc.)
Now after this commit it will work without any issues.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927758 13f79535-47bb-0310-9956-ffa450edef68
2010-03-26 10:25:08 +00:00
Adam Heath 6122265c29 s/ServiceRegistry/ServiceLoader/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921085 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 19:52:50 +00:00
Bilgin Ismet Ibryam 3b8784b6ab Renamed a variable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911540 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 19:40:28 +00:00
Bilgin Ismet Ibryam bb180a0999 Revert cascadeDelete service after Adam and Adrian's feedback.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910256 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 16:41:35 +00:00
Bilgin Ismet Ibryam 25b998b069 Added a generic cascadeDelete service which can be used for data deletion. It uses recursion to delete all the related data entries.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910235 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 15:14:32 +00:00
Scott Gray 5929b3b830 Moved username.lowercase and password.lowercase security property checks from calling events to the userLogin service itself
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@909216 13f79535-47bb-0310-9956-ffa450edef68
2010-02-12 03:33:20 +00:00
Erwan de Ferrieres e818c214b4 Formating the error message in userLogin Service : adding spaces in error messages
(https://issues.apache.org/jira/browse/OFBIZ-3460) OFBIZ-3460

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908897 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:39:44 +00:00
Andrew Zeneski 30f13fbbb1 implemented not-contains and not-like operators in the generic performFind service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906709 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 22:52:22 +00:00
Scott Gray 1ad191b93c Moved some workflow related test services out of common and into the workflow component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903938 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 02:01:47 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
Erwan de Ferrieres cbdb5a1097 fix test to avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898721 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 11:26:13 +00:00
Adam Heath eb0f0bfb16 Fix several generics warnings.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898090 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 22:21:12 +00:00
Scott Gray f1d8327678 Emails will now be sent to any valid recipients even if the SMTP server rejected any invalid ones. This can be turned off if desired in general.properties and also on a per service call basis.
A failure notification will be sent to the email's "from" address, listing the failed recipients and the reason for each failure. The notification can be turned off by setting the sendFailureNotification parameter to false in the s

These changes fix a problem where emails are not sent to valid recipients and users receive no feedback when emails fail to be sent, generally because of the smtp server rejecting one or more recipients.

OFBIZ-3379, thanks to Pranay Pandey for the report and testing, also thanks to Tim Ruppert and Ruth Hoffman for their input into the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@896213 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 20:48:15 +00:00
Scott Gray 80f029bd91 The sendMail service has a problem where any email addresses that fail a RCPT TO: SMTP check causes the message to not be sent to any of the valid recipients. Fixed by making use of the mail.smtp.sendpartial property which enables the message to still be delivered to valid recipients. I've made sendpartial = true the default but also made it configurable via general.properties. This is the first part of a fix for OFBIZ-3379
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894236 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 19:52:43 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
David E. Jones ef3571738a Small cleanup of a couple of warnings, still many others in this file to clean up
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894047 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 07:58:16 +00:00
Hans Bakker a6f58e1d8c make the soap tests independent of the application component, contribution by chatree, suggestion by Scott
detail:
1. change from ProductCategory and Product entity to Testing and TestingNode entity in testSOAP service
2. insert login.username and login.password attribute document in message part of WSDL
3. change type of eepk- and eeval- element to map-Map and insert its document in WSDL
4. insert document for cus-obj element in WSDL

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893087 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 06:47:20 +00:00
Hans Bakker ea3a88e1a6 Upgrade Axis1 to Axis2. Ofbiz now supports complex parameters in webservices including WSDL generation. see OFBIZ-3363 for more info. A contribution of Antwebsystems employee Chatree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892712 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 07:31:58 +00:00
Marco Risaliti a5d07a3295 With this changes now we could remove default country to avoid double rows in drop-down.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892512 13f79535-47bb-0310-9956-ffa450edef68
2009-12-19 22:17:41 +00:00
Marco Risaliti b82a0ad594 Add the possibility to sort the associated states to a country in a different way than by geoId (OFBIZ-3370)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892470 13f79535-47bb-0310-9956-ffa450edef68
2009-12-19 13:50:39 +00:00
Scott Gray 4d2a839b1d Added a common resquest mapping for sending json responses based on the request attributes, requests requiring json responses should chain the request. Removes the need for a json event wrapper for every type of event. Based on idea put forward by Bob Morley OFBIZ-2778
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892218 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:54:20 +00:00
Marco Risaliti 684b54c979 When gets the associated state list to the regions show also the county (OFBIZ-3359)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891925 13f79535-47bb-0310-9956-ffa450edef68
2009-12-17 21:35:30 +00:00