Skip to content

Commit e7b7f2c

Browse files
author
Andreas Müller
committed
invoice layout
1 parent f60c47c commit e7b7f2c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/output/invoice.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ ${closing}
102102
warnings += `\n* ${warning.data.iid} ${warning.data.title}: Difference between stats and notes of ${warning.time}.`;
103103
warnings += `<br/>Stats: ${stats}, Notes: ${notes}`
104104
});
105-
this.warningHeadline('Warnings');
106-
this.warning(warnings+'\n');
105+
if(warnings != '') {
106+
this.warningHeadline('Warnings');
107+
this.warning(warnings+'\n');
108+
}
107109
}
108110

109111
makeIssues() {
@@ -131,6 +133,9 @@ ${closing}
131133
}
132134

133135
makeRecords() {
136+
this.out += `
137+
138+
<h1 style="page-break-before: always;"><br/><br/>Stundenrapport detailliert</h1>`;
134139
this.headline('Details');
135140

136141
let times = [['date', 'project', 'iid', 'time']];

0 commit comments

Comments
 (0)