Change order line location and quantity

Direct Open Flow



Use caseAutomation statusTest Rail integration statusStatusComments
1
Scenario 1 : Editing location and increase quantity at the same time for Open order
Given Create a POL for P/E mix
And Set 2 Physical with "createInventory": "Instance, Holding, Item"
And Set 2 Electronic with "createInventory": "Instance, Holding, Item" 
And Set one location "Location 1"
And Save and open PO
And Edit POL and change location on "Location 2" and increase Electronic quantity from 2 to 3
When Save and close POL
Then
Actual : 4 old pieces still there and 5 new pieces created with "Location 2"
		 4 old items still there and 5 new items created with "Location 2"
Expected : 3 Pieces for Electronic and 2 for Physical with "Location 2"
		   3 Items for Electronic and 2 for Physical with "Location 2"

NO

NO

FAILED


2
Scenario 2 : Editing location and increase quantity at the same time for Open order
Given Create a POL for P/E mix
And Set 1 Physical with "createInventory": "Instance, Holding, Item"
And Set 1 Electronic with "createInventory": "Instance, Holding" 
And Set one location "Location 1"
And Save and open PO
And Edit POL and change location on "Location 2" and increase Electronic quantity from 1 to 2
When Save and close POL
Then
Actual : 2 old pieces still there and 3 new pieces created with "Location 2"
         1 old items still there and 1 new Physical items created with "Location 2"
Expected : 2 Pieces for Electronic and 1 for Physical with "Location 2"
           1 Old Items for Physical with "Location 1" still there

NO

NO

FAILED


3
Scenario 3 : Editing location and increase quantity at the same time for Open order
Given Create a POL for P/E mix
And Set 1 Physical with "createInventory": "Instance, Holding, Item"
And Set 1 Electronic with "createInventory": "Instance, Holding" 
And Set one location "Location 1"
And Save and open PO
And Receive 1 Physical piece
And Edit POL and change location on "Location 2" and increase Physical quantity from 1 to 2
When Save and close POL
Then
Actual : 2 old pieces still there with "Location 1" and 3 new pieces created with "Location 2"
         1 old items still there with "Location 1" and 1 new Physical items created with "Location 2"
Expected : 1 Received Pieces for Physical with "Location 1" and 1 Expected for Physical with "Location 2"
         1 Expected Pieces for Electronic with "Location 1"
         1 Item for Physical with "Location 1" and 1 Item for Physical with "Location 2" 

NO

NO

FAILED


4
Scenario 4 : Editing all location and receive piece for Open order
Given Create a POL for P/E mix
And Add first location "Location 1" with 1 Physical and 1  Electronic
And Add second location "Location 2" with 1 Physical and 1 Electronic
And Set Physical with "createInventory": "Instance, Holding, Item" 
And Set Electronic with "createInventory": "Instance, Holding, Item"
And Save and open PO
And Receive 1 Physical piece with "Location 1"
And Edit POL and change "Location 1" to "Location 3"
And Edit POL and change "Location 2" to "Location 4"
When Save and close POL
Then
Actual : 1 old "Received" piece still there with "Location 1" 
	     1 old "Expected" piece with "Location 4"
         2 old "Expected" pieces with "Location 3"
Expected : 1 old "Received" piece still there with "Location 1"
	       1 old "Expected" piece with "Location 3" 
           2 old "Expected" pieces with "Location 4"

NO

NO

FAILED

Dennis Bridges There is no way programmatically understand which Pieces with which locations to update. 

5
Scenario 5 : Returning a piece with Location which different from order line Location
Given Create a POL for P/E mix
And Add first location "Location 1" with 1 Physical and 1  Electronic
And Add second location "Location 2" with 1 Physical and 1 Electronic
And Set Physical with "createInventory": "Instance, Holding, Item" 
And Set Electronic with "createInventory": "Instance, Holding, Item"
And Save and open PO
And Receive 1 Physical piece with "Location 5"
And Edit POL and change "Location 1" to "Location 3"
And Edit POL and change "Location 2" to "Location 4"
When Save and close POL
Then
	Actual : Not tested
	Expected : Not clear what we should do

NO

NO

NOT TESTED

Dennis Bridges Not clear what we should do in that case

6
Scenario 6 : Change location in one of "Expected" piece with Location which different from order line Location
Given Create a POL for P/E mix
And Add first location "Location 1" with 1 Physical and 1  Electronic
And Add second location "Location 2" with 1 Physical and 1 Electronic
And Set Physical with "createInventory": "Instance, Holding, Item" 
And Set Electronic with "createInventory": "Instance, Holding, Item"
And Save and open PO
And Change location in piece from "Location 1" to "Location 5"
And Edit POL and change "Location 1" to "Location 3"
And Edit POL and change "Location 2" to "Location 4"
When Save and close POL
Then
	Actual : Not tested
	Expected : Not clear what we should do

NO

NO

NOT TESTED

Dennis Bridges   Not clear what we should do in that case. Can we delete all existing pieces including in which location changed. If we choose updating strategy, then not clear : How to understand from the code in which pieces update locations.