Commit Graph
218 Commits
Author SHA1 Message Date
Jacopo Cappellato 99b7f462f2 Refactoring of Visit/Visitor/ServerHit* (and related) entities in order to be able to maintain them in a database separate from the main transactional database:
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
2014-12-22 09:19:33 +00:00
Jacopo Cappellato cc8f10a6c7 OFBIZ-5793 Enhanced logic to run product subscription expiry service only once when the subscription expires:
a) augment the OFBiz data model with the new field: Subscription.expirationCompletedDate
b) modify the algorithm of runServiceUponSubscriptionExpiry to also check whether the expiry service has already run, by checking that expirationCompletedDate is null.
if expirationCompletedDate is null (and the other conditions are satisfied), run the service in SubscriptionResource.serviceNameOnExpiry and update the date/time into expirationCompletedDate
if expirationCompletedDate is not null, skip the expired subscription and move to the next

Thanks to Ivan Cauchi for the patch (slightly modified by me).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1637535 13f79535-47bb-0310-9956-ffa450edef68
2014-11-08 09:38:09 +00:00
Jacques Le Roux b844d4e9bb A (slightly modified) patch from Yvan Cauchy for "Trigger for service to run upon subscription expiry" https://issues.apache.org/jira/browse/OFBIZ-5333
We are also proposing to add the following fields:

    ProductSubscriptionResource.gracePeriodOnExpiry
    ProductSubscriptionResource.gracePeriodOnExpiryUomId
    Subscription.gracePeriodOnExpiry
    Subscription.gracePeriodOnExpiryUomId

This will allow the runServiceOnSubscriptionExpiry to trigger the service in SubscriptionResource.serviceNameOnExpiry only after

nowTimeStamp >= Subscription.thruDate + Subscription.gracePeriodOnExpiry.

This provides flexibility in managing the triggering of the deprovisioning service, similar to the flexibility in automatic subscription extensions enabled by Subscription.canclAutmExtTime for runSubscriptionAutoReorders. 

jleroux: 
I replaced tabs by spaces
Will commit the change in serviceResult.ftl apart
Slightly reformatted SubscriptionServices.runServiceOnSubscriptionExpiry()
Slightly reformatted and added comment in services_subscription.xml for the 2 new services


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597235 13f79535-47bb-0310-9956-ffa450edef68
2014-05-24 04:37:16 +00:00
Jacques Le Roux 1bfbaebc3b Resolves but not yet closes "Because of the elevation field in GeoPoint we need a many relationship for (at least) PostalAddress and Facility" at https://issues.apache.org/jira/browse/OFBIZ-3198
Simply add a geo point in FacilityLocation for now. Keeps the Jira issue open but resolved as incomplete, we will see later...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1555886 13f79535-47bb-0310-9956-ffa450edef68
2014-01-06 16:19:33 +00:00
Paul Foxworthy 570e4c8c4a Revert r1449615, which was only a partial solution. See https://issues.apache.org/jira/browse/OFBIZ-5163 for a discussion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1468865 13f79535-47bb-0310-9956-ffa450edef68
2013-04-17 12:26:51 +00:00
Hans Bakker 52326232ef currently tax is calculated before promotion, added am option in the productstore to be able to set the tax calculation after promotion. This in order to remain backward compatible. Also added a junit test for this. Contribution from Tom, employee from Antwebsystems
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1449615 13f79535-47bb-0310-9956-ffa450edef68
2013-02-25 08:25:07 +00:00
Hans Bakker bb74cd18fa improve the groupbuying function by properly return sales numbers when cancelling an order.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1368822 13f79535-47bb-0310-9956-ffa450edef68
2012-08-03 07:52:28 +00:00
Jacques Le Roux e0aeb84002 At Jacopo's demand removes a link to MarkMail. I could have added a link to mail-archives.apache.org/mod_mbox/ofbiz-user but it's very minor anyway
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1357235 13f79535-47bb-0310-9956-ffa450edef68
2012-07-04 13:09:37 +00:00
Jacques Le Roux 6889ac074a No functional changes, only a small comment to better understand the meaning of those fields (excerpt from http://markmail.org/message/tvyghkw7rgq5bmqi there are more things interesting in this thread, other solutions to other problems, etc.)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356882 13f79535-47bb-0310-9956-ffa450edef68
2012-07-03 19:34:44 +00:00
Adam Heath 895478438e FIX: Fix some entity relations that had spaces in their titles.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1327247 13f79535-47bb-0310-9956-ffa450edef68
2012-04-17 19:57:05 +00:00
Adrian Crum 9234ac5cf5 Added the ContactMech entity to the FacilityAndContactMech view entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230855 13f79535-47bb-0310-9956-ffa450edef68
2012-01-13 01:34:34 +00:00
Erwan de Ferrieres ee8f662e44 Using entity labels on ProductFeature, first batch on text colors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1228709 13f79535-47bb-0310-9956-ffa450edef68
2012-01-07 19:52:26 +00:00
Hans Bakker 0b2921ed6d - Fix 2 log warnings when checking the entity definitions.
- Using iterate for each keyword type forms.
- Create a screen for display when the tags is created.
- Create junit test for product tag.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1224689 13f79535-47bb-0310-9956-ffa450edef68
2011-12-26 07:42:42 +00:00
Hans Bakker 91d206a71d add the possibility of adding tags to products next to having keywords to products, can also optionally approve/reject via a status field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1222544 13f79535-47bb-0310-9956-ffa450edef68
2011-12-23 03:49:11 +00:00
Hans Bakker c1495cd416 fix entity warning in log
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1205277 13f79535-47bb-0310-9956-ffa450edef68
2011-11-23 03:45:04 +00:00
Hans Bakker 41c1baaed2 update groupbying feature
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204894 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 10:09:31 +00:00
Hans Bakker 758b8c69d9 first version of the implementation of group orders
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204805 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 04:10:55 +00:00
Hans Bakker 7245203a92 simplify webanalytics entity and moved from product to content, this entity has nomally only a single record so a conversion program is not provided. After upgrade, save the content of the entitye web_analytics_config and drop it in webtools. Then restart and re-enter the saved record
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1204455 13f79535-47bb-0310-9956-ffa450edef68
2011-11-21 11:34:32 +00:00
Jacques Le Roux d2f50da17e A modified patch from Pierre TALLOTTE "Managing of lot number and tracking" https://issues.apache.org/jira/browse/OFBIZ-4172
This patch adds features which allows a, user to manage products by lot id :
    when s/he buys a product, s/he can specify the lot id ;
    each time s/he produces an inventory item in manufacturing, s/he can specify the lot id ;
    s/he can choose the lot s/he wants when s/he makes a sale order or a manufacturing process ;
    there is a new screen which allows the user to realize the tracking of lots.

jleroux: apart some formatting and typos, I used only availableToPromiseTotal (instead of also quantityOnHandTotal) when checking the stock of a lot while editing a Picklist Item. 
Note: I only reviewed the code, but did not find enough time to test. As the code was straightforward I decided to add it

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1195037 13f79535-47bb-0310-9956-ffa450edef68
2011-10-29 21:09:38 +00:00
Hans Bakker 8647d322d6 changed view diffinitions wrong, new field fixedAssetId in inventoryItem should be renamed in this case. corrected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1176292 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 09:13:54 +00:00
Hans Bakker b91483e35b correction on commit for rev: 1176145
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1176227 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 06:28:16 +00:00
Hans Bakker fe4c74388c comment from deepak, adding a fixedasset field in inventory item cause warning messages in other views: fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1176145 13f79535-47bb-0310-9956-ffa450edef68
2011-09-27 01:07:02 +00:00
Adam Heath 2343d4aee3 FIX: Correct several typos in various description fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1144107 13f79535-47bb-0310-9956-ffa450edef68
2011-07-08 00:38:27 +00:00
Adam Heath 4db7c4ab2d FEATURE: Add relation ShipmentMethodType to entity ProductStoreShipmentMeth.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1139916 13f79535-47bb-0310-9956-ffa450edef68
2011-06-26 19:15:22 +00:00
Hans Bakker e648a9825e enlarge analyticsCode field and remove content field from webanalytics entity
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1102617 13f79535-47bb-0310-9956-ffa450edef68
2011-05-13 09:04:09 +00:00
Hans Bakker 42262ae630 commenting out the supplierCommissionPerc field on product supplier. Field not used in processing and can only confuse people because we now have the commission run in accounting which can take care of this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1101740 13f79535-47bb-0310-9956-ffa450edef68
2011-05-11 04:14:47 +00:00
Jacques Le Roux 218c1e60cf A patch from Sam Hamilton "Add the shipping costs of a product from a supplier per product" https://issues.apache.org/jira/browse/OFBIZ-4269
This patch allows the saving of a shipping price the supplier charges to get the item to you on a per product basis.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098140 13f79535-47bb-0310-9956-ffa450edef68
2011-04-30 19:26:20 +00:00
Jacques Le Roux e609f74879 A patch from Pierre Gaudin "Add a parameter to forbid order decimal quantity" https://issues.apache.org/jira/browse/OFBIZ-4257
Behavior before the patch :

    * you can add decimal quantity on shopping cart item (front office and back office) even if the product is a unit
    * there is no rounding on quantity on shopping cart item thus you get amount with a large number of decimal
    * reorder widget display quantity to reorder with a large number of decimal

What does this patch :

    * a new field "orderDecimalQuantity" is added into ProducStore entity. The value of this field can be set from EditProducStore form (into shopping cart section). Value can be "Y", "N" or empty.
    * a new field "orderDecimalQuantity" is added into Product entity. The value of this field can be set from EditProduc form (into shopping cart section). Value can be "Y", "N" or empty.
    * a new method "isDecimalQuantityOrderAllowed" have been add into productWorker class. This method test if order decimal quantity is allow for a product and a productStore. Product is superior on producStore. Here is the table of value :
    * ProductStore.orderDecimalQuantity = "Y" && Product.orderDecimalQuantity = "Y" => return True
    * ProductStore.orderDecimalQuantity = "N" && Product.orderDecimalQuantity = "Y" => return True
    * ProductStore.orderDecimalQuantity = empty && Product.orderDecimalQuantity = "Y" => return True
    * ProductStore.orderDecimalQuantity = "Y" && Product.orderDecimalQuantity = "N" => return False
    * ProductStore.orderDecimalQuantity = "N" && Product.orderDecimalQuantity = "N" => return False
    * ProductStore.orderDecimalQuantity = empty && Product.orderDecimalQuantity = "N" => return False
    * ProductStore.orderDecimalQuantity = "Y" && Product.orderDecimalQuantity = empty => return True
    * ProductStore.orderDecimalQuantity = "N" && Product.orderDecimalQuantity = empty => return False
    * ProductStore.orderDecimalQuantity = empty && Product.orderDecimalQuantity = empty => return True
    * addToCat and modifyCart car method have been modify to call isDecimalQuantityOrderAllowed. If result is true then quantity is rounding with order config value. If result is false then quantity is rounding to 0. No message is return.
    * to fix reorder quantity, then getQuickReorderProducts method have been modify to call isDecimalQuantityOrderAllowed. If result is true then quantity is rounding with order config value. If result is false then quantity is rounding to 0.

What the result :

    * You can forbid or accept to manage order decimal quantity for all product
    * You can forbid or accept to manage order decimal quantity for one product
    * Decimal quantity are now rounded with order config value.
    * reorder quantity is rounded with order config value or rounding to 0


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1094121 13f79535-47bb-0310-9956-ffa450edef68
2011-04-17 09:17:21 +00:00
Andrew Zeneski 7fa3382f21 fixed a few entities missing index names for foreign keys
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1073943 13f79535-47bb-0310-9956-ffa450edef68
2011-02-23 20:55:16 +00:00
Hans Bakker 6c60bf2f6f Correction on rev 1067073. removing of unrequired fields, change the order of the seed/demo data, so hopefully buidbot is ok again
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067141 13f79535-47bb-0310-9956-ffa450edef68
2011-02-04 10:43:45 +00:00
Hans Bakker 7008412d2a several enhancements on the product image management system including adding the proper permissions to the fulladmin security group to be able to approve images
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067073 13f79535-47bb-0310-9956-ffa450edef68
2011-02-04 03:21:17 +00:00
Hans Bakker 50b24e3ee5 the first version of a product image management system to upload/approve and manupulate product images, see catalog -> image management
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1052521 13f79535-47bb-0310-9956-ffa450edef68
2010-12-24 15:22:49 +00:00
David E. Jones 463c300fc5 Implemented alternative way of saving ProductPrices with tax included in the price, and then calculating VAT tax as an exclusive instead of inclusive amount that goes on a new field on OrderAdjustment; also added a method to OrderReadHelper to get tax for display; there are various changes to service descriptions and entity fields to describe these changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1042542 13f79535-47bb-0310-9956-ffa450edef68
2010-12-06 08:05:44 +00:00
David E. Jones 5470a7c035 Added entity and service level support for entering prices with taxes included (handy for countries with VAT/etc)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1030191 13f79535-47bb-0310-9956-ffa450edef68
2010-11-02 19:34:31 +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
Jacques Le Roux 02a39d6bb6 A patch from Sascha Rodekamp "Entity ProdCatalogCategoryType Parent Relation" (https://issues.apache.org/jira/browse/OFBIZ-3793) - OFBIZ-3793
The ProdCatalogCategoryType didn't have a parent Relation. Here is a fix that added a parentTypeId field and the relation definition

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950861 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 03:36:37 +00:00
Jacques Le Roux 6193dd4e53 <author>None</author> is totally useless and we don't need an author OOTB
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@949101 13f79535-47bb-0310-9956-ffa450edef68
2010-05-28 05:41:23 +00:00
Jacques Le Roux 63fd94e778 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux 2a1a5aee14 We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Jacques Le Roux fba1da435d Fix 2 descriptions, thanks to Cimballi in dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@945610 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 12:12:44 +00:00
Jacques Le Roux d19f795620 A patch from Chris Snow "ProdCatalog missing field title help" (https://issues.apache.org/jira/browse/OFBIZ-3772) - OFBIZ-3772
Most descriptions have been taken from the "Manager Reference Catalog" document. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944797 13f79535-47bb-0310-9956-ffa450edef68
2010-05-16 11:13:12 +00:00
Bruno Busco 0d281c1ff3 A patch from Chris Snow
OFBIZ-3747 - ProductStore missing field title help
https://issues.apache.org/jira/browse/OFBIZ-3747
Thank you Chris for your patch and your patience.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@944675 13f79535-47bb-0310-9956-ffa450edef68
2010-05-15 16:14:14 +00:00
Scott Gray 0bd837b18b Added missing Uom relation from ProductFeature, patch provided by Mirko Vogelsmeier OFBIZ-3742
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@942363 13f79535-47bb-0310-9956-ffa450edef68
2010-05-08 11:36:00 +00:00
Adam Heath 80389b8cf4 Add flag to ProductPromoAction, that tells PROMO_GWP to use all
available item quantities as the new GWP quantity.  This requires the
quantity field to be null, and useCartQuantity to be 'Y'.  This allows
insanely huge quantities to be used on items that have GWP promos
attached.  Under testing, I've added products with a quantity of 10000
and 50000 items, with no variation in speed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@941048 13f79535-47bb-0310-9956-ffa450edef68
2010-05-04 21:19:41 +00:00
Vikas Mayur 1bd28d5ce7 Fixed a bad indentation. I wasn't really sure whether to keep the indentation to 2 or 4 spaces because it is inconsistent throughout the file. Generally we keep the indentation to 4 spaces in XML and also I have less modifications with latter so I went with 4 spaces indentation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939244 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 09:46:37 +00:00
Jacopo Cappellato dd39924418 Added new sequenceNum field to Product role entity; a product may have several parties associated to it with the same role; this field can be used to define the order of parties associated to the product in that role
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@938974 13f79535-47bb-0310-9956-ffa450edef68
2010-04-28 12:54:33 +00:00
Vikas Mayur a8b2ae53db Fixed a typo in field description thruedate -> thruDate.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@937959 13f79535-47bb-0310-9956-ffa450edef68
2010-04-26 08:15:07 +00:00
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