Add motion reco giver to motion PDF
Adds the text from "motion recommendet by" into the motion PDF for both normal motions and "StatuteAmendments"
This commit is contained in:
parent
eb21ae0136
commit
f22b81d7ad
@ -180,9 +180,17 @@ export class MotionPdfService {
|
|||||||
|
|
||||||
// recommendation
|
// recommendation
|
||||||
if (motion.recommendation && (!infoToExport || infoToExport.includes('recommendation'))) {
|
if (motion.recommendation && (!infoToExport || infoToExport.includes('recommendation'))) {
|
||||||
|
let recommendationByText: string;
|
||||||
|
|
||||||
|
if (motion.isStatuteAmendment()) {
|
||||||
|
recommendationByText = this.configService.instant('motions_statute_recommendations_by');
|
||||||
|
} else {
|
||||||
|
recommendationByText = this.configService.instant('motions_recommendations_by');
|
||||||
|
}
|
||||||
|
|
||||||
metaTableBody.push([
|
metaTableBody.push([
|
||||||
{
|
{
|
||||||
text: `${this.translate.instant('Recommendation')}:`,
|
text: `${recommendationByText}:`,
|
||||||
style: 'boldText'
|
style: 'boldText'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user