Add the quoted amount and completion time to customer jobs

- 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]>
This commit is contained in:
2026-11-24 11:46:36 +02:00
co-authored by Claude Opus 5.5
parent d5cbf9d6eb
commit c149c56388
24 changed files with 284 additions and 15 deletions
+6
View File
@@ -1,6 +1,7 @@
<?php
return [
'vat_excluded' => '(ALV 0)',
'title' => 'Asiakastyöt',
'new' => 'Uusi asiakastyö',
'create_title' => 'Uusi asiakastyö',
@@ -125,6 +126,10 @@ return [
'payment_basis' => 'Maksuperuste',
'estimated_hours' => 'Arvioidut tunnit',
'estimated_hours_description' => 'Tunteina, esimerkiksi 7,5.',
'quoted_amount' => 'Budjetti / tarjoussumma',
'quoted_amount_input' => 'Budjetti / tarjoussumma (€, ALV 0)',
'quoted_amount_description' => 'Veroton summa, esim. 4500. Näkyy vain niille, joilla on oikeus tarjouksiin.',
'completed_at' => 'Valmistunut',
'customer_reference' => 'Asiakkaan viite (PO)',
'instructions' => 'Ohjeistus',
'instructions_description' => 'Työhön liittyvät asiat ja huomiot tekijöille.',
@@ -232,6 +237,7 @@ return [
'due_before_start' => 'Määräaika ei voi olla ennen alkamispäivää.',
'plan_ends_before_start' => 'Suunniteltu loppu ei voi olla ennen suunniteltua alkua.',
'invalid_hours' => 'Anna tunnit nollana tai suurempana, vartin tarkkuudella (esim. 7,25).',
'invalid_amount' => 'Anna summa euroina, esim. 4500 tai 4500,50 (enintään kaksi desimaalia).',
'invalid_tag' => 'Tagin pituus on 1–50 merkkiä.',
'invalid_link' => 'Anna linkille otsikko ja osoite, joka alkaa http:// tai https://.',
'invalid_reference' => 'Valinta ei ole enää käytettävissä. Valitse uudelleen.',