Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-455

Editing location and increase quantity at the same time for Open order (Common open flow)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Won't Do
    • None
    • None
    • None
    • ACQ Sprint 123
    • 0
    • Thunderjet
    • R3 2021

    Description

      Overview:
      Root cause : Create extra pieces and items when editing location and increase quantity at the same time for Open order (Common open flow). This will be a problem for receiving.

      Steps to Reproduce:

      Scenario 1: 
      	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"
      				   
      Scenario 2: 
      	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
      				   
      Scenario 3: 
      	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"	
      
      

      Actual Results:
      Extra items, pieces for location are created.

      Expected Results:
      Update pieces, items, holdings

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrei_Makaranka Andrei Makaranka
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases