fix #8 increment invoice number and check unicity of the number