-
Type: Story
-
Status: Closed (View Workflow)
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: CFA 2019R3
-
Component/s: Allocations
-
Labels:
-
Sprint:CFAMX 2019R3 Sprint 2
-
SCRUM Team:Brotherhood of Mutants
-
SOW (Time Tracking) Project:44918
As a supply chain analyst I want the ability to delete an allocation through the UI so that I can correct any mistakes that I make when configuring an allocation
Notes
- The current allocation import has constraints around correcting the data via the import
- This solution will provide the following:
- Select an allocation
- Select Delete Allocation
- Prompt user to confirm deletion
- Delete all records for the allocation, from the allocation tables and Order tables
- Research - Sending an Auto Notification that has an attached CSV that shows the data that has been deleted
Acceptance Criteria
- Confirm that there is an option on the Item Allocation page to select an allocation for an item for deletion
- Confirm that after selecting an allocation for deletion there is an option to initiate the delete process
- Show delete option in Right Hand Panel
Expand RH Panel to see DeleteRemoved 4/18- Only show the End Allocation button if the user has selected today's date on the Allocation page.
- Confirm that the user is prompted to confirm which allocation they are going to delete and that the delete process will delete the allocation for a specific number of stores (not just the one selected in the Item Allocation page)
- show the number of impacted stores
- Confirm that the allocation delete process deletes the appropriate records from the allocation and order tables (tbAllocation, tbAllocationDetails, tbTransactionSalesOrderDetailItemQuantity)
- Confirm that after deleting the allocation it is possible to import a file to recreate the allocation for the same item, starting tomorrow
- Confirm that Draft Orders that were associated with the allocation can be accessed without issue
- Confirm that Placed Orders that were associated with the allocation can be accessed without issue
- Confirm that Shipped Orders that were associated with the allocation can be accessed without issue
- Confirm that Received Orders that were associated with the allocation can be accessed without issue
- Confirm that there is an audit record written that details the Item on allocation and the number of stores that were deleted, and the user who performed the delete action (tbAllocation - AuditCategoryID = 8, AuditEventId = 503)
Dev's Notes
- It may be possible to maintain history for a deleted allocation - this would be preferred
- Maintaining history would require "stopping" or "ending" an allocation rather than deleted
- We don't have a real "this allocation for all stores" concept in the database or in the allocation import from CFA. When we look for "all allocations" to delete, we will match on item code, start date, and end date.
- Clones
-
CFAMX-3410 CLONE 2019R2 - Allocations - Add Support to Delete an allocation
- Closed
- implements
-
CFAMX-3633 Allocations - Add Support to Delete an allocation
- Closed
- is blocked by
-
CFAMX-3842 End Allocation for same day it began doesn't update period end date
- Done
-
CFAMX-3924 Allocations - New Draft Order after allocation is deleted for today allows max allocation amount again
- Done
- is implemented by
-
CFAMX-4335 Delete Allocation is not working in Production
- Done
-
CFAMX-4336 CLONE - 2019 R2- Delete Allocation is not working in Production
- Done
- is related to
-
CFAMX-3780 2019.R3(S2):Admin Item Alloc - ROF/NHibernate.LazyInitializationException
- Done