Adam Heath
66b76faf4e
The database check attempted to only check each helper once; however,
...
the Set used to track whether a helper had been checked was *inside* the
loop, so this optimization never actually did what was intended.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981123 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 03:08:07 +00:00
Scott Gray
ad81f1d1f1
Null check was incorrectly being used to determine if the directory existed
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981104 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 23:47:55 +00:00
Adrian Crum
de50263021
Built out the new service parameter description feature. Descriptions defined in service interfaces are not being copied to the implementations - so that needs to be fixed.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981067 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 15:16:46 +00:00
Jacques Le Roux
04d803790b
A patch from Rene Scheibe "Click Expand or Colaspe All does not work as expected" ( https://issues.apache.org/jira/browse/OFBIZ-3744 ) - OFBIZ-3744
...
Reported by Sam Hamilton:
If you are on say this page - https://localhost:8443/catalog/control/EditProduct?productId=WG-9943
clicking on Expand All it will expand all the ones not expanded and then collapse the ones that were already open
clicking on Collapse All it will collapse all the ones open and open all the ones that were collapsed.
fixed issue
* css.style.visible cannot be true/false as used so in collapseAll()
* now using the $() container and calling visible() which returns true/false
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981051 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 13:07:13 +00:00
Jacopo Cappellato
2a7d97b45d
Always close the stream of the xml file after the parsing is done: this fixes a bug where the file was not deleted when it was successfully imported at the second or third attempt.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981028 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 10:13:49 +00:00
Ashish Vijaywargiya
cf89bc0197
When we pass fractional package weight to UPS like (0.5) then it gives error. This is because in UpsServices.java file, package weight has been changed to boxWeight.intValue() so it converts 0.5 to 0. Now if we pass only boxWeight big decimal number, code runs perfectly fine on confirming shipment.
...
Searched out in ups shipping document and found that we should pass this fractional weight to ups to its next full weight. For example 0.5 will be sent as 1.0 and 1.2 will be sent as 2.0 etc. Here is the link: http://www.ups.com/content/us/en/resources/prepare/oversize.html
search for this text "Determine the Actual Weight" in this link.
Having come to know this fact I converted boxWeight.intValue() code into boxWeight.setScale(0, boxWeight.ROUND_CEILING) which solves this purpose which is given in above mentioned link.
Patch from Vivek Mishra(Thanks!)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981025 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 09:44:07 +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
Scott Gray
e00b1cf382
Add a description element for service attributes, should make documenting some services a little easier. Still need to display it in webtools somewhere.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981018 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:26:42 +00:00
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