Add Reports module with the hours by person report
Management's reports (spec 13) get their own module that reads the other modules through ports. The first report sums hours by person in a period, narrowed by service unit or customer, with breakdowns, a chart and CSV. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -30,11 +30,11 @@ it('gives an employee work, own entries and customers and sales but no managemen
|
||||
->and(menuLabels($user))->toContain('Uusi työ', 'Pikamyynti', 'Hinnasto');
|
||||
});
|
||||
|
||||
it('gives management the admin and maintenance groups but not user or company settings', function () {
|
||||
it('gives management the admin, reports and maintenance groups but not user or company settings', function () {
|
||||
$user = User::factory()->management()->create();
|
||||
|
||||
expect(menuGroupKeys($user))->toBe(['work', 'own', 'sales', 'admin', 'maintenance'])
|
||||
->and(menuLabels($user))->toContain('Laskutus', 'Pohjatiedot', 'Työnkulkupohjat')
|
||||
expect(menuGroupKeys($user))->toBe(['work', 'own', 'sales', 'admin', 'reports', 'maintenance'])
|
||||
->and(menuLabels($user))->toContain('Laskutus', 'Tunnit henkilöittäin', 'Pohjatiedot', 'Työnkulkupohjat')
|
||||
->and(menuLabels($user))->not->toContain('Käyttäjät', 'Yritystiedot');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user