Scott Gray
e3d73f77ff
Must have decided to finish the comments after adding the method to git's index, committing the rest of the comments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981009 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 05:48:36 +00:00
Scott Gray
ce96f755ac
Add a range condition to EntityDateFilterCondition, useful for finding entities applicable to a given date range.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981008 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 05:31:17 +00:00
Adrian Crum
86c11b0eaf
Documentation improvements in Assert.java and TimeDuration.java. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980982 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 22:13:48 +00:00
Jacques Le Roux
a9af1cf319
Fix an old bug reported by James McGill on dev ML: <<Is it a bug, where it uses "paremeters" instead of "parameters">>
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980935 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 20:10:06 +00:00
Scott Gray
640ebde077
Fix for OFBIZ-3786 reported by Sascha Rodekamp, first-visit controller events were not being executed. Fix based on a simplified version of the patch provided by Sascha.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980747 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 12:18:12 +00:00
Scott Gray
787799659a
Fix problem rendering content from the screen widget, thanks Hans for the report
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980687 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 08:57:40 +00:00
Adrian Crum
ba90a21a73
Log element in mini-language now prints source file line number.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980657 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 06:26:35 +00:00
Jacopo Cappellato
8c0e270f51
Added ability to create new shipment groups to an existing order. This also fixes a bug mentioned in one of the comments to "OFBIZ-1809" (duplicated ship groups were assigned to newly created items when they were not assigned to the first ship group). Misc code formatting fixes that I did while wading thru the code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980655 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 05:37:28 +00:00
Adrian Crum
46d6ef4c83
Added two new annotations, and did some code cleanups. No functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980645 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:40:16 +00:00
Adam Heath
38db0d5d82
Set the umask.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980644 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:19 +00:00
Adam Heath
629877dbe2
Generify JdbcValueHandler.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980643 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:15 +00:00
Adam Heath
a9ac2afbdb
In checkRhs, add support for the rhs being an EntityFieldValue(this is a
...
partial fix, rhs can actually be *any* EntityConditionValue, so this
logic really needs to be revisited).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980642 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:09 +00:00
Adam Heath
9822ff4f05
Fix checkRhs logic when comparing the value type to the field type.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980641 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 03:28:04 +00:00
Joseph Eckard
c061159aae
Index product keywords when a GoodIdentification is created or updated
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980607 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 23:34:07 +00:00
Joseph Eckard
d6f9b1507d
Only pass the Product value to indexProductKeywords for a create operation - the value passed for a store operation is not guaranteed to contain all fields used for indexing. If index.delete.on_index=true then this scenario could cause a partial re-index / loss of keywords.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980606 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 23:33:58 +00:00
Erwan de Ferrieres
65f756720a
defaulting to estimated times for a workeffort when editing instead of server time
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980534 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 18:32:46 +00:00
David E. Jones
800a85a38e
Fixed two bugs with autocomplete functionality: init script in selectall.js was not doing the search/replace properly for ampersands, in the FindAutocompleteOptions.groovy script the andExprs were not really anded together so split into the or and main and lists and assembled the conditions properly, which will fix the conditionFields and the andCondition fields
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980348 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 07:53:06 +00:00
Scott Gray
12807597e2
Temporarly revert my recent changes to renderLink(), a list of maps is being written directly to the macro call and I need to figure out how to support that. Problem reported by Jacques in the dev list.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980238 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 21:34:03 +00:00
Erwan de Ferrieres
3b3a0c404b
using ajaxSubmitFormUpdateAreas, if the return error message was not in a list format, an error was displayed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980038 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 12:45:04 +00:00
Jacques Le Roux
ade416c654
Fix a label
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980033 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 12:07:52 +00:00
Jacques Le Roux
4c6376259c
Fix r979204 on Adam's remarks in dev ML
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@979430 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 20:24:28 +00:00
Jacques Le Roux
a81e990353
A patch from Deyan Tsvetanov "Service SaveLabelsToXmlFile omits labels for new locales that did not exist prior to calling service" ( https://issues.apache.org/jira/browse/OFBIZ-3869 ) - OFBIZ-3869
...
1) Use LabelManagerFactory and try to add labels for a locale that does not exist in the resource bundles - for example en_US.
2) Invoke the service SaveLabelsToXmlFile
Expected behavior: the resource bundle should contain the newly added locales
Experienced behavior: the resource bundle does not contain the labels for the newly added locales.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@979204 13f79535-47bb-0310-9956-ffa450edef68
2010-07-26 09:01:56 +00:00
Jacques Le Roux
1c0d7111b1
Makes fadeBackground="true" as it's by default in xsd and allow to pass disabled(true or false)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@979104 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 19:57:16 +00:00
Scott Gray
e75b1d17b0
Fix bug reported by Pierre Smits in OFBIZ-3823, the PartyRoleAndContactMechDetail required at least one ContactMech before a Party would show up in the view. Changed to make the ContactMech stuff optional.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978996 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 07:34:49 +00:00
Scott Gray
394a7eac26
Use request-redirect after quick creating a contact
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978975 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 04:04:55 +00:00
Scott Gray
72cd484464
Fix a bug in the delete promotion category form, it was trying to use an unknown variable as part of the form name (probably a copy/paste mistake). The problem was much easier to spot once the file had been reformatted.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978958 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 01:48:33 +00:00
Adam Heath
36eb0d9762
Add an ant version check, to make certain at least 1.7.1 is being used.
...
This file gets included by all build.xml, so the version check will
happen whenever ant gets called.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978957 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 01:47:34 +00:00
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