Commit Graph
15352 Commits
Author SHA1 Message Date
Scott Gray ef89152bec Reformat to separate ftl and html indenting , no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978955 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 01:39:15 +00:00
Scott Gray f4b8fe52fc Converted all render* methods to use executeMacro(Writer, String, Map) instead of executeMacro(Writer, String). Removes over 100 lines of StringWriter usage, makes the code easier to read and also fixes the bug that Jacques committed a workaround for in r978893
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978954 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 00:36:13 +00:00
Scott Gray a704a811ee Changed the parameter map from <String, String> to <String, Object> since some macros use booleans and integers instead of strings. Changed the method to only wrap strings in double quotes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978953 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 00:36:02 +00:00
Scott Gray a26146535f Add a new method for constructing a freemarker macro call string, should simplify the code needed to generate a macro call and centralize the double quote encoding of parameter values. I'll be working to switch all of the render* methods over to using this today.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978944 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 23:15:45 +00:00
Adrian Crum 4356626ffb A patch from matthieu bollot (https://issues.apache.org/jira/browse/OFBIZ-3859) - Manufacturing: Incorrect data types in entity definition and groovy script.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978939 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 21:20:49 +00:00
Jacques Le Roux f6035141d9 Fix a very specific issue reported by Matthieu Bollot on Neogia dev ML.
Matthieu thought it could be related to double quotes in labels when actually it was the conjunction of double quotes *AND* the word locale that Freemarker tried to interpret

the error was 

2010-07-24 18:20:26,718 (http-0.0.0.0-28443-2) [MacroScreenRenderer.java:101:ERROR]
---- exception report ----------------------------------------------------------
Error rendering screen macro [<@renderScreenletBegin id="" title="Mise Ó jour des champs descriptifs de la fiche article (Ó supprimer si vous voulez utiliser "alternate locale", autrement dit traduire)" colla
psible=false saveCollapsed=true collapsibleAreaId="" expandToolTip="" collapseToolTip="" fullUrlString="" padded=true menuString="" showMore=true collapsed=false javaScriptEnabled=false />] thru ftl
Exception: freemarker.core.ParseException
Message: Encountered "locale" at line 1, column 140 in Sat Jul 24 18:20:26 CEST 2010.
Was expecting:
    "=" ...

---- stack trace ---------------------------------------------------------------
freemarker.core.ParseException: Encountered "locale" at line 1, column 140 in Sat Jul 24 18:20:26 CEST 2010.
Was expecting:
    "=" ...


I checked, there were not any other cases

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978893 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 16:29:30 +00:00
Jacques Le Roux bfc14b25c9 Revert r966203 as asked by Adam on dev ML (I was also not for this change so 2x -1)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978863 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 12:42:40 +00:00
Ashish Vijaywargiya 27e6d4fbc3 Applied patch from jira issue - OFBIZ-3872.
Error in Screen Ap -> Invoices -> Commission Run.

The following error screen appears when we click on find button with

partyId - Demo Agent (DemoCustAgent)
fromDate - (set current date)

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://accounting/widget/ap/InvoiceScreens.xml#CommissionRun: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection (java.lang.String cannot be cast to java.util.Collection)

Thanks Amit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978806 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 06:13:06 +00:00
Jacques Le Roux 2884cf4da8 A patch from David Cervera "Create Product in Category" doesn't allow non USD prices (https://issues.apache.org/jira/browse/OFBIZ-3865) - OFBIZ-3865
The screen "EditProductStorePaySetup" in "OFBIZ_HOME/applications/product/widget/catalog/StoreScreens.xml" (that is, section "PaymentsIn the page "Create Product in Category" (for example: https://demo-trunk.ofbiz.apache.org/catalog/control/createProductInCategoryStart?productCategoryId=100), the process that creates new product always creates it with USD price. It doesn't allow non USD prices.

It can be solved adding an input to set the currency in the form (because the service is ready to support it)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967155 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 16:18:14 +00:00
Jacques Le Roux 725f40b9d0 A patch from Sascha Rodekamp "Method to get a child element attribute from a specific XML file" (https://issues.apache.org/jira/browse/OFBIZ-3874) - OFBIZ-3874
Just a good method to return a named attribute of a named child node or a default if null. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967151 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 16:06:41 +00:00
Jacques Le Roux 6ab823c94c A patch from Sascha Rodekamp "NPE in Financial Account Services" (https://issues.apache.org/jira/browse/OFBIZ-3873) - OFBIZ-3873
NPE in the financial account services when creating a financial account for a store. The error occurred when the accountValidDays is empty. The thru date can not be set.
This patch covers this issue by checking if accountValidDays is empty or not.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967098 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 13:59:16 +00:00
Erwan de Ferrieres c39c604127 Manage compositeTypes in multi handler
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967012 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 09:27:59 +00:00
Adam Heath 827c205352 Fix file leak problem in KeyStore, the stream must be closed by the
caller(which also generally means doing it in a finally clause).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966785 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 18:30:51 +00:00
Joseph Eckard d265053740 base font url will always be null
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966719 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 16:01:22 +00:00
Joseph Eckard ea05e29713 replacing calls to deprecated FopFactory methods getFontBaseURL / setFontBaseURL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966718 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 16:01:14 +00:00
Joseph Eckard 18f557fe42 reverting previous change, BaseURL is not the same as FontBaseURL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966717 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 16:01:06 +00:00
Erwan de Ferrieres 124f19b1b4 Finally adding Apache FOP 1.0, barcode generation is now working
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966662 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 14:02:39 +00:00
Jacques Le Roux 235ddb74f6 Better Product French UI labels.
I began by stumping upon the default page labels. The wording I certainly done some years ago without checking all changes in the UI was not really clear. So I wanted to remove the Id (référence in French) part but as we use really an Id there (and not a name or description or what not) I preferred to keep the Id concept. Then, while at it, I checked all the file to be consistent. I have not the courage to do it in all OFBiz :/

So the idea is to keep the Id words (référence, Réf. or sometimes [Réf.]) to make clear that in those places in OFBiz OOTB we use an Id. This because in some custom application we could prefer to use a name (for instance for lookup, or text field, display, etc.) and when you begin to mix the two things begin to be really less clear...

In one word, when you remove a "référence" word, please be careful... (sometimes it makes sense because nothing else could be there, for instance for UOM which are abbrev and may be considered name even if actually they are Id, but it's really subjective and I'd prefer to make the difference real clear: an Id is not a name and a name may be used too)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966525 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 07:27:35 +00:00
Erwan de Ferrieres 9a78318c28 Reverting FOP1.0 integration as it is breaking the barcode generation. Still some work to be done
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966392 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 19:56:00 +00:00
Adam Heath 69074cfa54 Don't check for purchase allow membership if skipProductChecks is true.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966380 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 19:41:02 +00:00
Erwan de Ferrieres d5020c9d5e Adding the new FOP 1.0 to OFBiz
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966285 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 15:44:16 +00:00
Erwan de Ferrieres 7589e40be7 Correction for r966123, parametersMapAcsr could be null
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966282 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 15:38:33 +00:00
Erwan de Ferrieres 606cf7fc0f if a time-dropdown has no value then 00:00 is displayed instead of the current time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966203 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 12:14:08 +00:00
Erwan de Ferrieres 4800e33723 Adding event and action attributes to date-time field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966202 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 12:10:08 +00:00
David E. Jones 9900ae2f76 Fixed NPE, improved handling
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966130 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 08:01:14 +00:00
David E. Jones 5835ddaa77 Added support for parameters-map for menu widget link elements
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966123 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 07:30:37 +00:00
Erwan de Ferrieres 8ff9e56edd Missing French uiLabel for FormFieldTitle_requirePasswordChange
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965985 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:18:37 +00:00
Jacques Le Roux bb8607b93a Improves "New Shipment Estimate" experience: add Expand/Collapse All buttons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965923 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:33:47 +00:00
Adam Heath b198a80d4e Fix typo s/espacing/escaping/
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965919 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:32 +00:00
Adam Heath ac2299c50e Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Adam Heath 92d004a866 Fix open file leak; the InputSource is only processed when a freemarker
template is given, so only attempt to create one if a template has been
specified.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965916 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:17 +00:00
Adam Heath 0a5b117b8f Fix NPE in thrown exception reporting an invalid orderHeader when
orderHeader is null in the constructor.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965915 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:11 +00:00
Adam Heath 695cc497f2 Fix coverage reports; the coverage for base was reporting 100%, which is
not correct.  With real numbers on base, it shows a lot of missing
lines.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965914 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:06 +00:00
Adrian Crum 9c11c2c261 Added Boolean converter tests - copied from Apache Commons Convert.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965843 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:39:05 +00:00
Adrian Crum b8ad20ea06 Import cleanups and compiler warning fixes - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965841 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 13:36:13 +00:00
Scott Gray dd4ed8e8d6 Applied patch from Jeremy Olmstead OFBIZ-3840, production run tasks were not displaying their Start button after a production run was confirmed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965805 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 11:17:13 +00:00
Hans Bakker 84294c5e48 corrected conflict in PartyRelationshipAndDetail on status Id introduced oin previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965711 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 01:51:59 +00:00
Scott Gray 4e0a332c82 Correct some jar names that cause a warning on startup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965689 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 00:23:04 +00:00
Erwan de Ferrieres 727a2df89c Sales orders were created with OOTB settings with the form WSCO1 instead of WSCO10000. Thanks Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965638 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 21:19:21 +00:00
Jacques Le Roux a3c548bca9 A patch from David Cervera "Security tag at screen "Payments of Product Store" with wrong syntax" (https://issues.apache.org/jira/browse/OFBIZ-3864) - OFBIZ-3864
The screen "EditProductStorePaySetup" in "OFBIZ_HOME/applications/product/widget/catalog/StoreScreens.xml" (that is, section "Payments" of one Product Store, at Catalog app) has a security tag with wrong syntax.

It causes that users with right permissions cannot add new payments to the store.

You can test it here: https://demo-trunk.ofbiz.apache.org:8443/catalog/control/EditProductStorePaySetup?productStoreId=9000 logged as "flexadmin". The form at the bottom (titled "Edit Product Store Payment Setup") doesn't appear.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965470 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 13:26:33 +00:00
Scott Gray 40d54f842e Run olap SECAs asynchronously so that if they encounter any problems then the entire process that they're attached to won't get rolled back.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965332 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 00:13:06 +00:00
Hans Bakker 6ba2a55553 add statuisId field to view, be able to ignoe disabled parties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965225 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 13:17:02 +00:00
Scott Gray 114c8ae6a3 Setting the request-map/security element's direct-request attribute to false was only working if a default-request was present. Reported by Wai in OFBIZ-3861 and fixed using a variation of the patch that he supplied.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965163 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 05:55:35 +00:00
David E. Jones 339da2c8f1 Added support for passing extra server-side parameters in a Map from the screen definition, ie screen actions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965154 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 02:24:21 +00:00
Hans Bakker 27d86e7361 replace ftl with form because no submit button present on the link form, also added an explanation of this function
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965018 13f79535-47bb-0310-9956-ffa450edef68
2010-07-17 05:46:04 +00:00
Scott Gray f6fb19e39c Update eclipse .classpath file
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964574 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 20:41:41 +00:00
Erwan de Ferrieres c538130326 A patch from Bob Morley - OFBIZ-3857 - Fix bad field reference projectIdId should be projectId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964558 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 20:06:49 +00:00
David E. Jones d20742c504 Changed Visit.clientIpAddress from id (20 chars) to short-varchar (60 chars) to handle IPv6 addresses
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964553 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 19:46:40 +00:00
Hans Bakker 0a21d46376 correction on previous commit, this one and previous contributed by chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964431 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 13:57:36 +00:00
Hans Bakker 63ef224344 upgrade birt to 2.6 and at the same time upgrade the itext library (OFBIZ-3407) which does work with this birt version
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@964371 13f79535-47bb-0310-9956-ffa450edef68
2010-07-15 10:33:57 +00:00