Gil: When creating a new facility contactMech, a facilityContactMechPurpose is automatically created, even if there is no contactMechPurposeTypeId is given in parameters.
The problem is that it's impossible to create a FacilityContactMechPurpose without purpose, and contactMechPurposeTypeId is optional in service parameters.
JLR: so it makes sense if we don't want to change the service definition (ie make contactMechPurposeTypeId mandatory).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995453 13f79535-47bb-0310-9956-ffa450edef68
UPS Online shipping rates are showing wrong values when product weight having different weightUomId. It doesn't support UOM Conversion as it is working in USPS services.
So fixing this bug, following work is done.
1) Calling generic methods "getPackageSplit", "getProductItemInfo" & "calcPackageWeight" methods from ShipmentWorker.java
2) Removed duplicate methods from UpsServices.java
Thanks Amit for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990751 13f79535-47bb-0310-9956-ffa450edef68
Calling "getPackageSplit" & "calcPackageWeight" methods from outside of the class causes compilation error, as their access modifiers are private.
So fixing this bug, following points are covered in this commit.
1) Moving "getPackageSplit" and "calcPackageWeight" from UspsServices.java to ShipmentWorker.java. They are not Usps third party related methods.
2) Changing access modifiers of these methods to public.
Thanks Vivek for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990127 13f79535-47bb-0310-9956-ffa450edef68
- create new OfbizCatalogUrlTransform class
- delete CatalogUrlDirective.java class
- set ofbizCatalogUrl transform to OfbizCatalogUrlTransform class
- In htmlFormMacroLibrary.ftl file, change floor directive to floor method of Math class
- change freemarker version in .classpath and LICENSE files
We are in discussion with the freemarker developers to solve this problem there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@986577 13f79535-47bb-0310-9956-ffa450edef68
Steps:
1) Go to Catalog Manager
3) Select Large Gizmos cateogry
4) Go to the features second lvl tab
5) Click "Attach Features to Category from Products" option
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985718 13f79535-47bb-0310-9956-ffa450edef68
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
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
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
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
Into the form UpdateProductCategoryMemeber (Product Categories page) categoryId appears twice if category description is empty, but category name is more significant and always full.
Also the form name has an error.
Into UpdateProductCategoryMemeber form, this patch changes category description to category name. It corrects the form name to UpdateProductCategoryMember
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956201 13f79535-47bb-0310-9956-ffa450edef68
BJ: when there is an error, the control servlet looks for an error path in <param-name>allowedPaths</param-name>
it does not find one throwing an exception which buries the orginal error.
instead of changing the code it is just easier to add the /error: path.
then the real error gets reported correctly.
JLR: This will maybe help to better understand some errors on demo servers, and can't hurt
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@954135 13f79535-47bb-0310-9956-ffa450edef68