Return-Path: X-Original-To: apmail-ofbiz-dev-archive@www.apache.org Delivered-To: apmail-ofbiz-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9599617AA0 for ; Sat, 16 May 2015 06:47:00 +0000 (UTC) Received: (qmail 22151 invoked by uid 500); 16 May 2015 06:47:00 -0000 Delivered-To: apmail-ofbiz-dev-archive@ofbiz.apache.org Received: (qmail 22114 invoked by uid 500); 16 May 2015 06:47:00 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 22098 invoked by uid 99); 16 May 2015 06:47:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 May 2015 06:47:00 +0000 Date: Sat, 16 May 2015 06:46:59 +0000 (UTC) From: "Divesh Dutta (JIRA)" To: dev@ofbiz.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (OFBIZ-6145) Purchase return shipment issuance greater than ATP error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OFBIZ-6145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14546595#comment-14546595 ] Divesh Dutta commented on OFBIZ-6145: ------------------------------------- [~pfm.smits] Your idea of registering Purchase return and cancelling inventory reservation makes sense. This is good idea to be considered. Introducing inspection process was not just solution of this problem, it was proposal in general which can be helpful for many Companies because inspection process is used widely in many organizations. Removing item from sales order and adding back was temporary solution and work around which can be used right way in out of the box OFBiz, without doing any thing in code. Let us explore the idea given by you and see what needs to be done in code. > 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 > Assignee: Nicolas Malin > 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)