OFBIZ-591: Fix bug where shipped serialized inventory items were not decreasing the QoH.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@494270 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -422,7 +422,6 @@ under the License.
|
||||
<StatusValidChange condition="" statusId="INV_PROMISED" statusIdTo="INV_DEFECTIVE" transitionName="Mark As Defective"/>
|
||||
<StatusValidChange condition="" statusId="INV_PROMISED" statusIdTo="INV_BEING_TRANS_PRM" transitionName="Being Transfered (Promised)"/>
|
||||
<StatusValidChange condition="" statusId="INV_BEING_TRANS_PRM" statusIdTo="INV_PROMISED" transitionName="Transfer Complete (Promised)"/>
|
||||
<StatusValidChange condition="" statusId="INV_DELIVERED" statusIdTo="INV_AVAILABLE" transitionName="Return Available"/>
|
||||
<StatusValidChange condition="" statusId="INV_DELIVERED" statusIdTo="INV_RETURNED" transitionName="Return Status Pending"/>
|
||||
<StatusValidChange condition="" statusId="INV_RETURNED" statusIdTo="INV_AVAILABLE" transitionName="Make Return Available"/>
|
||||
<StatusValidChange condition="" statusId="INV_RETURNED" statusIdTo="INV_DEFECTIVE" transitionName="Mark Return Defective"/>
|
||||
|
||||
@@ -34,6 +34,16 @@ under the License.
|
||||
<now-timestamp-to-env env-name="newEntity.issuedDateTime"/>
|
||||
|
||||
<create-value value-name="newEntity"/>
|
||||
|
||||
<!-- if the InventoryItem issued is serialized, then change its status to DELIVERED -->
|
||||
<get-related-one value-name="newEntity" relation-name="InventoryItem" to-value-name="inventoryItem"/>
|
||||
<if-not-empty field-name="inventoryItem">
|
||||
<if-compare field-name="inventoryItemTypeId" map-name="inventoryItem" operator="equals" value="SERIALIZED_INV_ITEM">
|
||||
<set field="updateContext.inventoryItemId" from-field="inventoryItem.inventoryItemId"/>
|
||||
<set field="updateContext.statusId" value="INV_DELIVERED"/>
|
||||
<call-service service-name="updateInventoryItem" in-map-name="updateContext"/>
|
||||
</if-compare>
|
||||
</if-not-empty>
|
||||
</simple-method>
|
||||
<simple-method method-name="updateItemIssuance" short-description="Update ItemIssuance">
|
||||
<check-permission permission="FACILITY" action="_UPDATE">
|
||||
|
||||
Reference in New Issue
Block a user