added sale invoice and updated the registration code generation workflow