From b643f7852f93f73843aa5f52f9b4545321713e10 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 5 Oct 2023 15:29:50 +0530 Subject: added invoice route (barebones) --- errors/errors.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'errors/errors.go') diff --git a/errors/errors.go b/errors/errors.go index 9a5a215..9fed3a3 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -54,13 +54,14 @@ var ( ErrBrandNotFound = errors.New("This Brand Does Not Exist") // 409 - ErrNonUniqueGSTIN = errors.New("GSTIN Must Be Unique") - ErrNonUniquePhone = errors.New("Phone Number Is Already In Use") - ErrNonUniqueEmail = errors.New("Email Address Is Already In Use") - ErrNonUniqueUsername = errors.New("Username Is Already In Use") - ErrNonUniqueWebsite = errors.New("Website Is Already In Use") - ErrNonUniqueBrandName = errors.New("Brand Name Is Already In Use") - ErrNonUniqueBrandItem = errors.New("Item With Same Name And Brand Already Exists") + ErrNonUniqueGSTIN = errors.New("GSTIN Must Be Unique") + ErrNonUniquePhone = errors.New("Phone Number Is Already In Use") + ErrNonUniqueEmail = errors.New("Email Address Is Already In Use") + ErrNonUniqueUsername = errors.New("Username Is Already In Use") + ErrNonUniqueWebsite = errors.New("Website Is Already In Use") + ErrNonUniqueBrandName = errors.New("Brand Name Is Already In Use") + ErrNonUniqueBrandItem = errors.New("Item With Same Name And Brand Already Exists") + ErrNonUniqueInvoiceNumber = errors.New("Invoice Number Must Be Unique") // 500 ErrInternalServerError = errors.New("Internal Server Error") -- cgit v1.2.3