[ https://issues.apache.org/jira/browse/OFBIZ-5364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14299776#comment-14299776 ] Jacques Le Roux commented on OFBIZ-5364: ---------------------------------------- I received Youseef's answer by mail, in French. Here is the translation. {quote] Good evening Jacques; I do not know when I will have access to JIRA, I live answers you and apologize! The answer is yes, this patch fixes the problem from a functional point of view and consequently the JUnit test in question. In fact, functionally speaking, I think the previous patch is not good in measure or it does not take into account that an OrderItem might use several lines of stock InventoryItem. orderId orderItemSeqId orderItemShipGrpSeqId InvetoryItemId 10000 000001 10000 000001 10000 000001 10001 000001 So by making a stock exit (ItemIssuance) we can afford to cancel the reservation lines for the line of stock in question but not all the lines of stock. That's why I added the lines in the inventoryItemId research question and then cancel a reservation! I think I'm clear. Thank you and sorry again for my email. {quote] > Incorrect quantityNotAvailable for OrderItemShipGrpInvRes when issuing items to shipments > ----------------------------------------------------------------------------------------- > > Key: OFBIZ-5364 > URL: https://issues.apache.org/jira/browse/OFBIZ-5364 > Project: OFBiz > Issue Type: Bug > Components: order > Affects Versions: Release Branch 12.04 > Reporter: Christian Carlow > Assignee: Ashish Vijaywargiya > Attachments: OFBIZ-5364-1.patch, OFBIZ-5364.patch > > > The quantityNotAvailable field of OrderItemShipGrpRes seems to reflect incorrect numbers after shipment issuances occur. > To reproduct: > 1. Create an order for DemoCustCompany for a quantity of 100 of a product having no inventory quantity > 2. Create a second ship group on the Shipping page > 3. Assign half of the order item quantity (50) to the second ship group created and then finish creating the order > 4. Click the "New Shipment for Ship Group" button for the first ship group and navigate to the "Order Items" page > 5. On the "Order Items" page, notice the issue quantity field is blank because no inventory exist yet to be issued to the shipment. > 6. Navigate to the WebstoreWarehouse Receive Inventory page and receive a quantity of 1 for the order item product to increase the inventory by 1 > 7. Refresh the Shipment Order Items page and you'll see the issue quantity change to 1 because the inventoryItemId created in the last step was assigned to the orderItemShipGrpInvRes for this item. > 8. Now change from ship group 00001 to ship group 00002 and notice the issue quantity is blank > 9. Assign a quantity of 1 to the second ship group and click the "Issue All" button > 10. Change the ship group back to 00001 and notice the quantity in the issue text box is still 1 > It seems like the issue text box in step 10 should be 0 instead of 1 since the inventory item quantity was used for ship group 2. > Does anyone disagree? Could I be misinterpreting the way the OrderItemShipGrpInvRes is supposed to work? -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |