Commit Graph
2339 Commits
Author SHA1 Message Date
Jacques Le Roux 8796a24839 A patch from Gil Portenseigne "Error while creating a facilityContactMech if no purpose is given" (https://issues.apache.org/jira/browse/OFBIZ-3928) - OFBIZ-3928
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
2010-09-09 15:04:14 +00:00
Adam Heath 556d795264 On view enitity ProductFeatureAndAppl, and relations to the 2 member
entities, ProductFeature and ProductFeatureAppl.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995200 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:07 +00:00
Adam Heath a372e64111 Add a missing attribute, recurringAmount, for service
updateFeatureToProductApplication.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@995199 13f79535-47bb-0310-9956-ffa450edef68
2010-09-08 19:03:02 +00:00
Ashish Vijaywargiya e0480153e0 Showing OrderId adjacent to Bin #.
Thanks Anurag for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992297 13f79535-47bb-0310-9956-ffa450edef68
2010-09-03 13:50:23 +00:00
Erwan de Ferrieres 772a10ec45 Since 990004, facilityContactMechPurposeType is now mandatory, adding a drop-down so the user can select one
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992247 13f79535-47bb-0310-9956-ffa450edef68
2010-09-03 09:54:12 +00:00
Ashish Vijaywargiya e90d83e6af Applied patch from jira issue OFBIZ-3909 - Bug in showing online estimate rate on UPS services.
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
2010-08-30 09:55:02 +00:00
Scott Gray 1a86d7d4b6 Replace null check with a null safe expression (even though productTypeId should never be null anyway)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990334 13f79535-47bb-0310-9956-ffa450edef68
2010-08-28 09:47:07 +00:00
Ashish Vijaywargiya aaec638d26 Applied patch from jira issue OFBIZ-3904 - Bug in calling methods defined in Usps Services.
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
2010-08-27 12:35:29 +00:00
David E. Jones ee0e437a3c Fixed issue with createFacilityContactMech where purpose was not being created, it is created now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@990004 13f79535-47bb-0310-9956-ffa450edef68
2010-08-27 03:06:24 +00:00
Hans Bakker 552ab71a62 make the access of productData and content use the cache. This wil result in a 20% speed increase of the ecommerce homepage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988893 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 08:45:08 +00:00
Jacques Le Roux d166ab0737 Oops, a unwanted log had slipped in in r988728
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988828 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25 07:06:33 +00:00
Jacques Le Roux 5fd0165b7a No functional changes only better description of getAssociatedProductsList service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988728 13f79535-47bb-0310-9956-ffa450edef68
2010-08-24 21:03:53 +00:00
Jacques Le Roux a8aab34859 Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@988541 13f79535-47bb-0310-9956-ffa450edef68
2010-08-24 13:55:33 +00:00
Jacques Le Roux cb4beec116 A patch from Rene Scheibe "Facility Manager: "Default Weight Unit" is not shown correctly" https://issues.apache.org/jira/browse/OFBIZ-3893) - OFBIZ-3893
page: Looking at https://127.0.0.1:8443/facility/control/UpdateFacility

The "Default Weight Unit" is not shown correctly. It is always showing "none".

This was not fixed correctly in rev 931700. Just added selected="selected". 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@987841 13f79535-47bb-0310-9956-ffa450edef68
2010-08-22 00:27:09 +00:00
Hans Bakker 2d9b75a30f this is a revert of r731487 to downgrade freemarker from 2.3.15 to 2.3.10 because of speed problems. In order to make the older version work we changed the following:
- 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
2010-08-18 06:33:12 +00:00
Jacques Le Roux 89dec0b0bf Completes r985856 "Cost calculation is still broken and no shipping costs are returned"
I forgot to commit the change in ShipmentCostEstimate: add productStoreShipMethId to ShipmentCostEstimate when created by createShipmentEstimate. Else new created ShipmentCostEstimate would be inconsistent, see http://markmail.org/message/2f6ryfm6fvvrvx74  

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985902 13f79535-47bb-0310-9956-ffa450edef68
2010-08-16 12:41:00 +00:00
Jacques Le Roux 8b9e3c3f66 Uses a better syntax w/out any fixed naming conventions. Thanks to Andrew. More to come soon in Example component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@985745 13f79535-47bb-0310-9956-ffa450edef68
2010-08-15 20:25:01 +00:00
Jacques Le Roux 33d9854c6f Fix "Attach Features to Category from Products" (https://issues.apache.org/jira/browse/OFBIZ-3890) - OFBIZ-3890 reported by Michał Cukierman
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
2010-08-15 17:52:25 +00:00
Adam Heath b273b52dad Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Jacopo Cappellato 067defc63c Fix for typo; unfortunately the typo is also in the id that is a primary key: this should be fixed as well but will require some work to make it backward compatible and I don't have time to do it now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982596 13f79535-47bb-0310-9956-ffa450edef68
2010-08-05 13:05:19 +00:00
Adam Heath 2da92e401f Some more trailing newline changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981698 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 22:32:54 +00:00
Scott Gray 327081a1bb Replaced all usage of CommonWorkers.hasParentType(...) with the EntityTypeUtil version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981447 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 10:48:06 +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
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
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
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
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
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 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 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
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 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
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
Erwan de Ferrieres d6e8686248 OFBIZ-3858 - a patch from David Cervera - Spanish title of Catalog app is wrong
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@963610 13f79535-47bb-0310-9956-ffa450edef68
2010-07-13 07:05:40 +00:00
Jacques Le Roux 57afcb230f Change IN and OUT parameters names in order to generalize (I have generalized the Ajax calling and will use it later in Example with a couple of country/states dependent dropdowns)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@960863 13f79535-47bb-0310-9956-ffa450edef68
2010-07-06 10:37:21 +00:00
Jacques Le Roux 392e1fc698 Better French Labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@960009 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 14:42:06 +00:00
Jacques Le Roux 060a0ad59b Internationalize the category/products and country/state dependent dropdown "worker" services (when the list is empty we need to show something to explain)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959984 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 13:45:55 +00:00
Jacques Le Roux 205b0e5eeb New getAssociatedProductsList service to help dynamically populate a products dropdown given a product category id from a change in another dropdown, possibly sorted on sequenceNum.
As they are no such examples in OFBiz yet, I will later create an example of use in Widget form Examples which of course needs some javascript (it's for now based on the same than for country/states)

At term I would like to generalize and have it embedded in OFBiz widgets, will see even later...
I will also consider Anil's proposition: https://code.google.com/p/ue-protoui/source/browse/trunk/src/DependentSelect.js


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@959951 13f79535-47bb-0310-9956-ffa450edef68
2010-07-02 11:12:36 +00:00
Erwan de Ferrieres 8fb16d24b1 Better French uiLabel
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@958846 13f79535-47bb-0310-9956-ffa450edef68
2010-06-29 06:58:53 +00:00
Jacques Le Roux cc9fcc46c5 Better place for showOutOfStockProducts and storeCreditAccountEnumId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956664 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 18:40:10 +00:00
Scott Gray 5db5584476 Add a freemarker template directive (same as a transform) for making catalog urls i.e. same as StringUtil.wrapString(Static["org.ofbiz.product.category.CatalogUrlServlet"].makeCatalogUrl(...))
Can be accessed using <@ofbizCatalogUrl [productId=] [currentCategoryId=] [previousCategoryId=] />

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956484 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 08:04:53 +00:00
Scott Gray 0f29438bfd Make sure the shipment id is transferred to the WeightPackageSession
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956438 13f79535-47bb-0310-9956-ffa450edef68
2010-06-21 01:59:30 +00:00
Jacques Le Roux 48a872868d Fix a bug 1st reported by Sharan on user ML and wrongly fixed by me (I mixed the lines :/), then reported again by BJ at "keywordsearchbox looks up category instead of product" (https://issues.apache.org/jira/browse/OFBIZ-3827) - OFBIZ-3827
I fixed it by hand, BJ's patch was not enough

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@956340 13f79535-47bb-0310-9956-ffa450edef68
2010-06-20 09:41:59 +00:00
Jacques Le Roux 9152e67d2e A patch from Eric De Maulde "Product Categories page without category name" (https://issues.apache.org/jira/browse/OFBIZ-3826) - OFBIZ-3826
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
2010-06-19 09:10:33 +00:00
Ashish Vijaywargiya 3b45817f98 Inventory reservations should not be done with defective inventory in system.
Patch from Pranay Pandey(Thanks!)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@955340 13f79535-47bb-0310-9956-ffa450edef68
2010-06-16 18:30:24 +00:00
Jacques Le Roux 9ef845d0ad A patch from BJ Freeman "complete web.xml for error reporting" (https://issues.apache.org/jira/browse/OFBIZ-3820) - OFBIZ-3820
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
2010-06-12 20:47:08 +00:00
Jacques Le Roux 173a5bf11e A patch from Sascha Rodekamp "Add a Uom Description to the Product Feature Table" (https://issues.apache.org/jira/browse/OFBIZ-3818) - OFBIZ-3818
URL : https://localhost:8443/catalog/control/EditProductFeatures

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@953964 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 09:02:36 +00:00
Vikas Mayur be2c5e7231 Consider returned items for a non-serialized inventory as good merchandise.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@953580 13f79535-47bb-0310-9956-ffa450edef68
2010-06-11 06:53:12 +00:00