I am building an application to generate invoices for my business using React and Firebase. I need each invoice to have an ID that represents the year, and the invoice number. For example 20220001, 20220002, 20230001. I'm just not sure how to accomplish this so I was wondering if anyone could help me find a solution.
I haven't tried much, since i'm new to firebase and want to make sure I do it right.