Added edit mode
This commit is contained in:
@@ -67,6 +67,8 @@ export function buildResume(day, entries, roundingMinutes = 15) {
|
||||
clients,
|
||||
lunch,
|
||||
workedMs,
|
||||
totalMs: Math.max(0, roundTs(fallbackEnd, roundingMinutes) -
|
||||
roundTs(day.startedTs ?? Math.min(...entries.map((e) => e.startTs), fallbackEnd), roundingMinutes)),
|
||||
omitted,
|
||||
};
|
||||
}
|
||||
@@ -99,7 +101,8 @@ export function resumeToText(resume) {
|
||||
lines.push('');
|
||||
}
|
||||
|
||||
lines.push(`Total travaillé : ${fmtDuration(resume.workedMs)}`);
|
||||
lines.push(`Travail hors repas : ${fmtDuration(resume.workedMs)}`);
|
||||
lines.push(`Total journée (repas compris) : ${fmtDuration(resume.totalMs)}`);
|
||||
|
||||
return lines.join('\n').replace(/\n{3,}/g, '\n\n').trim();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user