refund and create credit memo manually

i have paid refund manually. how can i adjust the order amount and create a credit note without processing the refund with automated refund system