fix(historie): Uebernahme alter Zeiten, Rollenzone Externe, Reportfehler
Die Uebernahme der Harvest-Historie ist an drei Stellen haengen geblieben: - resolvePot hat abgelaufene Toepfe grundsaetzlich gesperrt. Fuer eine historische Buchung ist das falsch - dort zaehlt, ob der Topf am Leistungstag lief. Der Importweg setzt jetzt `historic`, das Volumen wird weiter geprueft, damit Ueberbuchungen auffallen. - In der SSO-Verwaltung fehlte die Ablagezone fuer die Rolle "Externe"; Konten liessen sich dort nicht zuordnen. - In buildProjectDetail und der Kundenauswertung stand ein Rest der Auslastungsaenderung (bisHeute/capTo) ohne Bezug im Scope. Beide Reportseiten liefen dadurch auf 500. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
79bfd561bd
commit
e962be41ea
@@ -84,7 +84,8 @@ router.post('/entries', async (req, res, next) => {
|
||||
if (Number(day.total) + minutes > 24 * 60) throw new Error('An diesem Tag waeren es mehr als 24 Stunden.');
|
||||
|
||||
const billable = isBillable(project, task);
|
||||
const pot = await resolvePot(conn, project, date, minutes, null, billable);
|
||||
// Historische Uebernahme: abgelaufene Toepfe nehmen ihre eigenen Zeiten noch an.
|
||||
const pot = await resolvePot(conn, project, date, minutes, null, billable, { historic: true });
|
||||
if (dryRun) return 0;
|
||||
const [result] = await conn.query(
|
||||
`INSERT INTO pulse_time_entries (user_id, project_id, task_id, pot_id, entry_date, minutes, note, billable, harvest_id)
|
||||
|
||||
Reference in New Issue
Block a user