Skip to content

Scopes: Adds scope to control if a user can print the declaration + adds support for printing supporting documents #6913

@euanmillar

Description

@euanmillar

Description

We currently have the option to print the declaration page from the review page. This ticket is to add scopes for this feature and also support printing of supporting documents

This ticket is to:

  • Adds record.print-declaration

  • Adds record.print-supporting-documents. If a user has this scope then it shows the checkbox 'Include supporting documents'

  • Each png/jpf supporting document appears below the declaration and prints on a separate page

  • If a supporting document is a pdf. Then on confirm open all pdfs in separate tabs

  • Refactors the Print declaration button into the 'Action menu'

  • On click of Print declaration. A model shows. If the users has the supporting document scope then a checkbox shows to include supporting documents or not.

  • Record audit history updated to show that the declaration had been printed.

Stretch goal?

  • Refactor Save declaration into the Action Menu
  • Refactor Delete declaration into the Action Menu
  • Refactor the Exit button to use the Icon variant

Design

image

https://www.figma.com/design/O6PevbBv0lApmXWYotR8sf/OpenCRVS-Design-Specifications-v2?node-id=19857-59410&t=0bYPxhyvHupHFWXg-1

ACs

GIVEN I am on declaration review page (Status = In Progress, Incomplete, Requires Update, In Review, Archived)
WHEN I have the scope record.print-declaration
THEN I can see Print declaration option in the Action menu

GIVEN I click Print declaration
WHEN I have the scope record.print-supporting-documents
THEN I show the checkbox 'Include supporting documents

GIVEN I click confirm to print the declaration
THEN open the preview view

GIVEN I click confirm to print the declaration with supporting documents
THEN show the images below the declaration form
Image

GIVEN I have printed the declaration
WHEN on Record Audit
THEN show a line item that the declaration was printed

Action: Declaration printed, Date and Time, User, Location
Action: Declaration printed with supporting documents, Date and Time, User, Location

Tech tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions