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
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
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
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
- 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
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
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
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
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
<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
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
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