[ 
http://issues.apache.org/jira/browse/OFBIZ-318?page=comments#action_12435307 ] 
            
Jacopo Cappellato commented on OFBIZ-318:
-----------------------------------------

I don't think that there is an easy way of doing so (in a clean way) because of 
the way things are implemented... and my guess is that this is one of the 
reasons because the serialized inventory receives are not implemented right now.

The main issue (I think) is the presence of the service group:

<group name="receiveInventoryProduct" send-mode="all">
  <service name="prepareInventoryReceipt" mode="sync" result-to-context="true"/>
  <service name="createInventoryItem" mode="sync" result-to-context="true"/>
  <service name="createInventoryItemDetail" mode="sync" 
result-to-context="true"/>
  <service name="createShipmentReceipt" mode="sync"/>
  <service name="balanceInventoryItems" mode="sync"/>        
</group>

In order to support serialized inventory creation, we should call this service 
multiple times...
This service is also responsible for the bad error messages handling in the 
receive inventory screen: we have currently some problems displaying the error 
returned by one of the services in the group.

This is what I propose: what about transforming the above service group into a 
new standard service (with the same name etc...) that simply calls all the 
services in the group definition? In this way it will be easier to implement 
serialized inventory receipts in a clean way and also to return nice error 
messages if something goes wrong.

What do you all think of this?



> Receipt of multiple units of serialized inventory error
> -------------------------------------------------------
>
>                 Key: OFBIZ-318
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-318
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: product
>            Reporter: Chris Howe
>         Attachments: serialized.patch
>
>
> When receiving multiple units of serialized inventory, only a single 
> inventory item is created and the shipment is considered received because the 
> shipment accepts all units.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to