added sale invoice and updated the registration code generation workflow

@chrisndodge I have added the functionality related to Ex-54. Kidnly review the changes.

Thanks