[
https://issues.apache.org/jira/browse/OFBIZ-774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494461
]
Jacopo Cappellato commented on OFBIZ-774:
-----------------------------------------
Si,
I'm reviewing the code because I've seen some strange things happening with
serialized inventory...
I've still not finished my work on this, but I indeed see some problems in the
way serialized inventory are handled in the balanceInventoryItem service (rev.
514929):
1) at line 674: the total qoh and atp of an existing InventoryItem are updated
directly, we should create an InventoryItemDetail record instead
2) (this is a big issue) at lines 669-673: the qoh is increased by one... I
don't think it is correct, we should just increase the atp quantity
I'll add more comments on this soon.
> balance inventory supports serialized inventory
> -----------------------------------------------
>
> Key: OFBIZ-774
> URL: https://issues.apache.org/jira/browse/OFBIZ-774
> Project: OFBiz (The Open for Business Project)
> Issue Type: Improvement
> Components: product
> Reporter: Si Chen
> Assigned To: Si Chen
>
> Balance inventory currently does not do anything if the inventory just
> received is serialized.
> Instead, what should happen is that if a unit of serialized inventory is
> received and there are non-serialized items with ATP < 0, then it should
> change the serialized item to Promised and use it to offset the first unit
> (1.0) of the non-serialized inventory item.
> For example, if we had 5 units on back order (created as a non-serialized
> inventory item with ATP = -5 and QOH = -5), and 1 unit of serialized
> inventory comes in, then we should change ATP and QOH of non-serialized item
> to -4 and the status of serailized inventory item to Promised, and reserve
> this serialized item against the first order item reserved against the
> non-serialized inventory item with a quantity of 1.0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.