Commit Graph
114 Commits
Author SHA1 Message Date
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
Vikas Mayur 8c743482f9 Added a new status (Returned) on non-serialized inventory item. This way we can run a inventory report (Facility > Reports) in the system to get the count of the inventory items
received through order returns.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@952140 13f79535-47bb-0310-9956-ffa450edef68
2010-06-07 08:41:20 +00:00
Erwan de Ferrieres 4661365954 Facilities management for a productStore, made using the new set of portals/portlets.
It can be reached at this address :
https://localhost:8443/catalog/control/ProductStoreFacilities?productStoreId=90100

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942544 13f79535-47bb-0310-9956-ffa450edef68
2010-05-09 14:59:11 +00:00
Ashish Vijaywargiya a9d1a7a8f5 Applied patch from jira issue: OFBIZ-3633 - Minimum order quantity.
It will work as follows;
We will set the special type price as 'MINIMUM_ORDER_PRICE' for a Product in ProductPrice entity. On the basis of it we will get the minimum order quantity of the product on the basis of this price and sale price.
Will get the minimum order quantity for product by division. For example we have selling price of product P1 is $10.00 and its MINIMUM_ORDER_PRICE is $100.00 then minimum order quantity for the product will be --> 100/10 ==> 10.

To achieve the above ;
write a getMinimumOrderQuantity() method in ShoppingCart.java which takes the itemBasePrice and productId as in parameter, and call it where we add, update the cart items and change the quantity to minmumOrderQuantity if it is less then minimum.

Thanks Deepak & Rishi for the contribution and others for providing valuable comments / suggestions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936228 13f79535-47bb-0310-9956-ffa450edef68
2010-04-21 09:36:40 +00:00
Ashish Vijaywargiya 0bc5e998e5 Applied patch from jira issue - OFBIZ-3697 - setLastInventoryCount Service should not be called hourly due to performance issues.
1) In case of large database, when there are so many products into the system, then setLastInventoryCount service consider all the products and update records for them.

2) So it will keep server busy for some time in every one hour. This logic should be improved.

3) Also setLastInventoryCount service does not take facilityId into the account while setting last inventory count in ProductFacility entity. 

Thanks Divesh & Pranay for the contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933906 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 10:14:28 +00:00
Adam Heath ab933d2be7 Add new features, the ability to have promo conditions and actions both
as services, so that installations can do whatever kind of checking and
promotions that they want, without any modifications to ofbiz.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932108 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:56 +00:00
Ashish Vijaywargiya 62a47436c3 Applied patch from jira issue - OFBIZ-3487 - Improvement on CMS component.
1.  Adding sequenceNum field on ContentPurpose entity.
2. Adding ContentAssocAndContentPurpose view entity.
3. Fixed NPE issue on WebSiteCMSContent.ftl file.
4. Created ContentPurposeType data for "LANDING_PAGE_IMAGE".

Thanks Amit & Vivek for the contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911774 13f79535-47bb-0310-9956-ffa450edef68
2010-02-19 10:27:10 +00:00
Ashish Vijaywargiya 71edf5dbeb Moving data to appropriate location. I don't know much about the original thought of keeping this data in ProductTypeData.xml file and considering that it was done mistakenly.
If anyone else think otherwise then please comment.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910174 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 08:15:24 +00:00
Ashish Vijaywargiya e7ab963b60 Applied patch from jira issue: OFBIZ-3422.
Adding few more product content type records.

Thanks Vivek for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902354 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 06:57:34 +00:00
Scott Gray f0a037c99e Partial revert of r830846 (I left the demo data file name change) and full revert of r887580 (was committed to avoid problems with the prior commit) as discussed in OFBIZ-3307.
The problem is that while ProductTypeAttr can be used in this way to constrain the ProductAttribute.attrName values, it shouldn't be enforced unless the data model is also enforcing this constraint.
The other problem is that I think there is no way currently to add ProductTypeAttr records, which means that with these changes no new attributes can be created via the UI.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900992 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 22:41:08 +00:00
Ashish Vijaywargiya 732d571872 Applied patch from jira issue OFBIZ-3399 - Web Analytics Initial Support.
Adding Web Analytics support in OFBiz. Following things are covered in this work:

– Added two new entities WebAnalyticsConfig & WebAnalyticsType & provided GUI support for it (CRUD Operations).
– Added demo data for Google Analytics & Bing Analytics.
– Associated WebAnalyticsConfig entity with Content entity so that the client data can be content driven.
– Initially we have added this feature in catalog component keeping things in mind that in general we do configuration settings regarding to ecommerce in this component. If anyone have better place for this then we can move this timely at more appropriate place. But for now we found this place good for initial contribution.

This is collaborative effort from me & Pranay(Thanks!).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897796 13f79535-47bb-0310-9956-ffa450edef68
2010-01-11 08:40:47 +00:00
Erwan de Ferrieres 594a20df32 Corrected XML end of lines (/>/> to />)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897480 13f79535-47bb-0310-9956-ffa450edef68
2010-01-09 16:04:03 +00:00
Jacopo Cappellato 1a43d2451d Enhancements to the support of actual costs in production runs:
* in form definitions: converted (not working) bsh calls into groovy calls
* added cost information to screens showing inventory consumed and produced by production runs
* added support for actual overhead costs of production runs


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893541 13f79535-47bb-0310-9956-ffa450edef68
2009-12-23 15:07:06 +00:00
Ashish Vijaywargiya 9cd3ca09e2 Moved seed data to right place - Patch from Divesh (Thanks!)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@891129 13f79535-47bb-0310-9956-ffa450edef68
2009-12-16 06:02:11 +00:00
Jacques Le Roux d374503606 Just to avoid breaking Product Attributes screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887580 13f79535-47bb-0310-9956-ffa450edef68
2009-12-05 19:38:03 +00:00
Hans Bakker 14c0c8dcda help general index cleanedup, started first features list but need 'orderedlist' docbook tag for that
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834369 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10 07:17:17 +00:00
Ashish Vijaywargiya 0664a96244 Applied improved patch from jira issue OFBIZ-3165 - Add additional screen for gift card certificate buying functionality by CSR in Order manager application in add item page.
Following points are covered in this patch:

1) Removed hard-coded product ids for Gift certificates products from GiftCertificates.ftl and added new category type called "GIFT_CARD_CATEGORY" and related demo data, also added groovy script for fetching logic to address this issue.

2) Also handled hard-coded surveyId in AddGiftCertificates.groovy

3) Added user friendly messages if required data is not available .

4) Added missing license header in GiftCertificates.ftl

Thanks Divesh for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@834042 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09 12:53:03 +00:00
Ashish Vijaywargiya fc45518ad6 Applied patch from jira issue OFBIZ-3149 - Improve Category association in eBay.
Recently multi store support for Ebay has been implemented. For the multi store support we need ProductStore > ProdCatalog > ProductCategory association. For EBay we define specific categories of type EBAY_CATEGORY, only those products that are associated to an EBay category are eligible for eBay export. In the current implementation there is no proper prodCatalogCategoryTypeId which can be used to associate eBay category to ProdCatalog, one way to associate an eBay category to ProdCatalog is as a PCCT_BROWSE_ROOT category, thus we have two categories associated to the catalog as BROWSE_ROOT, the other one is for online store. Technically, this is wrong, a catalog should be associated with only one browse root category. Due to this wrong association the eBay category doesn't show up on the advance search page of EBAY webapp, instead online store's browse root category is shown which may also contain those products which are not meant to be exported to eBay. So this category associations need to be fixed, and following is how this can be resolved:

   1. Create a new ProdCatalogCatagoryType PCCT_EBAY_ROOT
   2. Define a worker method in CatalogWorker to derive the top level (root) ebay category
   3. Now in the advance search form, first look for top level ebay category associated to the selected catalog
          * If found, derive sub category list of the top level ebay category and display, else display the top level ebay category itself
          * If not found, derive the top level browse root category (PCCT_BROWSE_ROOT) and display the sub category list for it

Thanks Parimal Gain for the contribution.
Special thanks to Mridul Pathak (Zone of Sharp Mind :-)) for discussing implementation plans & providing wonderful notes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832713 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 12:05:09 +00:00
Jacopo Cappellato 1032ba881d Added the ability to define cost component formulae to a product: new ProductCostComponentCalc entity and crud services, and ui to manage the information. Modified standard costing calculation service to use the new entity. Also implemented a custom method (cost formula) that adds a percentage based adjustment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831099 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 21:38:18 +00:00
Hans Bakker ea76601e6c added example product demo attributes and adapted the form
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@830846 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29 05:15:10 +00:00
Jacques Le Roux d24631d047 Podomètre in French is not Podometer in English, thanks to Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829710 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 07:14:11 +00:00
Jacques Le Roux 1fbb17a252 One more meter type (actually more because I left some empty lines there, though podometer might be useful too, who knowns ?)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829676 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 23:02:30 +00:00
Jacques Le Roux 6a81be6e9e Some more meter types
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@829674 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 22:47:23 +00:00
Jacopo Cappellato a38f8202aa New util method to find out if a "type" record has a given ancestor.
The method is also used to clean the code related to the two existing marketing package types (that have now in common the same parent).
This will make the framework more flexible because you will be able to create a new product subtype and the system will treat them as its parent type; then you can add custom code to treat it in the special way (if needed). This pattern can be extended in other areas of the system, starting from product types (right now it is also applied to marketing packages).
Thanks to Mridul Pathak for the patch - OFBIZ-2902

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813413 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 13:02:33 +00:00
Hans Bakker 073906c5df help system now using the mapKey in ContentAssoc so its size is now limited to 100 instead of 20. Suggestion made by Scott: thanks
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813311 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 08:49:30 +00:00
Adam Heath eab8daf4c0 Typo fixing the typo fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813156 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 22:56:18 +00:00
Adam Heath 57c002d86b Typoe fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813150 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09 22:45:27 +00:00
Adam Heath b1c68ae44e Add Library of Congress identification.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812303 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 23:20:20 +00:00
Scott Gray 87e0d19d96 Add EAN GoodIdentificationType
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812047 13f79535-47bb-0310-9956-ffa450edef68
2009-09-07 09:14:57 +00:00
Hans Bakker d6a65c264a helpscreens placeholders now converted to the docbook V5 format inclusive of namespace support, updated the apache ofbiz document to explain how to create helpscreens, created an ftl template to display the docbook help screens, docbook pdf generation now almost working: it can create a local pdf file, but streaming to the browser does not work..if anybody interested to help me check modelscreenwidget.java line 1206
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@811787 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06 09:39:20 +00:00
Ashish Vijaywargiya 6dc9720309 Another update on Google Base.
Following things are done in this commit:

1) Added new entity GoogleBaseConfig and reading the values from there. Also kept option to read configuration values from property file.
2) Added new ProductCategoryType record for Google Base - Thanks Jacopo for your suggestion on this.
3) Prepared data for demo purpose in DemoProduct.xml file - This demo contains the association of few product with Google Category.
4) Also prepared demo data for GoogleBaseConfig entity.
5) Provided option to have default value of webSiteUrl on the GoogleExport form - for this refer productsExportToGoogle.groovy file.

Thanks Pranay for discussing few things with me in b/w this phase of development.

In next Commit I will provide UI for GoogleBaseConfig entity(CRUD operations) so it will be easy for end user to update values in this entity easily instead of moving to webtools and do the needful.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809552 13f79535-47bb-0310-9956-ffa450edef68
2009-08-31 12:06:14 +00:00
Hans Bakker d34ad96ab6 extended the help template, moved help xmlfiles for easy editing into the file system, started to look at docbook for ofbiz documents
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@805338 13f79535-47bb-0310-9956-ffa450edef68
2009-08-18 10:01:45 +00:00
Hans Bakker c76137a4c7 several adjustments to the help system, now using contentId to select and use underscore in contentId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804881 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 07:15:41 +00:00
Hans Bakker 966b32d5af The 'new' help system
A new help system is implemented which is compatible with the current system which uses the ofboz.docs.org site to store the data.

The new help system has a number of advantages over the old version:
1. complete multilanguage without config xml files, using the locale.
2. Having an automatic multilevel index of all help pages using the ContentAssoc entity
3. Using the content manager for retrieval.
4. Template driven, aware of the different visual themes.
5. A first step towards the storage of OFBiz documentation within the OFBiz system itself.
6. Easy update via normal svn in seed data.
7. Aware of portlets on (userdefined) Portal pages.
8. Create awareness of the capabilities of the content component

The reason of this development was the requirement to provide user documents to the customers of Antwebsystems Co.Ltd

Some of the possible extensions could be:
1. a search function
2. print all or specific help files in PDF format
3. make the help screens work better with the business theme
4. Explain how help can be extended
5. In the help screen be able to send a message to the local support team
6. But most of all, create more help content!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804546 13f79535-47bb-0310-9956-ffa450edef68
2009-08-16 02:04:17 +00:00
Marco Risaliti 5a85c095a6 New Shipment Gateway Config entities (OFBIZ-2589)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796874 13f79535-47bb-0310-9956-ffa450edef68
2009-07-22 20:39:35 +00:00
Vikas Mayur a97c5ec812 Added the ability to cancel received items against a purchase order if the user make a mistake and receive something incorrectly.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@796272 13f79535-47bb-0310-9956-ffa450edef68
2009-07-21 12:28:52 +00:00
Ashish Vijaywargiya 170aa8100a Adding more data to test role based permissions on catalog manager.
For testing this you can login by user ltdadmin & ltdadmin1.
And then can update records in consecutive tabs present in the EditProduct screen.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@795728 13f79535-47bb-0310-9956-ffa450edef68
2009-07-20 09:40:55 +00:00
Ashish Vijaywargiya 91acdad4ca Applied patch from jira issue OFBIZ-2664 (Portlet to show best selling products of the day).
Thanks Chirag for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@788976 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27 14:15:15 +00:00
Vikas Mayur 79fae570d0 Adding back the feature to show/hide out of stock products on site. This new implementation is configurable through a new field showOutOfStockProducts (by default equal to Y) on
ProductStore. A new field lastInventoryCount on ProductFacility is also added and it is a mirror of availableToPromiseTotal of a product at a certain point of time and is 
being updated every hour by a schedule service to reflect the current value of inventory count in the system.
If showOutOfStockProducts is equals to N and for a particular product lastInventoryCount is <= zero, then this particular product will not be shown on the site. If the inventory
count becomes +ve again then the product will be again available on the site, in minimum one hour time but could possibly take long depending on the inventory levels.

Patch from Ratnesh Upadhyay, part of OFBIZ-2480 (https://issues.apache.org/jira/browse/OFBIZ-2480).



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778451 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25 16:37:23 +00:00
Vikas Mayur b6ccc85943 Reverted my last commit in rev. 777498. This need to support configuration so that this feature can be turned on/off.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777651 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 18:36:19 +00:00
Vikas Mayur f1ef43b20e Now onwards out of stock items will not show up in the ecommerce site. Added a scheduled service that will run hourly and will update the new attribute isOutOfStock on
Product entity to Y/N where Y means item is out of stock and N means item is in stock. This process will be efficient in a way that the database interaction to check
whether item is out of stock will not take place everytime products are loaded on the ecommerce site.
Applied my patch (initially contributed by Amit Sharma, I have done some improvements over this patch), part of OFBIZ-2480 (https://issues.apache.org/jira/browse/OFBIZ-2480)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777498 13f79535-47bb-0310-9956-ffa450edef68
2009-05-22 12:42:12 +00:00
Vikas Mayur 1b5f2d0c8c Fix: Enumeration Data missing for Inventory Item Detail Reason. Applied patch from Mridul Pathak, part of OFBIZ-2501 (https://issues.apache.org/jira/browse/OFBIZ-2501)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@777012 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 08:43:19 +00:00
Vikas Mayur b4a42dc537 Now Shipping Total adjustments can be applied using promotion. User can specify percentage discount on a specific shipping method.
Applied patch from Arun Patidar, part of OFBIZ-2488 (https://issues.apache.org/jira/browse/OFBIZ-2488)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@776581 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20 06:25:23 +00:00
David E. Jones 8a7c6083b9 Added some comments about feature application types to clear up some confusion and misconceptions
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763515 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 04:41:23 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux a5042291f7 1st part of an effort to remove trailing spaces
" +/> => "/>
Should be easier when dealing with Eclipse S/R regexp

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762648 13f79535-47bb-0310-9956-ffa450edef68
2009-04-07 08:27:15 +00:00
Hans Bakker cbbe02a1d8 many cleanups, moved customer requests back into order, fixed the edit contactmech in portal as reported in the mailing list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@761186 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 06:57:09 +00:00
Bruno Busco 32e70a513b Added seed data to have a WebSite entity for every webapp.
The new WebSite entity sets a relation to a VisualThemeSet so that when selecting a VisualTheme, only applicable VisualThemes are available in the VisualTheme Lookup screen.
More work is needed (i.e. move the OrderEntry WebSite from demo to seed) but I need to be sure this is a good direction.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@744518 13f79535-47bb-0310-9956-ffa450edef68
2009-02-14 16:42:49 +00:00
Jacques Le Roux 7467abd9da A modified patch from Eric De Maulde "Product image auto scale" '(https://issues.apache.org/jira/browse/OFBIZ-2128) - OFBIZ-2128
I simply added a dynamic directories creation. This patch works but maybe we could use and API for better result (see Jira issue)




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739042 13f79535-47bb-0310-9956-ffa450edef68
2009-01-29 22:06:32 +00:00