The delete action was only checking for submitted POs, leaving POAction (actorId) and ItemConsumption (recordedById) to throw FK constraint errors at the DB level. Now returns a clear error for each case and also cleans up SuperUserRequest rows (requester + resolver) inside the transaction before deleting. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| admin | ||
| approvals | ||
| dashboard | ||
| history | ||
| inventory | ||
| my-orders | ||
| payments | ||
| po | ||
| profile | ||
| layout.tsx | ||