- Jobs get a budget / quoted amount (cents, VAT 0). Only users who may
see quotes see and edit it on the job form and page, and only they see
its changes in the history. Others' saves keep the stored amount: the
server decides whether the amount is set, not the browser.
- Jobs record when they were done: set when a job first reaches a status
that locks its hours, kept through the billing statuses, cleared when
management opens the lock. The billing export will use it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Time entries store who approved them and when. Approved hours are
locked: cells, task page edits and removals are refused.
- "Hyväksy viikko" in the weekly view approves the user's own week;
subcontractors' hours are approved by management.
- Management gets an approval page (unapproved weeks by person, recently
approved weeks) and can open anyone's week read-only to approve it or
cancel its approval, which only management may do.
- Only management may move a done job back to an earlier status, which
opens the lock on its hours and expenses; the history marks it.
- The Clock contract gets now() for approval times.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- New Expenses module: purchases (materials, other) with a description
and cost, and mileage priced with the price list's mileage rate.
- Who paid and whether the expense is billed are separate: an employee's
own payments are reimbursed elsewhere. A billed expense has a markup
and a billed amount, cost plus markup unless given.
- A job's expenses page lists, adds, edits and removes them; amounts of
others' expenses need the expenses permission, own ones always show.
Done jobs lock their expenses.
- The Kulut menu shows the user's own expenses by month. Management
records subcontractors' expenses, which they see but cannot change.
- The price list gets a default markup for new purchases.
- Number fields that update a calculation now use wire:model.live.blur:
in Livewire 4 plain .blur no longer sends the value to the server,
which also fixes the product form's VAT calculation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Columns had the same dark background as the page, so they now use a
darker background with a border. Card titles show the job number on
the first line next to the drag handle and the name below it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 8 (last of phase 1). New TimeTracking module:
- One entry per user, task and day (0.25-24 h in quarters, with a note);
the job and work type are copied from the task. A user's day cannot
exceed 24 h, and hours on a done, invoiced, billed or archived job
cannot be added or changed.
- Weekly sheet /time: tasks as rows (own open tasks, tasks with hours
that week, tasks added by search), days as columns, row, day and week
totals, week navigation. A cell saves on change and an empty cell
removes the entry; on phones one day at a time. Saves and errors are
announced, errors are tied to their cell.
- Task booking page /time/tasks/{task}: date, hours and note, added to
the day's entry; own entries with edit and remove.
- Anyone but subcontractors may book on any unlocked task;
subcontractors only on jobs they are attached to.
Jobs module:
- JobStatus::locksTime(), BookableTask and task queries for booking.
- A task with time entries cannot be removed (TaskUsage contract,
provided by TimeTracking); the job page links tasks to booking.
- The "involved in a job" rule is shared in JobInvolvement.
Spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 7, in the Jobs module (tasks are part of a job, and my jobs
needs their assignees):
- Tasks with name, work type, assignees, status (waiting, in progress,
in review, done), due date, estimated hours and description.
- Tasks can be added once the job is a quote request or later, not to
an archived job. The work type must belong to the job's service units
or the shared ones and be in use; assignees must be active. What a
task already has stays allowed after being taken out of use.
- Job page: a Tehtävät section with a status select per task (announced,
focus kept), edit links and delete with a confirmation dialog. Task
form with work types grouped by unit and service.
- Access: adding, changing and removing for everyone but subcontractors;
subcontractors may change task statuses on jobs they are attached to.
- Task assignees now count in my jobs (list, Kanban, job access).
- Spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 6:
- New page /jobs/board: one column per Kanban status (archived left
out), one card per job with number, name, customer, priority and due
date. Filters for my jobs (default), priority and service unit;
subcontractors see only their own cards and cannot move them.
- Cards move by dragging (Livewire wire:sort across column groups) or
with each card's status select, which works with the keyboard. Moves
go through ChangeJobStatus, so they are recorded in the job history;
the result is announced and focus returns to the moved card.
- Billing statuses only for management and the job's biller: the
jobs.set-billing-status gate now takes the biller's user id.
- Column links with counts at the top; columns wrap with the screen
width, so there is no sideways scrolling.
- CustomerJobQueries::board() and the biller on job summaries.
- Menu link and a link from the job list; spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 5:
- New page /jobs/quick (Pikavastaanotto): customer (search or quick
add), name, short description, service unit, responsible person and
starting status (Alustava or Prospekti) in one column. The job is
created with CreateCustomerJob, so numbering, reference checks and
history are the same as on the full form.
- After saving, the form clears for the next job (responsible person
and status stay), and a status message with the job number and links
to the job and its edit page takes focus.
- The customer search of the job form moves to a PicksCustomer trait and
an <x-jobs.customer-picker> component shared by both pages.
- Menu link and a list button for users who may open jobs; nav items
accept several route patterns.
- PHPStan ignores unused-trait only for Livewire Concerns, which are
used from excluded single-file components.
- Spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Phase 1, item 4. New Jobs module:
- Customer jobs with the spec's fields except money (phase 2): yearly
running numbers (2026-0001) from a locked counter row, service units,
schedule, kind, status, priority, payment basis, estimated hours,
PO reference, instructions, members (responsible, contact person,
customer contact, biller, billing unit, other members), tags shared
across jobs, and links.
- Every change is recorded field by field and shown on the job page with
names and Finnish dates.
- References to other modules are checked through their query
contracts: contact and billing unit must be the customer's own;
service units and users must be in use unless already on the job.
- Job list with search, filters and "my jobs" on by default; job form
with an accessible customer search and quick add; job page.
- Access: subcontractors see only jobs they are members of, read only;
billing statuses for management and the job's biller; archiving for
management.
Related changes:
- Customers: one internal customer (created by a migration) for internal
work; contacts and billing units used by a job cannot be removed.
- Users and Catalog: batch name lookups and active user options with
roles for other modules.
- <x-checkbox-group> component; spec and CLAUDE.md updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>