Commit Graph
57 Commits
Author SHA1 Message Date
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 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
Adrian Crum 9a753b9865 Fixed a problem where service definitions were using "GenericValue" as attribute types, but that threw exceptions because the service definitions needed the full class name - "org.ofbiz.entity.GenericValue". The problem was reported in https://issues.apache.org/jira/browse/OFBIZ-2268 and https://issues.apache.org/jira/browse/OFBIZ-2311.
I checked the commit logs and I don't see what changed to cause these services to stop working, so I took the shotgun approach and changed all occurrences of GenericValue service attributes.

If anyone has a better solution, please feel free to revert this commit and change it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@765864 13f79535-47bb-0310-9956-ffa450edef68
2009-04-17 06:33:43 +00:00
Vikas Mayur 86795554d5 New stock move screen to do a quick stock move. Part of OFBIZ-2233 (https://issues.apache.org/jira/browse/OFBIZ-2233)
Thanks Divesh for contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@764685 13f79535-47bb-0310-9956-ffa450edef68
2009-04-14 06:42:37 +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
Vikas Mayur a131758b9e Another new feature from Pranay and Co.
Now Order reservation can be changed manually by setting priority (new field priority on OrderHeader and OrderItemShipGrpInvRes) for the order. This way few orders can be
fulfilled while waiting for sufficient inventory to fulfill large orders.

Applied patch from OFBIZ-2224 (https://issues.apache.org/jira/browse/OFBIZ-2224).
Thanks Pratik Khera and Pranay Pandey.

i18n Note: This commit has three new labels (IMO, they can be moved to common component with names something like CommonHigh, CommonLow etc.)

Pratik, I have done minor changes in the service and they are
1) Used <if-empty field=""> instead of <if> <condition> <if-empty> as this makes the logic more clearer.
2) Removed <condition-list> because their is only one expression in the <entity-condition>
3) Added <clear-field> in the iteration, to make sure that always a new value will be set in the map that is passed to a service and <store-value>  



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@756001 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 13:58:08 +00:00
Ashish Vijaywargiya 482a84b1a5 git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755831 13f79535-47bb-0310-9956-ffa450edef68 2009-03-19 04:27:30 +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
Bilgin Ismet Ibryam ef8e5d8bcb Changing serialized inventory owner after item issuance cause errors in accounting transaction services, because the new owner usually is not an internal organization.
I moved the change owner logic to a separate service and and added seca rule to invoke it after all accounting transactions are in place.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@710035 13f79535-47bb-0310-9956-ffa450edef68
2008-11-03 10:38:04 +00:00
Ashish Vijaywargiya b661119647 Override the behaviour of fromDate so if user gives empty value for fromDate then put the nowtimestamp over there.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698160 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 12:43:14 +00:00
Ashish Vijaywargiya 2308a8c95a Applied patch from Surya Kusumakar from Jira Issue # OFBIZ-1963.
Added support for migrating FacilityRole to FacilityParty.

Thanks Surya Kusumakar for your contribution.
Special thanks to Mr. Pranay Pandey for his support :-).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@698159 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 12:37:06 +00:00
Vikas Mayur e1bc8274c6 Improvement in Inventory Item look up
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@683634 13f79535-47bb-0310-9956-ffa450edef68
2008-08-07 15:45:44 +00:00
Jacopo Cappellato 68dfd57f01 Initial version of the supplier return implementation; thanks to Vikas Mayur for the patch that I have committed with two small changes from OFBIZ-1893
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@680690 13f79535-47bb-0310-9956-ffa450edef68
2008-07-29 13:28:52 +00:00
Jacopo Cappellato 631e4b56cb Added support for non-serialized status to mark items as defective or on-hold and exclude them form the inventory reservation and issuance services; enhanced inventory counting services to consider only non serialized items with an empty status (i.e. exclude on-hold or damaged items) but also added the statusId field so that it is possible to count on-hold or damaged items.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@664069 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 18:24:20 +00:00
Jacopo Cappellato 57d530878d Implemented logic to assign reservations for new sales orders according to the priority given by the ship before date.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644637 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 08:09:38 +00:00
Jacopo Cappellato 20cff4ded8 New service that, for each product with a negative reservation in the order, calls the reassignInventoryReservations service.
Based on a patch from Sumit Pandit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639505 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 00:40:14 +00:00
Jacopo Cappellato 73b45d2c78 Implemented new service to balance inventory reservations for a given product/facility, considering all the reservations with promised date greater than fromDate.
Not yet tested, but it is not still used.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@639501 13f79535-47bb-0310-9956-ffa450edef68
2008-03-21 00:17:45 +00:00
Si Chen 9cc05e5d1c reversing my previous commit r 614970 which may have undesirable side effects
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@615240 13f79535-47bb-0310-9956-ffa450edef68
2008-01-25 15:02:34 +00:00
Si Chen 466ba050be New SECA service to check for over reservations before attempting to reserve for an order item.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@614970 13f79535-47bb-0310-9956-ffa450edef68
2008-01-24 20:13:48 +00:00
Jacques Le Roux 26b3f695a6 checkFacilityRelatedPermission never should have been one service. As Jacopo commented when he 1st created it :
<!-- a method to centralize facility security code, meant to be called in-line with
        call-simple-method, and the checkAction and callingMethodName attributes should be in the method context -->


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611917 13f79535-47bb-0310-9956-ffa450edef68
2008-01-14 20:26:38 +00:00
Jacques Le Roux 20ffb5006f This fix a bug introduced in revision 611309 which was reported by Jeremy Wickersheimer in "Re-Factor Facility permissions of Product component to follow new patterns." OFBIZ-1569
https://issues.apache.org/jira/browse/OFBIZ-1569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558548#action_12558548
 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611833 13f79535-47bb-0310-9956-ffa450edef68
2008-01-14 15:47:53 +00:00
Jacques Le Roux ba4dcd47c5 A patch from Abhijit Meshram " Re-Factor Facility permissions of Product component to follow new patterns." (https://issues.apache.org/jira/browse/OFBIZ-1569) - OFBIZ-1569
There was somehting weird in the patch around <!-- Product Inventory Services --> but I was able to merge easily after an update



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@611309 13f79535-47bb-0310-9956-ffa450edef68
2008-01-11 21:40:44 +00:00
Si Chen cda6e54287 Changed showcart to show only inventory of the store's facility rather than all facilities
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@583911 13f79535-47bb-0310-9956-ffa450edef68
2007-10-11 18:43:36 +00:00
David E. Jones e057a72e04 Increased timeout so that when there are lots of back-ordered reservations and it takes a while to process then it will have a better chance of success
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582430 13f79535-47bb-0310-9956-ffa450edef68
2007-10-06 01:10:48 +00:00
Adrian Crum 725d504265 Converted embedded Facility permissions checking to service-based permissions checking. Also added check for ADMIN permission, which wasn't being done.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575499 13f79535-47bb-0310-9956-ffa450edef68
2007-09-14 00:16:14 +00:00
David E. Jones 44a65bfa55 Increased timeout for these services to handle larger backorder situations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@575407 13f79535-47bb-0310-9956-ffa450edef68
2007-09-13 19:15:33 +00:00
David E. Jones a69fcf68ce Changed balanceInventoryItems service return a Set of order IDs that have left the backordered status based on this operation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@569962 13f79535-47bb-0310-9956-ffa450edef68
2007-08-27 02:26:56 +00:00
Anil Patel 54ea1f8277 Removed shippingFacilityId and cleaned up inventory reservation code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@563208 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 18:01:59 +00:00
Anil Patel ae8f228b14 adding shippingFacilityId parameters to handle case when shipping facility is different from webstore.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@562671 13f79535-47bb-0310-9956-ffa450edef68
2007-08-04 08:09:33 +00:00
Jacopo Cappellato e5a2ec3744 Implemented services to quickly create inventory transfers from requirements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@561875 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 17:12:51 +00:00
Anil Patel 55eae3917b Improved service to reserve specific Inventory .
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@558268 13f79535-47bb-0310-9956-ffa450edef68
2007-07-21 08:28:46 +00:00
David E. Jones 8a4261fe81 Added effectiveDate field to InventoryItemDetail to more easily find when an inventory change is effective; not really sofisticated for now, either current date/time or if there is an ItemIssuance then the issuanceDateTime
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@557939 13f79535-47bb-0310-9956-ffa450edef68
2007-07-20 09:33:09 +00:00
David E. Jones d409c1a605 Changed the oldOwnerPartyId to be optional; making it not optional is a problem because it is common that the ownerPartyId won't be set; should fix various problems related to this.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@556800 13f79535-47bb-0310-9956-ffa450edef68
2007-07-17 03:35:30 +00:00
Anil Patel 71f7267109 Minor fixes and clean up in inventory serialized reservation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@552635 13f79535-47bb-0310-9956-ffa450edef68
2007-07-03 01:15:06 +00:00
Anil Patel 28d82e6897 Added service issueSerializedInvToShipmentPackageAndSetTracking and reserveAnInventoryItem. Fixed type error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@551610 13f79535-47bb-0310-9956-ffa450edef68
2007-06-28 16:17:27 +00:00
Jacopo Cappellato 8f84f3f4a1 New common decorators, crud screens and forms for inventory labels and label types.
Improved the crud services used by the screens.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@548015 13f79535-47bb-0310-9956-ffa450edef68
2007-06-17 07:40:25 +00:00
Jacopo Cappellato 0c72858a47 CRUD services for the new InventoryItemLabelType entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@547935 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 16:08:17 +00:00
Jacopo Cappellato f21075e7e5 Generic permission service for the facility component.
CRUD services for the new InventoryItemLabel and InventoryItemLabelAppl entities.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@547934 13f79535-47bb-0310-9956-ffa450edef68
2007-06-16 15:54:22 +00:00
Jacopo Cappellato df7348cdb9 Now the same inventory counting routine is shared by the MARKETING_PKG_AUTO and MARKETING_PKG_PICK products.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@541862 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 06:16:12 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Andrew Zeneski b0d13a464c implemented InventoryItemStatus service; set triggers and modified direct calls to store() to call the updateInventoryItem service (there may still be more)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537964 13f79535-47bb-0310-9956-ffa450edef68
2007-05-14 19:50:48 +00:00
Hans Bakker 3d1711955c the facility inventory list is very slow when there are a lot of products in inventory. With 15000 products, the system crashes and run out of memory. This update is a refactoring so that the inventory quanties are only retrieved for the products which are on screen. Previously this was done for all products which were in inventory. Work from my employee Wisut
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537084 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 04:28:54 +00:00
Si Chen b33e670ddc Adding a sequenceId field to the OrderItemShipGrpInvRes entity and ordering secondarily by this field when inventory reservations are retrieved in the balanceInventoryItems service, as an aid to prioritizing reservations when a RDBMS (such as MySQL) doesn't support fractional seconds on timestamp fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@532412 13f79535-47bb-0310-9956-ffa450edef68
2007-04-25 17:20:21 +00:00
Andrew Zeneski db02023658 few changes to use entity list iterators when doing inventory lookups; added code to get totals from serialized inventory records; next to add view to get totals (instead of doing math in simple methods)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@525264 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 20:30:56 +00:00
David E. Jones 4344e8e947 Applied patch from Anil Patel in OFBIZ-693; small improvement in lead time display when not in stock changed to use availableToPromiseTotal; added caching support for productsummary call to make it perform reasonably
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@515648 13f79535-47bb-0310-9956-ffa450edef68
2007-03-07 17:01:23 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
Si Chen bd4febf435 Return the original statusId when an InventoryItem is updated. Useful for SECA chains.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@492367 13f79535-47bb-0310-9956-ffa450edef68
2007-01-04 00:22:15 +00:00
Si Chen a2c3b496b6 comments
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@473163 13f79535-47bb-0310-9956-ffa450edef68
2006-11-10 01:44:28 +00:00