Commit Graph
171 Commits
Author SHA1 Message Date
Adam Heath ceb3fad391 Add a releaseDate to a product, mostly informational, intended to mean
when the product was first assembled for purchase, or, for books, when
it was published initially.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936100 13f79535-47bb-0310-9956-ffa450edef68
2010-04-20 22:46:14 +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
Jacques Le Roux 46a74ff4c5 Remove trailing white spaces (I got a conflict)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930223 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 10:05:39 +00:00
Jacques Le Roux 1a033fa8f7 Deprecate Facility.squareFootage the right way.
The right associated script is
update FACILITY set facility_size=square_footage;
update FACILITY set facility_size_uom_id='AREA_ft2';




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929912 13f79535-47bb-0310-9956-ffa450edef68
2010-04-01 10:41:14 +00:00
Jacques Le Roux 95650636ff Better name for relation between FacilitySizeUomId.facilitySizeUomId and Uom.uomId, suggested by Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929646 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 18:08:02 +00:00
Jacques Le Roux 45593dad74 Completes r929503: adds a relation between facility and uom for facilitySizeUomId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929593 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 15:45:07 +00:00
Jacques Le Roux 87d20bca8e * Change Facility.squareFootage to Facility.facilitySize and change its type from numeric (no decimals) to fixed-point
* Add Facility.facilitySizeUomId
* related changes in UI

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929503 13f79535-47bb-0310-9956-ffa450edef68
2010-03-31 12:37:39 +00:00
Jacques Le Roux c9a4532a71 Revert r929171. As discussed on dev ML, Facility.squareFootage will be replaced by 2 fields (one for UomId)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929255 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 20:22:57 +00:00
Jacques Le Roux 0d833edbab Allows Facility.squareFootage to support decimals.
I will post the following SQL line to help migrate

alter table facility alter square_footage type dec(18,6);

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929171 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 15:31:14 +00:00
Jacopo Cappellato 407f17ad61 Reimplemented "inventory valuation" report (that was buggy) and its csv and pdf variants: the new version is now based on the new LIFO and FIFO costing methods and it is more efficient because it is based on a single view-entity (that I have extended in order to be used in the new report).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@927014 13f79535-47bb-0310-9956-ffa450edef68
2010-03-24 11:28:17 +00:00
Jacopo Cappellato c2d9606772 Implemented first version of FIFO and LIFO costing methods in accounting:
1) added new fields to InventoryItem/InventoryItemDetail to keep track of the units posted to INVENTORY accounts according to the costing methods in use
2)  added new field to AcctgTransEntry to keep track of the inventoryItemId that was used to get the cost according to LIFO/FIFO etc... strategy
3) modified existing demo data to support the new costing strategies; enabled by default the LIFO strategy for Company accounting (it was average cost before)
4) code that implements LIFO/FIFO for inventory receipts and sales shipments


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926090 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 14:02:46 +00:00
Ashish Vijaywargiya b040749318 Applied patch from OFBIZ-3533 - Associate Image functionality with ProductPromo using content driven.
Associate Image functionality with ProductPromo using content driven.

Following work will be covered: -

   1. Add new entity "ProductPromoContent" entity having composite primary key:
         1. productPromoId
         2. contentId
         3. productPromoContentTypeId
         4. fromDate
   2. CRUD services for ProductPromoContent Entity.
   3. Create wrapper ProductPromoContentWrapper
   4. Add content tab at catalog -> promo
   5. List and edit form for associating images to specific productPromoId.
   6. Implement service addImageForProductPromo.

Thanks Amit for the contribution.
Special thanks to Scott for his valuable comments.

PS: Scott regarding to you point # 2 in the last comment, I think it would be fine if we keep association as it in the current patch. Because all the ContentType already exists in the ProductContentType entity. In general we can associate Image, PDF or word document with any promotion so reusing existing entity will be fine IMO. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922506 13f79535-47bb-0310-9956-ffa450edef68
2010-03-13 08:46:57 +00:00
Bilgin Ismet Ibryam fae378c0ce Added possibility to upload files and assign contents to facilities.
Created FacilityContent entity and FacilityContentDetail view entity. Added screen and forms in facility application for content upload and deletion.

Added a generic event in content application for file upload and content association which is used in facility application. The same event can be used in content creation processes in order manager and project manager applications in order to remove duplicating code.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908602 13f79535-47bb-0310-9956-ffa450edef68
2010-02-10 17:52:50 +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
Scott Gray ce66eb6c06 Added fixedAssetId and relationship to CostComponent to so that it is easier to determine the source of the cost (in most cases the source is CostComponentCalc but for fixed asset usage it is FixedAssetStdCost)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@881732 13f79535-47bb-0310-9956-ffa450edef68
2009-11-18 11:43:11 +00:00
Jacques Le Roux 5ccbd28e3b Revert r833113 & r833116 and remove title="Geo Point" as initially suggested by Erwan at https://issues.apache.org/jira/browse/OFBIZ-3153
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833264 13f79535-47bb-0310-9956-ffa450edef68
2009-11-06 00:44:33 +00:00
Jacques Le Roux 70a8c703ac Change the type of relation for Facilty to GeoPoint from one to many. Because of the elevation field in GeoPoint.
From Adrian's remarks at https://issues.apache.org/jira/browse/OFBIZ-3153 - OFBIZ-3153

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833136 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 19:22:16 +00:00
Jacques Le Roux 72331c96ad Change "Geo Point" title to "Point"
Change the type of relation for Postal Address to GeoPoint from one to many. Because of the elevation field in GeoPoint. A bit scifi for now, but maybe useful one day...)
Thanks to a discussion with Erwan "Relation title not needed on Facility entity" at https://issues.apache.org/jira/browse/OFBIZ-3153 - OFBIZ-3153

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833113 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 18:26:27 +00:00
Scott Gray 42aa98280d Adding memberComments as an alias for ProductCategoryMember.comments in the ProductAndCategoryMember view entity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@831834 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 09:30:29 +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
Adam Heath e566ce1960 Add sequenceNum to ProductCategoryRollupAndChild view.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@830009 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26 22:38:07 +00:00
Scott Gray 98f73bee0a Added three new fields to the Product entity:
productWeight
productDiameter
diameterUomId

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@817605 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22 11:33:11 +00:00
Scott Gray f79b26dd69 increased the ProductFeature.idCode field from id to id-long (20 -> 60) as discussed on the dev list to better handle external identifiers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813726 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11 08:55:17 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +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
David E. Jones 237d5f5104 Small reorganization of ProductStore fields to move the deprecated ones to the bottom
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@794912 13f79535-47bb-0310-9956-ffa450edef68
2009-07-16 23:57:41 +00:00
Jacopo Cappellato 33c0f74f50 Implemented simple "sell-through" (http://en.wikipedia.org/wiki/Sell-through) information to the find inventory screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@782662 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08 15:06:41 +00:00
Vikas Mayur 0f1ffdf0f8 Added a field to ProductStore to specify Store Credit Account type (FIN_ACCOUNT or BILLING_ACCOUNT) for refund return. For Demo ProductStore it is default to Financial Account.
The work flow is based on following steps:
1) If for a return both finAccountId and billingAccountId are supplied, then preference goes to the setting on Product Store. A warning message is shown so that the 
   user know which account is used.
2) If a finAcccountId is supplied then first billing account with -ve amount are searched and if it is found then amount is credit to the billing account else it goes to 
   financial account.
3) If a billingAccountId is supplied then it is used to credit the refund amount.
4) If none of them is supplied, then preference again goes to the setting on Product Store.

Patch applied from Mridul Pathak, part of OFBIZ-2502 (https://issues.apache.org/jira/browse/OFBIZ-2502)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@781804 13f79535-47bb-0310-9956-ffa450edef68
2009-06-04 17:32:02 +00:00
Scott Gray 3689bf9f9b Moved the view entities ProductConfigAndProduct and ProductFacilityAndPostalAddress to packages more appropriate than org.ofbiz.product.product
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@780543 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01 01:14:41 +00:00
Vikas Mayur eebe04dc4c Done following fixes:
1) Moved the view entity to correct package.
2) Changed the view name as well as the entities used. Now the records are coming as expected.
3) Corresponding changes in the findOrdersToPickMove service.

The main purpose of this view entity is to find out the location (areaId) of the inventory item that is reserved/picked for a particular order. For example if an order has two 
order items X and Y and items X is picked from area A and item Y is picked from area B of a facility (where obviously area A and B are associated to a pick/primary location), 
then while grouping this order in facility > picking screen by "Group by Warehouse Area" method will show order under Multi Locations group. To clarify more on this grouping
method, grouping is done only with the areaId and the locationSeqId (which is a combination of areaId, aisleId, sectionId, levelId, positionId).  


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@779041 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27 07:44:17 +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 444cf326ff Functionality for "Weight Packages Only" option on pack order screen.
Applied patch from Akash Jain, part of OFBIZ-2407 (https://issues.apache.org/jira/browse/OFBIZ-2407).
Note: Excluding only framework/common/config/CommonUiLabels.xml, as this need framework rights.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@775128 13f79535-47bb-0310-9956-ffa450edef68
2009-05-15 13:20:56 +00:00
Jacques Le Roux 058d6aed57 A patch from Ashish Vijaywargiya "Change Copyright Year" (https://issues.apache.org/jira/browse/OFBIZ-2346) - OFBIZ-2346
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Marco Risaliti a657adadf8 Move payment.properties to PaymentGatewayConfig entities (OFBIZ-2269)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763782 13f79535-47bb-0310-9956-ffa450edef68
2009-04-09 19:45:31 +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
Vikas Mayur 43266bac3e For creating picklist, grouping can be done with two new methods Warehouse Area and Number of order items
in addition to the default option i.e. Shipping Method.

Patch from Arun Patidar, reviewed by Pranay Pandey and applied from OFBIZ-2223 (https://issues.apache.org/jira/browse/OFBIZ-2223)




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@762399 13f79535-47bb-0310-9956-ffa450edef68
2009-04-06 15:49:17 +00:00
Hans Bakker 05288d52f1 remove the cause of some warning messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748419 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 07:51:41 +00:00
Hans Bakker 0cf21cecd4 added a find option to product configuration items, and added the possibility to see in which product a configuration item is used.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@747025 13f79535-47bb-0310-9956-ffa450edef68
2009-02-23 14:11:53 +00:00
Bruno Busco efadece8f4 VisualThemes for Ecommerce (https://issues.apache.org/jira/browse/OFBIZ-2106)
The ProductStore entity has now a visualThemeId that selects the VisualTheme to be used in the Ecommerce.
This can be set in the EditProductStore form selecting a theme between the themes that belong to the "ECOMMERCE" VisualThemeSet

To the following ProductStore fields has been applied the entity deprecation pattern:
<field name="oldStyleSheet" col-name="STYLE_SHEET" type="url"></field>
<field name="oldHeaderLogo" col-name="HEADER_LOGO" type="url"></field>
<field name="oldHeaderMiddleBackground" col-name="HEADER_MIDDLE_BACKGROUND" type="url"></field>
<field name="oldHeaderRightBackground" col-name="HEADER_RIGHT_BACKGROUND" type="url"></field>

The first part of the ecommerce header.ftl (the part defining the <HEAD> tag content) has been moved to a new headerHead.ftl file. This allows all the theme defined header.ftl to include this common part that is mainly inclusion of theme defined resources and should never change (code reuse).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746544 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 17:18:25 +00:00
Hans Bakker 0402a21952 added supplier lookup, modified the sales/purchase input start screen to look better....should actually be converted to forms...do that next time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@746158 13f79535-47bb-0310-9956-ffa450edef68
2009-02-20 05:59:03 +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
Jacques Le Roux 0500d6baef A 1st commit for "Add geolocation to data model" (https://issues.apache.org/jira/browse/OFBIZ-1923) OFBIZ-1923
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735404 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 09:09:32 +00:00
David E. Jones 3f2afba154 Changed to honor the WebSite.allowProductStoreChange field again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@735396 13f79535-47bb-0310-9956-ffa450edef68
2009-01-18 07:44:05 +00:00
David E. Jones dced19567a Moved product store specific field from framework/webapp component to product component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@734897 13f79535-47bb-0310-9956-ffa450edef68
2009-01-16 02:57:19 +00:00
David E. Jones 874f02e9da Manual merge of typecheckcleanup200810 branch as of rev 731346 in that branch, resolved all conflicts; with this BigDecimal is not the native type for many entity fields and is used for many calculations; some work is still needed in certain areas of the project but this covers the most critical ones; thanks especially to Scott for his work on this
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731851 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 07:13:36 +00:00
Hans Bakker c928d9261d improove the bomlist find screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731841 13f79535-47bb-0310-9956-ffa450edef68
2009-01-06 06:07:46 +00:00
David E. Jones 3269e7602c Various cleanups dones while reviewing functionality including formatting, refactoring, better descriptions and consistent defaults. In general no functionality change, though did add a default of N for the require return receive setting on the ProductStore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@725022 13f79535-47bb-0310-9956-ffa450edef68
2008-12-10 07:31:39 +00:00