Commit Graph
270 Commits
Author SHA1 Message Date
Swapnil Mane 9c3a3a4fcf Fixed: If the picklist cancelation process failed, the picklist item shouldn't be marked as cancel
(OFBIZ-4690)

When a transaction is running in which Picklist entity is updated (i.e. canceled), now if the transaction is rollback the picklist status will not be changed but as per previous code, the picklist item's status will get updated i.e. marked as cancel because we called the cancelPicklistAndItems service in async mode

So the situation here was the Picklist is not canceled, but the Picklist items were marked as cancel.

Thus to fix it, call the cancelPicklistAndItems service in sync mode.

Thanks:  Jacques Le Roux for your thoughts.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857813 13f79535-47bb-0310-9956-ffa450edef68
2019-04-19 14:05:59 +00:00
Deepak Dixit b15d57c11a Improved: Removed deprecated entities. (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792176 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 10:31:59 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacopo Cappellato 85b2008053 OFBIZ-6760: Moved all entity definitions from the applications components into a new component named "datamodel".
This is a first step to refactor application components into independent parts that can be deployed when needed.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1720413 13f79535-47bb-0310-9956-ffa450edef68
2015-12-16 18:37:22 +00:00
Jacques Le Roux 40bc757dea An updated and modified patch from Bob Morley for "ProductStore did not allow the default timezone to be set" https://issues.apache.org/jira/browse/OFBIZ-2813
The ProductStore has the defaultLocaleString and the defaultCurrencyUomId but does not have a defaultTimeZoneString.  What happens when a store is selected (from e-commerce or the POS) is that it will look to the user for a lastTimeZone and if that is not set, it would simply revert to the TimeZone.getDefault() (so the timezone based on the server).

The trouble we had was that you may have an application server that is running in a completely different timezone than what is desired for the store.

jleroux: see comments in the Jira issue for the modifications I did

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1712347 13f79535-47bb-0310-9956-ffa450edef68
2015-11-03 16:53:30 +00:00
Arun Patidar 3865ff485d [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Jacopo Cappellato 2b726298eb OFBIZ-6068: patch by Rohit Koushal that fixes a series of ClassCastException happening since rev. 1553890 when accessing some blog fields.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1660053 13f79535-47bb-0310-9956-ffa450edef68
2015-02-16 08:59:35 +00:00
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 373e0aba28 Moved the "bi" component from the framework to the specialpurpose folder; moved all the dependencies (client code) on the "bi" component from applications components to the "bi" component itself.
Now the "bi" component contains all the dimensions/facts/star schemas and all the logic to populate them and can be easily enabled/disabled.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1642027 13f79535-47bb-0310-9956-ffa450edef68
2014-11-27 06:14:06 +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
Jacques Le Roux 0cc786f9a3 Thanks to Roberto Benítez Monje's report: "Ofbiz uses a reserved word in a Party View definition" https://issues.apache.org/jira/browse/OFBIZ-5062
Inside the component Part, the view-entity 'PartyIdentificationAndParty' uses the reserved word of MAXDB "PI". Without change it the Party component doesn't work properly   

jleroux: I just changed form PI to PIN and PIM where relevant

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1403370 13f79535-47bb-0310-9956-ffa450edef68
2012-10-29 15:33:39 +00:00
Erwan de Ferrieres 53913d4dbe A patch from Nicolas Malin - OFBIZ-5021 - Add screen to manage productStoreGroup Hierarchy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1381093 13f79535-47bb-0310-9956-ffa450edef68
2012-09-05 09:19:53 +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
Jacques Le Roux 4dc123f3e3 A patch from Ankit Jain "If Picklist is Cancelled than all the PicklistItem related to that PicklistId should also get Cancel." https://issues.apache.org/jira/browse/OFBIZ-4690
If we cancel a picklist from Manage Picklist screen then this ECA will fire and cancel all the PicklistItem. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1290890 13f79535-47bb-0310-9956-ffa450edef68
2012-02-18 22:06:51 +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
Vikas Mayur 532a8594b7 Extend view entity ShipmentPackageRouteDetail.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1225662 13f79535-47bb-0310-9956-ffa450edef68
2011-12-29 21:36:10 +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 5c54d9e925 reverting r1176764: wrong change
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1176765 13f79535-47bb-0310-9956-ffa450edef68
2011-09-28 07:42:33 +00:00
Hans Bakker 6ef6ecd565 changing the views back to the 'alias all exclude' and add the rename later.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1176764 13f79535-47bb-0310-9956-ffa450edef68
2011-09-28 07:37: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
David E. Jones 4a0066b811 Added fk from ShipmentCostEstimate to ProductStoreShipmentMeth, is missing allowing ProductStoreShipmentMeth records to be deleted therefore breaking ShipmentCostEstimates
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1082800 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 02:35:03 +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 62e0b8194d add a view to be able to sort by productprice within a category
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1062708 13f79535-47bb-0310-9956-ffa450edef68
2011-01-24 09:50:12 +00:00
Jacopo Cappellato 0ed73fe64c Added a bunch of missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058580 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:25:38 +00:00
Marco Risaliti a96995c579 USPS use the new Shipment Gateway Config features (OFBIZ-4089)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054435 13f79535-47bb-0310-9956-ffa450edef68
2011-01-02 17:20:48 +00:00
Marco Risaliti cd17fc6dd8 UPS use the new Shipment Gateway Config features (OFBIZ-4054)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053074 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 14:19:29 +00:00