Hi David,
You can use below query in case of any Delivery closed Manually.
But I believe this "Close" option should not be authorized to any normal user as it leads to big issues going forward.
SELECT T0.DocEntry, T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocManClsd] FROM ODLN T0 Where T0.[DocManClsd] ='Y'
You can add more fields to above query.
Thanks,
Rahul