Set an invoice naming series for GST rules ​

Rule 46(b) of the CGST Rules, 2017 requires a tax invoice number to be consecutive and at most 16 characters long. It can contain letters, digits, hyphens (-), and slashes (/). If your invoice naming series makes longer names, India GST validation stops you from saving the invoice.

INFO

The GST invoice number validation comes from the India Compliance app. Naming series are set up in the Frappe Framework's Document Naming Settings. See the India Compliance documentation for GST details.

Add a short naming series ​

  1. Open Document Naming Settings.
  2. In Select Transaction, select Sales Invoice.
  3. In the list of series, add a series that makes names of 16 characters or fewer, for example INV-.YY.-.#####, which makes INV-26-00001. Put it at the top of the list to make it the default.
  4. Clear User must always select, so that ERPNext uses the default series.
  5. Select Update.

Do the same for other GST documents that you number, for example Purchase Invoice for self-invoices, and credit and debit notes if they use their own series.

Count the characters of the full name, including the year and the counter. .YYYY. adds four characters and .YY. adds two.