Fix(inventory, stock-location): Remove orphaned location levels and reservations (#3460)
**What** - Remove related inventory levels and reservation items when a stock location is removed **How** - Add bulk deletion methods for both inventory levels and reservation items to the inventory service api - invoke both on location removal Fixes CORE-1232
This commit is contained in:
+1
-1
@@ -37,7 +37,7 @@ const LocationCard: React.FC<Props> = ({ location }) => {
|
||||
const onDelete = async () => {
|
||||
const shouldDelete = await dialog({
|
||||
heading: "Delete Location",
|
||||
text: "Are you sure you want to delete this location",
|
||||
text: "Are you sure you want to delete this location. This will also delete all inventory levels and reservations associated with this location.",
|
||||
extraConfirmation: true,
|
||||
entityName: location.name,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user