David,
2 scenarios...
1) Receiving a purchase order and the receiver mistakenly receives the
wrong product...need to unissue an item (happens surprisingly often)
2) Issued an item to fulfil a sales order (not necessarily packed the
shipment and invoiced yet) - customer cancels the order, so we need to
unissue the item and give it back to inventory (this happens pretty
often for us)
Note scenario (2) probably doesn't happen that often if you have a web
store, but with a real store customers have more scope and time for
changing their mind :-)
Cheers, Iain
David E Jones wrote:
Stepping back a little (to hopefully make it easier to see what needs
to be done here), from a business perspective does it mean and what
needs to happen when you cancel an ItemIssuance?
When an item is issued from inventory (usually to a shipment), it
represents a stock-out and inventory is committed to the shipment or
whatever it is issued to.
What is the scenario where this would be reversed?
The main reason I'm asking is because chances are there is more that
needs to be considered and tracked with this sort of operation...
-David
On May 14, 2008, at 4:33 AM, Bilgin Ibryam wrote:
Hi all,
I'd like to add a service for canceling item issuance.
I found in the list that this feature is asked before some time
http://www.nabble.com/Cancel-shipment-to11953006.html#a11953006 and also
it is needed for OFBIZ-1766 - canceling shipments.
I'm not familiar with all the inventory and accounting code and I would
appreciate comments/advices/help.
Do you think that this is a right approach for implementing it:
Add a new cancelQuantity field to ItemIssuance entity for storing the
canceled quantity.
Create a CancelItemIssuance service which works the following way:
1. Add the cancelQuantity quantity to ItemIssuance.cancelQuantity field.
2. Create a InventoryItemDetail entry with quantityOnHandDiff and
availableToPromiseDiff equal to cancelQuantity.
3. Call or create a seca for balanceInventoryItems service to update
inventory reservations.
4. Create a seca for adjusting the accounting transaction.
Thanks,
Bilgin
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 269.23.16/1431 - Release Date: 5/13/2008 7:55 PM