Most if not all businesses issue invoices in ascending numerical order. My idea is that a check will be made to see if the invoice number fits inside the existing invoice numbers or after the last one with the highest invoice number and that the date matches an invoice with a higher number and later / earlier date compared with others issued by the same company