A new validation is added to check for duplicate invoice numbers. An error message will be displayed if users enter an invoice number that already exists in the system.