Hello,
Yes, "S26 - 0001" is achievable. Use this format string in the "Credit note number format" field of the plugin parameters:
S{date format='y'} - {id size='4'}
Breakdown:
- S, the literal letter S.
- {date format='y'}, the current year as 2 digits (so "26" in 2026, "27" in 2027, and so on). If you prefer the full 4-digit year, use {date format='Y'}.
- The literal characters " - " in between (a space, dash, space).
- {id size='4'}, the credit-note counter padded to 4 digits ("0001", "0002", ..., "0010", ..., "9999").
Available tokens for this field, for reference:
- {id}, the credit-note number (no padding).
- {id size='N'}, same number padded with leading zeros to N digits, replace N with the width you want.
- {date format='X'}, the date when the credit note was generated, with X being any PHP date format (Y for full year, y for 2-digit year, m for month, d for day, etc.).
- {automatic_code}, an alphanumeric code derived from the counter.
- {user xxx}, a value from the customer's user record (replace xxx with a field name).
One thing to keep in mind: the {id} counter is shared across all credit notes globally and never resets. So if you start with this new format after already having issued, say, 12 credit notes, the next one will be "S26 - 0013", not "S26 - 0001". If you need a counter that restarts every year, please let us know, that would be a separate feature.