Commit Graph
404 Commits
Author SHA1 Message Date
Anil Patel c59dd0474e Clean up and improvements to issue Serialized inventory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@551703 13f79535-47bb-0310-9956-ffa450edef68
2007-06-28 21:21:49 +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 0b66fcf4b0 Fixed bug in entity find operation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@551581 13f79535-47bb-0310-9956-ffa450edef68
2007-06-28 14:45:29 +00:00
Jacopo Cappellato 02d654aa7d Added new field to the ProductStore entity to track if the store should set the owner on serialized inventory items upon issuance.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@551262 13f79535-47bb-0310-9956-ffa450edef68
2007-06-27 18:36:24 +00:00
Jacopo Cappellato bf209c0d2c Enhanced the getProductCost method to look at the SupplierProduct entity to get the cost, if nothing else has been found.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549514 13f79535-47bb-0310-9956-ffa450edef68
2007-06-21 15:31:08 +00:00
Si Chen 094f7f782a Fix orderBy in balanceInventoryItems service
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@549094 13f79535-47bb-0310-9956-ffa450edef68
2007-06-20 12:53:48 +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
Scott Gray cc334ed310 Added defaultDaysToShip to the Facility entity for use during inventory reservation.
promisedDatetime is now calculated as follows:
1. If set use ProductFacility.daysToShip
2. Otherwise use Facility.defaultDaysToShip
3. Otherwise use hard coded default of 30 days

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@547806 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 21:53:59 +00:00
Scott Gray 8664f6c987 Fixed the incorrect flow of quickReceiveReturn, the shipment items were being created and received one at a time rather than creating all then receiving all which was resulting in a credit memo with the first return item only.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@547579 13f79535-47bb-0310-9956-ffa450edef68
2007-06-15 08:39:46 +00:00
Scott Gray affceba49f Fixed a bug that was making a mess of stock moves.
The way things were, 45.0 was greater than 400.0

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@546797 13f79535-47bb-0310-9956-ffa450edef68
2007-06-13 09:57:22 +00:00
Jacopo Cappellato d583d1e71d Misc cleanups and screen conversions from ftl/bsh/event to widget/minilang/service, including patches from Mario Cappellato (OFBIZ-1046)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@546172 13f79535-47bb-0310-9956-ffa450edef68
2007-06-11 15:30:08 +00:00
Si Chen ba0593b31e comments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@545672 13f79535-47bb-0310-9956-ffa450edef68
2007-06-09 00:46:38 +00:00
Jacopo Cappellato 3533d1d037 Added util methods and services to bulk create/delete ProductKeywords: they are going to replace the existing event. Part of issue OFBIZ-1046
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@545137 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 10:03:45 +00:00
Jacopo Cappellato 4d377792a5 Implemented standard services to create/update/delete ProductKeywords: they are going to replace the existing event. Part of issue OFBIZ-1046
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@545112 13f79535-47bb-0310-9956-ffa450edef68
2007-06-07 08:50:11 +00:00
Jacopo Cappellato 388a81bc5e This change is important to allow the correct information also for mkt pkg product (components).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@541875 13f79535-47bb-0310-9956-ffa450edef68
2007-05-26 09:00:28 +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
Jacopo Cappellato 79412c6bce This change to the inventory balance routine will take into account the scenario where the (negative) atp of an existing inventory item with backorders on it is set > 0 by a manual inventory variance.
The trick is to always add the current item to the list of items to rebalance.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@537119 13f79535-47bb-0310-9956-ffa450edef68
2007-05-11 06:59:24 +00:00
Jacopo Cappellato b871b4d443 Inventory reservation balance routine: refactored the part dealing with serialized inventory, now it shares most of the code used for non-serial inventory and now it should work. OFBIZ-774.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536505 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 12:29:44 +00:00
Jacopo Cappellato 70dfa7de77 When a serialized inventory item is issued, the ownerPartyId of the inventory item is changed to the end user customer.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@535839 13f79535-47bb-0310-9956-ffa450edef68
2007-05-07 10:32:01 +00:00
Jacopo Cappellato e48fd8238c Fixed bug in the inventory counting service: serialized units for QOH were wrongly computed because the status for inventory being transfered was not considered.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@534880 13f79535-47bb-0310-9956-ffa450edef68
2007-05-03 14:16:32 +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 9456f3f949 implemented ProductGeo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@531220 13f79535-47bb-0310-9956-ffa450edef68
2007-04-22 16:17:09 +00:00
Andrew Zeneski a4178889a4 added check for isPhysical before doing inventory reservations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@531204 13f79535-47bb-0310-9956-ffa450edef68
2007-04-22 15:31:42 +00:00
Andrew Zeneski c9d2eeaea5 changed imageTwoUrl to be hidden from list display; changed create method so that fromDate does not effect the generation of the linkSeqId; was causing the key to be 00001 everytime due to the unique fromDate
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@530480 13f79535-47bb-0310-9956-ffa450edef68
2007-04-19 16:41:47 +00:00
Timothy Ruppert 1440944bf6 Committed these checkImageUrl services to help fix the problem that can be caused by the setAllProductImageNames. We should probably use some of the logic from these services to update that to check and see if the images exists and only populate the defaults if they do - but that can be for another day
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@528829 13f79535-47bb-0310-9956-ffa450edef68
2007-04-14 16:23:44 +00:00
Jacopo Cappellato 861242c3b9 Refactored the product store shipping screens into two top level screens (grouped together under a new top level menu). Added services to delete ShipmentMethodTypes and CarrierShipmentMethods. Still some work needs to be done in the store->shipping screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@525509 13f79535-47bb-0310-9956-ffa450edef68
2007-04-04 13:31:08 +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
Si Chen 85403d5e4d order inventory rebalancing for serialized items by reservedDatetime
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@524984 13f79535-47bb-0310-9956-ffa450edef68
2007-04-03 00:57:44 +00:00
Si Chen db088e02bb Fix orderby in inventory reservation services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@521508 13f79535-47bb-0310-9956-ffa450edef68
2007-03-22 22:30:57 +00:00
Si Chen 380462a11c Log when picklist skips a back ordered/not in stock item
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@521506 13f79535-47bb-0310-9956-ffa450edef68
2007-03-22 22:27:59 +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
Si Chen a9948aec0c OFBIZ-774: balance inventory supports serialized inventory
- Extend balanceInventoryItems service to take serialized inventory into account
- If serialized inventory is received and non-serialized inventoryItems exist with negative or empty values, the service will attempt to apply the serialized inventory to the first inventoryItem found
- ATP and QOH of the non-serialized will be increased by the serialized quantity
- statusId of the serialized item will be set to INV_PROMISED
- If OrderItemShipGrpInvRes values exist related to the non-serialized item, the service will reduce the quantity of the first found by the serialized quantity and create a new OrderItemShipGrpInvRes for the serialized quantity based on the non-serialized reservation
TODO: Define 'first' in relation to the lists of non-serialized inventoryItems and OrderItemShipGrpInvRes values - is there a business rule that governs this?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@514929 13f79535-47bb-0310-9956-ffa450edef68
2007-03-05 23:57:17 +00:00
Jacopo Cappellato 56fa69ae48 Pretty important change to data model to allow more flexible shipping rules per store:
the primary key of the entity ProductStoreShipmentMeth is no more composed by:
  productStoreId
  shipmentMethodTypeId
  partyId
  roleTypeId

but by one (new) pk field :
productStoreShipMethId

Also modified existing business rules and demo data to reflect this change.
OFBIZ-735


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@511250 13f79535-47bb-0310-9956-ffa450edef68
2007-02-24 11:07:08 +00:00
Scott Gray 6e3dbc32ef Applied patch from Anil Patel OFBIZ-739 with a few clean-ups/corrections, implements returning parts issued to a fixed asset maintenance and also improves the services for issuing parts.
A couple of other clean-ups included:
Corrected javascript includes due to OFBIZ-740
Corrected spelling of issuence to issuance

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510920 13f79535-47bb-0310-9956-ffa450edef68
2007-02-23 12:05:39 +00:00
Si Chen e7670d5bd5 OFBIZ-733: Create invoices for drop ship orders
- Adding logic to createInvoicesFromShipments service to deal with creating both purchase invoices for drop shipment orders and sales invoices for the sales order linked to drop shipment orders - a sales invoice is created if the createSalesInvoicesForDropShipments parameter is true.
- Adding createSalesInvoiceFromDropShipment service to wrap call to createInvoicesFromShipments, passing the createSalesInvoicesForDropShipments parameter.
- Adding SECAs on updateShipment to generate a purchase invoice when a drop shipment is shipped and a sales invoice when a drop shipment is received
- Adding quickDropShipOrder service, linked from orderview page, to create a drop shipment and set the shipment status to shipped and then received, in order to trigger the SECAs for drop shipment invoice generation.
- Fixed flaw in createInvoiceForOrder service - now pro-rating OrderAdjustments based on OrderItem quantity from the database instead of the passed-in OrderItem, in case the OrderItem quantity has been replaced upstream.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510664 13f79535-47bb-0310-9956-ffa450edef68
2007-02-22 21:49:10 +00:00
Si Chen 05cb30c248 update inventory transfer now checks for valid status change. Thanks to Joe Eckard. OFBIZ-727
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@510168 13f79535-47bb-0310-9956-ffa450edef68
2007-02-21 19:46:21 +00:00
David E. Jones 974f1f5265 Fixed bug reported by Si, probably happening for categories that were not associated with a catalog and caused by recent new security code; Jira #OFBIZ-731
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@508885 13f79535-47bb-0310-9956-ffa450edef68
2007-02-18 07:29:10 +00:00
David E. Jones cb5522a0f2 Removed testing log messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507810 13f79535-47bb-0310-9956-ffa450edef68
2007-02-15 04:17:31 +00:00
David E. Jones 8279106743 Some fixed for the view and purchase allow category product add permission code; major cleanup, changed name to better represent and distinguish what it does; also changed OOTB security group setup to better represent how this is intended to be used; now appears to work properly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507809 13f79535-47bb-0310-9956-ffa450edef68
2007-02-15 04:12:07 +00:00
David E. Jones b10f2f3055 Applied patch from Ashish in Jira #OFBIZ-717; also did a number of cleanups and reorganized product service defs to group better; changed this to use the category permission service (was using the product one, and patch had a new product permission service instead of using the existing one, which now has a permission-service style wrapper around it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@507431 13f79535-47bb-0310-9956-ffa450edef68
2007-02-14 08:05:53 +00:00
Alfred Maxwell Byers 2734f35168 All commits related to adding a special permission requirement for Categories that are of the prodCatalogCategoryTypeId = PCCT_VIEW_ALLW and PCCT_PURCH_ALLW.
Two fields, viewAllowPermReqd and purchaseAllowPermReqd were added to ProdCatalog entity and corresponding changes to the admin form.
The "permission-service" approach to security was used for several services in CategoryServices.xml - addProductToCategory, updateProductToCategory, removeProductToCategory
and addProductToCategories.
A permission service, checkCategoryRelatedPermissionService, was added to CategoryServices.xml and the internal calls to the checkCategoryRelatedPermission method were taken
out of those services.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@504818 13f79535-47bb-0310-9956-ffa450edef68
2007-02-08 08:17:33 +00:00
Jacopo Cappellato 75042ccb85 Added new services and screens to manage the QuantityBreak entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@504515 13f79535-47bb-0310-9956-ffa450edef68
2007-02-07 11:59:53 +00:00
Si Chen 8c3414755a Fix a pretty significant bug with sequence of inventory item reservations for orders: FIFO and LIFO were reversed (I checked this) and the +/- notation does not work well with PostgreSQL
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@502824 13f79535-47bb-0310-9956-ffa450edef68
2007-02-03 01:16:36 +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 f61fb507a3 Fix bug where receiving returned serialized items puts them in AVAILABLE status when they should be in RETURNED status
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@498035 13f79535-47bb-0310-9956-ffa450edef68
2007-01-20 01:11:46 +00:00
Andrew Zeneski 510dd0e509 updated picklist services; now will auto complete picklists when all items on the pick list are marked as complete
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496778 13f79535-47bb-0310-9956-ffa450edef68
2007-01-16 17:19:48 +00:00