Files
ofbiz-framework/applications/product/testdef/FacilityTest.xml
T
Jacques Le Roux 240ad839a4 A patch from Youssef Khaye to finally fix "Incorrect quantityNotAvailable for OrderItemShipGrpInvRes when issuing items to shipments" https://issues.apache.org/jira/browse/OFBIZ-5364
This patch fixes the problem from a functional point of view and consequently the JUnit test in question.

In fact, functionally speaking, 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!

While at it I reverted r1653056 since testMultipleInventoryItemIssuance now passes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656185 13f79535-47bb-0310-9956-ffa450edef68
2015-01-31 11:37:14 +00:00

47 lines
1.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<test-suite suite-name="facilitytests"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/test-suite.xsd">
<test-case case-name="stockMove-test">
<junit-test-suite class-name="org.ofbiz.product.test.StockMovesTest"/>
</test-case>
<test-case case-name="inventoryItemTransfer-test">
<junit-test-suite class-name="org.ofbiz.product.test.InventoryItemTransferTest"/>
</test-case>
<test-case case-name="inventory-tests">
<simple-method-test location="component://product/script/org/ofbiz/product/test/InventoryTests.xml"/>
</test-case>
<test-case case-name="shipment-tests">
<simple-method-test location="component://product/script/org/ofbiz/shipment/test/ShipmentTests.xml"/>
</test-case>
<test-case case-name="loadIssuanceTestData">
<entity-xml action="load" entity-xml-url="component://product/testdef/data/IssuanceTestData.xml"/>
</test-case>
<test-case case-name="issuance-tests">
<junit-test-suite class-name="org.ofbiz.shipment.test.IssuanceTest"/>
</test-case>
</test-suite>