=> {
try {
await deleteDepositConfirmation(deleting.serial_id);
setNotif({
message: i18n.str`Deposit-confirmation "${deleting.serial_id}" (ID: ${deleting.serial_id}) has been deleted`,
type: "SUCCESS",
});
} catch (error) {
setNotif({
message: i18n.str`Failed to delete deposit-confirmation`,
type: "ERROR",
description: error instanceof Error ? error.message : undefined,
});
}
setDeleting(null);
}}
>
If you delete the deposit-confirmation (ID:{" "}
{deleting.serial_id}), the stock and related information will be lost
Deleting a deposit-confirmation cannot be undone.