When you first create or edit a credit note, it starts in "Proforma (Edit Mode)". This is a draft version where you can modify details before finalizing it. To make it a legal document, you must click the "Generate invoice number" button to assign it a permanent reference.