-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature/KAS-4629: updateBetreftContent & updateBeslissingenContent now generate text for bekrachtiging #2103
base: development
Are you sure you want to change the base?
Conversation
…w generate text for bekrachtiging
…nd-kaleidos into feature/KAS-4629-bekrachtingsformule-standaard-in-beslissingsfiche
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generateBetreft
is used also in minutes which this does not cover.
Is there a way we could only call generateBetreft
once in digital version?
Perhaps we could pass in subcase
instead of just subcaseName
and implement ratification logic in 1 spot rather then 2.
The ratification document could be collected in the generateBetreft
and added to the list of documents if present.
subcase?.subcaseName | ||
); | ||
let newBetreftContent; | ||
if (subcase?.isBekrachtiging) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
subcase?.isBekrachtiging
(sync getter) needs await subcase?.type
to resolve.
if (subcase?.isBekrachtiging) { | ||
newBeslissingHtmlContent = "De Vlaamse Regering bekrachtigt bovengenoemd decreet en beslist over te gaan tot de afkondiging ervan."; | ||
} else if (this.args.agendaitem.isApproval) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look into generateApprovalText
, we might want something similar for both decisions and minutes?
Also, scopecreep: Could we use generateApprovalText
here as well. duplicate code atm
newBetreftContent = await generateBetreft( | ||
subcase.shortTitle, | ||
null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would probably still want to agendaitem.shorttitle
here.
subcase title and agendaitem should be the same regardless
https://kanselarij.atlassian.net/browse/KAS-4629