Commit Graph
18502 Commits
Author SHA1 Message Date
Erwan de Ferrieres 4700a26f48 Reverting an unwanted change done at rev 1307836. Thanks Vikas for noticing on the dev mailing-list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309331 13f79535-47bb-0310-9956-ffa450edef68
2012-04-04 11:17:32 +00:00
Jacques Le Roux 4df267b015 Remove Copyright mention when useless and change to 2012 when needed or automatize if possible
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1309009 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 16:06:29 +00:00
Jacques Le Roux f802ba7c83 Keeps consistent with other themes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308926 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 14:20:05 +00:00
Sascha Rodekamp ceb27828a7 Changed the FileReader to a BufferedReader during script loading. The file reader throws an exception when the file path contains spaces (which are encoded). The result was that scripts aren't loaded and pages only showed an error message. Working with an InputStream solves this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308896 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 13:36:03 +00:00
Jacopo Cappellato 7e8d52d3bf Fixed path to svninfo.ftl file that was not working after the switch to freemarker 2.3.19
Thanks to Scott for the solution.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308817 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 11:09:54 +00:00
Jacques Le Roux 6f6f4d8ec9 Reverts r1308078 http://svn.apache.org/viewvc?view=revision&revision=1308078 due to some pressure on this commit http://markmail.org/message/zqguh6ttd2a5jqcb
And even if I'm quite sure it's not harmful, I don't see either a great need for it


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308792 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 09:48:28 +00:00
Jacques Le Roux 6f0bac1487 A patch from Deepak Dixit for "Auto-completer request should be async." https://issues.apache.org/jira/browse/OFBIZ-4780
Currently auto-completer uses sync call to prepare auto-completer source (result list).
Due to this user can't perform any other operation on lookup field and user should have to wait until response came.
In general, synchronous requests should never be used because they tend to block the execution of anything else on the page (or even the entire browser UI), which isn't good.
Also ajax-loader image not display on google chrome browser due to sync request.

Need to use async request for auto-completer.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308751 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 08:41:06 +00:00
Jacopo Cappellato ec02e2ac4f this is a workaround to fix errors when loading included templates with a relative path after the migration to Freemarker 2.3.19; I am still investigating the root cause.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308734 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 07:46:12 +00:00
Hans Bakker 7bbd542575 startup script improvements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308650 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 02:03:57 +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
Jacopo Cappellato 762a5618c6 New target to show the status of the OFBiz instance; thanks to Francis ANDRE for the patch (OFBIZ-4775)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308377 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 15:04:17 +00:00
Jacopo Cappellato 058f404d74 OFBIZ-4771
Renamed some ant tasks for consistency, improved descriptions, removed 2 redundant tasks

Summary of changes:

improved descriptions (unified style)
renamed: run --> start
renamed: run-batch --> start-batch
renamed: run-debug --> start-debug
renamed: run-pos --> start-pos
renamed: run-install --> load-demo
renamed: run-install-multitenant --> load-demo-multitenant
renamed: run-install-* targets -> load* (for example: run-install-seed --> load-seed etc...)
enhanced load-file (was run-install-file) to accept an optional 'delegator' argument and removed run-install-file-in-delegator and run-tenant-install-file
renamed: run-create-tenant --> create-tenant
renamed: run-single-test --> run-test
renamed: run-single-test-suite --> run-test-suite
the main old tasks (mentioned in documentation etc.) have been kept and now inform the user of the new syntax
updated README and main screen of Webtools with the new task name



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308370 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:53:11 +00:00
Jacopo Cappellato 778d995343 Updated name of new Freemarker jar file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308368 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:50:36 +00:00
Jacopo Cappellato 66e063b126 Removed the last webslinger jar that I missed in my previous commits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308359 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:09:22 +00:00
Jacopo Cappellato 6567fca33d Upgrade to latest stable release of Freemarker: 2.3.19
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308358 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 14:08:17 +00:00
Jacopo Cappellato 7bc6142674 Set log levels for Freemarker (to disable all log messages under warning) to resolve performance issue in newer releases of freemarker.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308355 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 13:58:14 +00:00
Jacques Le Roux da5cc09fd3 A patch from Markus M. May "Allows build.xml in hot-deploy folder to build components in a specific order" https://issues.apache.org/jira/browse/OFBIZ-4736
In the current build.xml in the ofbiz-Home-folder, the build target is executed for each subdirectory (framework, application, specialpurpose) with the fileset:

<filelist dir="." files="specialpurpose/build.xml"/>

Only for the hot-deploy folder the fileset is quite different:

<fileset dir="${basedir}/hot-deploy" casesensitive="no">
<exclude name="disabled/**"/>
<include name="*/build.xml"/>
</fileset>

This is calling the build.xml directly in the hot-deploy components, which is an error, if you do have several dependent components in there, which needs to get build in the right order. I propose to use the following filelist:

<filelist dir="." files="hot-deploy/build.xml"/>

jleroux: a check is done, if no build.xml file is present in hot-deploy dir, then the build.xml files - if present - in hot-deploy sub-dirs will be used. So the previous, simpler, behaviour is kept as long as you don't need to build hot-deploy components in a specific order.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308336 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 13:09:37 +00:00
Erwan de Ferrieres c5c75df222 Seems using ./ant for running install and tests is not detecting the class for cobertura. Testing if the jar is present is making it right. Resolves OFBIZ-4757
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308301 13f79535-47bb-0310-9956-ffa450edef68
2012-04-02 11:16:10 +00:00
Jacques Le Roux 8baaab2b1a A patch from Francis ANDRE "Add missing ConverterLoader to framework/entity/src/META-INF/services/org.ofbiz.base.conversion.ConverterLoader for running FOBiz in debug under Eclipse https://issues.apache.org/jira/browse/OFBIZ-4777
In order to run OFBiz in debug mode under Eclipse with hot class reloading, one needs to add the following Converters to the services framework/entity/src/META-INF/services/org.ofbiz.base.conversion.ConverterLoader because they are added at build time by the build.xml of the framework. Thus, they are missing when running OFBiz as an full Eclipse debug launcher.

org.ofbiz.base.conversion.BooleanConverters
org.ofbiz.base.conversion.CollectionConverters
org.ofbiz.base.conversion.DateTimeConverters
org.ofbiz.base.conversion.JSONConverters
org.ofbiz.base.conversion.MiscConverters
org.ofbiz.base.conversion.NetConverters
org.ofbiz.base.conversion.NumberConverters

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308085 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 11:39:34 +00:00
Jacques Le Roux afde12093c A patch from Francis ANDRE "Avoid exiting ofbiz when running in debug mode,i.e with -DDEBUG=true set on theJVM arguments" https://issues.apache.org/jira/browse/OFBIZ-4776
This is a patch for allowing to run OFBiz in debug mode,i.e with -DDEBUG=true on the JVM arguments, and avoid to exit from the process when a Error or a StartupException occurs.

jleroux: replaced tabs by 4 spaces

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1308078 13f79535-47bb-0310-9956-ffa450edef68
2012-04-01 11:27: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
Jacques Le Roux 7dc9f081cd A patch from Pierre Smits "Include meta tag 'generator' in the ecommerce theme" https://issues.apache.org/jira/browse/OFBIZ-4544
Includes the tag <meta name="generator" content="Apache OFBiz - eCommerce"> into the eCommerce theme. 
This will help improve visibility when searching for implemented webshops.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307848 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 16:57:36 +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
Jacques Le Roux bf2feb63bd A patch from Nicolas Malin "add possibility to sort field at the end form on widget form" https://issues.apache.org/jira/browse/OFBIZ-4518
When you use sort-field, you reorder only the form begin or you need list all file if you want reordered the end form.

Example

    <form>
    <field name="a"/>
    <field name="b"/>
    <field name="c"/>
    <field name="d"/>
    </form>

If you want put c at the end :

    <form>
    <field name="a"/>
    <field name="b"/>
    <field name="c"/>
    <field name="d"/>
    <sort-order>
    <sort-field name="a"/>
    <sort-field name="b"/>
    <sort-field name="d"/>
    <sort-field name="c"/>
    </sort-order>
    </form>

with the patch

    <form>
    <field name="a"/>
    <field name="b"/>
    <field name="c"/>
    <field name="d"/>
    <sort-order>
    <last-field name="c"/>
    </sort-order>
    </form>

It's really useful for inherited forms when you adding new fields, you just use last-field for instance for submit button.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307784 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 12:10:07 +00:00
Adrian Crum e1a03aee17 Small code cleanup in ObjectType.simpleTypeConvert, added support for null target type (returns original object). Updated unit tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307551 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 17:48:32 +00:00
Hans Bakker 2874803c43 property to either show currency decimals when zero or not
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307303 13f79535-47bb-0310-9956-ffa450edef68
2012-03-30 08:29:28 +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
Erwan de Ferrieres bba2048fd4 A patch from Pierre Smits - Assigning a resource to a task is not reflected in the resource's tasks view - OFBIZ-3638
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1307092 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 20:18:16 +00:00
Jacopo Cappellato c95ac05435 Attempt to update and simplify the quick start notes in the README file: your feedback is appreciated (please also help to improve the English). Thanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306778 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 10:04:39 +00:00
Jacopo Cappellato b0981990ee Added new ant task to start OFBiz as a process in the background: "run-batch".
Moved the "stop" task a few lines below to group together all the tasks dealing with the startup of OFBiz.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306777 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 10:02:35 +00:00
Jacopo Cappellato 6fb5a9a309 Upgrade to Groovy 1.8.6 (from Groovy 1.7.7).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306773 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 09:57:55 +00:00
Jacopo Cappellato 8c99e6b35e Upgrade to Groovy 1.8.6 (from Groovy 1.7.7).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306769 13f79535-47bb-0310-9956-ffa450edef68
2012-03-29 09:43:54 +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 6bfac82574 this should not have been committed at rev 1306575, reverting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306577 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 20:33:00 +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
Erwan de Ferrieres 5d3e068922 ApplicationSessionCookieConfig.getSessionCookieName() is now deprecated and replaced by SessionConfig.getSessionCookieName()
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1306175 13f79535-47bb-0310-9956-ffa450edef68
2012-03-28 05:19:29 +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
Joseph Eckard f838604e0b ignore jetty session store directory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305885 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:18:47 +00:00
Joseph Eckard addff35b64 enable HashSessionManager persistent sessions, by default they will be written to runtime/jetty/sessions (can be configured via a property)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305884 13f79535-47bb-0310-9956-ffa450edef68
2012-03-27 16:18:42 +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
Joseph Eckard b4b7b1b0a5 fixed typos in example jetty config, NIO connectors did not have the correct types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1305605 13f79535-47bb-0310-9956-ffa450edef68
2012-03-26 21:18:34 +00:00