[ 
https://issues.apache.org/jira/browse/OFBIZ-6145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christian Carlow updated OFBIZ-6145:
------------------------------------
    Attachment: OFBIZ-6145.patch

This patch replaces the inventoryItem availableToPromiseTotal check with 
quantityOnHandTotal.  Once the issuance succeeds the availableToPromiseTotal is 
correctly deducted but the corresponding 
inventoryItemShipGrpInvRes.quantityNotAvailable is not deducted so extra logic 
is probably needed for that.  InventoryItem.accountingQuantityTotal is also not 
updated which might be needed also.

> Purchase return shipment issuance greater than ATP error
> --------------------------------------------------------
>
>                 Key: OFBIZ-6145
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6145
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product
>    Affects Versions: Trunk
>            Reporter: Christian Carlow
>         Attachments: OFBIZ-6145.patch
>
>
> This error occurred when issuing received purchase order inventory to a 
> return shipment:
> Not issuing Order Item Ship Group Inventory Reservation to shipment 10096 
> because the quantity to issue 1 is greater than the quantity left to issue 
> for order order item inventoryItem 
> IssuanceServices.xml issueInventoryItemToShipment service checks that the 
> inventoryItem ATP is greater than the return quantity submitted which fails 
> when sales backorder qty of the product is greater than the purchase receipt 
> qty.
> To reproduce:
> 1.  Create a sales order for 100 of a product
> 2.  Create a purchase order for 10 of the same product
> 3.  Receive the purchase order inventory
> 4.  Create a purchase order return then accept it
> 5.  Click the "Create Return Shipment" button that appears once the return is 
> accepted
> 6.  Update the shipment to create and navigate to the shipment order items 
> page
> 7.  Issue qty of the inventory item received for purchase order to get the 
> error



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to