Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
invoice layout
  • Loading branch information
Andreas Müller committed Apr 8, 2022
commit e7b7f2c964ff6d9d91868dfe28e3ece4c00e9bfd
9 changes: 7 additions & 2 deletions src/output/invoice.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ ${closing}
warnings += `\n* ${warning.data.iid} ${warning.data.title}: Difference between stats and notes of ${warning.time}.`;
warnings += `<br/>Stats: ${stats}, Notes: ${notes}`
});
this.warningHeadline('Warnings');
this.warning(warnings+'\n');
if(warnings != '') {
this.warningHeadline('Warnings');
this.warning(warnings+'\n');
}
}

makeIssues() {
Expand Down Expand Up @@ -131,6 +133,9 @@ ${closing}
}

makeRecords() {
this.out += `

<h1 style="page-break-before: always;"><br/><br/>Stundenrapport detailliert</h1>`;
this.headline('Details');

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