Преглед изворни кода

Cancel an invoice that went out instead of deleting it (#684)

* Cancel an invoice that went out instead of deleting it

* Expect the refund line as payments now print it

* Keep a cancelled invoice final: guard status, payments, clocks and reissue

* Give the cancel test's payment the row lock and paid sum it reads now
Bernt Christian Egeland пре 2 дана
родитељ
комит
4c9de10de2
100 измењених фајлова са 1468 додато и 159 уклоњено
  1. 92 0
      e2e/specs/invoices/cancel-issued.spec.ts
  2. 5 2
      messages/bg/audit.json
  3. 2 1
      messages/bg/billing.json
  4. 3 1
      messages/bg/pdf.json
  5. 4 2
      messages/bg/portal.json
  6. 31 3
      messages/bg/service.json
  7. 3 1
      messages/bg/share.json
  8. 5 2
      messages/de/audit.json
  9. 2 1
      messages/de/billing.json
  10. 3 1
      messages/de/pdf.json
  11. 4 2
      messages/de/portal.json
  12. 31 3
      messages/de/service.json
  13. 3 1
      messages/de/share.json
  14. 5 2
      messages/en/audit.json
  15. 1 0
      messages/en/billing.json
  16. 3 1
      messages/en/pdf.json
  17. 3 1
      messages/en/portal.json
  18. 31 3
      messages/en/service.json
  19. 3 1
      messages/en/share.json
  20. 5 2
      messages/es/audit.json
  21. 2 1
      messages/es/billing.json
  22. 3 1
      messages/es/pdf.json
  23. 4 2
      messages/es/portal.json
  24. 31 3
      messages/es/service.json
  25. 3 1
      messages/es/share.json
  26. 5 2
      messages/fr/audit.json
  27. 2 1
      messages/fr/billing.json
  28. 3 1
      messages/fr/pdf.json
  29. 4 2
      messages/fr/portal.json
  30. 31 3
      messages/fr/service.json
  31. 3 1
      messages/fr/share.json
  32. 5 2
      messages/it/audit.json
  33. 2 1
      messages/it/billing.json
  34. 3 1
      messages/it/pdf.json
  35. 4 2
      messages/it/portal.json
  36. 31 3
      messages/it/service.json
  37. 3 1
      messages/it/share.json
  38. 5 2
      messages/lt/audit.json
  39. 2 1
      messages/lt/billing.json
  40. 3 1
      messages/lt/pdf.json
  41. 4 2
      messages/lt/portal.json
  42. 31 3
      messages/lt/service.json
  43. 3 1
      messages/lt/share.json
  44. 5 2
      messages/nb/audit.json
  45. 2 1
      messages/nb/billing.json
  46. 3 1
      messages/nb/pdf.json
  47. 4 2
      messages/nb/portal.json
  48. 31 3
      messages/nb/service.json
  49. 3 1
      messages/nb/share.json
  50. 5 2
      messages/nl/audit.json
  51. 2 1
      messages/nl/billing.json
  52. 3 1
      messages/nl/pdf.json
  53. 4 2
      messages/nl/portal.json
  54. 31 3
      messages/nl/service.json
  55. 3 1
      messages/nl/share.json
  56. 5 2
      messages/pl/audit.json
  57. 2 1
      messages/pl/billing.json
  58. 3 1
      messages/pl/pdf.json
  59. 4 2
      messages/pl/portal.json
  60. 31 3
      messages/pl/service.json
  61. 3 1
      messages/pl/share.json
  62. 5 2
      messages/pt-BR/audit.json
  63. 2 1
      messages/pt-BR/billing.json
  64. 3 1
      messages/pt-BR/pdf.json
  65. 4 2
      messages/pt-BR/portal.json
  66. 31 3
      messages/pt-BR/service.json
  67. 3 1
      messages/pt-BR/share.json
  68. 5 2
      messages/pt-PT/audit.json
  69. 2 1
      messages/pt-PT/billing.json
  70. 3 1
      messages/pt-PT/pdf.json
  71. 4 2
      messages/pt-PT/portal.json
  72. 31 3
      messages/pt-PT/service.json
  73. 3 1
      messages/pt-PT/share.json
  74. 5 2
      messages/ru/audit.json
  75. 2 1
      messages/ru/billing.json
  76. 3 1
      messages/ru/pdf.json
  77. 4 2
      messages/ru/portal.json
  78. 31 3
      messages/ru/service.json
  79. 3 1
      messages/ru/share.json
  80. 5 2
      messages/tr/audit.json
  81. 2 1
      messages/tr/billing.json
  82. 3 1
      messages/tr/pdf.json
  83. 4 2
      messages/tr/portal.json
  84. 31 3
      messages/tr/service.json
  85. 3 1
      messages/tr/share.json
  86. 35 0
      src/__tests__/api/tech-helper-jobs.test.ts
  87. 1 0
      src/__tests__/api/tech-required-meters.test.ts
  88. 1 0
      src/__tests__/app/share/public-payload.test.tsx
  89. 10 2
      src/__tests__/features/custom-fields/delete-removes-values.test.ts
  90. 1 1
      src/__tests__/features/integrations/backup-actions.test.ts
  91. 449 0
      src/__tests__/features/invoices/cancel-not-delete.test.ts
  92. 131 0
      src/__tests__/features/invoices/cancelled-invoice-print.test.ts
  93. 2 1
      src/__tests__/features/meters/required-meters-paths.test.ts
  94. 4 1
      src/__tests__/features/portal/portal-shared-actions.test.ts
  95. 24 3
      src/__tests__/features/reports/completed-only.test.ts
  96. 25 0
      src/__tests__/features/reports/report-date-basis.test.ts
  97. 1 4
      src/__tests__/features/search/settings-items.test.ts
  98. 10 0
      src/__tests__/features/time-tracking/start-work-moves-job.test.ts
  99. 2 2
      src/__tests__/features/vehicles/work-orders-promised-sort.test.ts
  100. 10 7
      src/__tests__/features/work-order-statuses/status-rules.test.ts

+ 92 - 0
e2e/specs/invoices/cancel-issued.spec.ts

@@ -0,0 +1,92 @@
+import { expect, type Page, test } from '@playwright/test'
+import { setTax } from '../../support/settings'
+import { addLabor, newWorkOrder, saveWorkOrder, seededVehicleUrl } from '../../support/work-order'
+
+/**
+ * An invoice that went out is cancelled, not deleted. Most countries want
+ * invoice numbers without gaps, so once money is taken against a job (which
+ * issues its invoice) the work order's menu no longer offers Delete: it
+ * offers Cancel invoice, which keeps the job and its number, says how much
+ * was paid, and can book what is handed back as a refund.
+ *
+ * Serial: one job, paid, then cancelled.
+ */
+
+test.describe.configure({ mode: 'serial' })
+
+const stamp = Date.now()
+let jobUrl = ''
+
+async function openMenu(page: Page) {
+  await expect(async () => {
+    await page.getByRole('button', { name: 'More actions' }).click()
+    await expect(page.getByRole('menu')).toBeVisible({ timeout: 2_000 })
+  }).toPass({ timeout: 30_000 })
+}
+
+test.beforeAll(async ({ browser }) => {
+  const page = await browser.newPage({ storageState: 'e2e/.auth/owner.json' })
+  await setTax(page, { enabled: false })
+  const vehicleUrl = await seededVehicleUrl(page)
+  jobUrl = await newWorkOrder(page, vehicleUrl, `E2E cancel invoice ${stamp}`)
+  await addLabor(page, { description: 'Replace brake pads', hours: 2, rate: 150 })
+  await saveWorkOrder(page)
+  await page.close()
+})
+
+test('a draft can still be deleted', async ({ page }) => {
+  await page.goto(jobUrl)
+  await openMenu(page)
+  await expect(page.getByRole('menuitem', { name: 'Delete' })).toBeVisible()
+  await expect(page.getByRole('menuitem', { name: 'Cancel invoice' })).toHaveCount(0)
+  await page.keyboard.press('Escape')
+})
+
+test('a paid invoice is cancelled with a refund, and keeps its number', async ({ page }) => {
+  await page.goto(jobUrl)
+  // Money against the job issues its invoice.
+  const panel = page.getByTestId('payments-section')
+  await expect(async () => {
+    await panel.getByRole('button', { name: 'Record Payment', exact: true }).click()
+    await expect(page.locator('#paymentAmount')).toBeVisible({ timeout: 2_000 })
+  }).toPass({ timeout: 30_000 })
+  await page.locator('#paymentAmount').fill('300')
+  await panel.getByRole('button', { name: 'Save Payment', exact: true }).click()
+  await expect(page.getByText('Payment recorded', { exact: true })).toBeVisible()
+  // The customer is offered a message about the payment; there is no mail or
+  // SMS provider here, so the offer is declined once it has appeared.
+  const notify = page.getByRole('dialog').filter({ hasText: /^Notify / })
+  const offered = await notify
+    .waitFor({ state: 'visible', timeout: 5_000 })
+    .then(() => true)
+    .catch(() => false)
+  if (offered) await notify.getByRole('button', { name: 'Skip', exact: true }).click()
+  await expect(notify).toBeHidden()
+
+  const number = await page.getByLabel('Invoice Number').inputValue()
+  expect(number).not.toBe('')
+
+  await openMenu(page)
+  await expect(page.getByRole('menuitem', { name: 'Delete' })).toHaveCount(0)
+  await page.getByRole('menuitem', { name: 'Cancel invoice' }).click()
+
+  const dialog = page.getByTestId('cancel-invoice-dialog')
+  await expect(dialog).toContainText(`Cancel invoice ${number}?`)
+  await expect(dialog.getByTestId('cancel-invoice-paid')).toContainText('$300.00')
+  await dialog.getByLabel('Record a refund of money handed back to the customer').check()
+  await expect(dialog.getByLabel('Refund amount')).toHaveValue('300.00')
+  await dialog.getByRole('button', { name: 'Cancel invoice', exact: true }).click()
+
+  await expect(page.getByText('Invoice cancelled', { exact: true })).toBeVisible()
+  await expect(page.getByTestId('cancelled-invoice-banner')).toContainText(
+    `Invoice ${number} is cancelled`
+  )
+  await expect(page.getByTestId('service-status')).toHaveText('Cancelled')
+  // The refund is a payment of its own, taking the money back off.
+  await expect(panel).toContainText('-$300.00')
+
+  // Final: the menu offers neither.
+  await openMenu(page)
+  await expect(page.getByRole('menuitem', { name: 'Delete' })).toHaveCount(0)
+  await expect(page.getByRole('menuitem', { name: 'Cancel invoice' })).toHaveCount(0)
+})

+ 5 - 2
messages/bg/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Изтрито оборудване",
     "equipment_delete": "Изтрито оборудване",
     "platform_deleteUser": "Изтрит потребител",
     "platform_deleteUser": "Изтрит потребител",
     "platform_grantSuperAdmin": "Даден супер администратор",
     "platform_grantSuperAdmin": "Даден супер администратор",
-    "platform_revokeSuperAdmin": "Премахнат супер администратор"
+    "platform_revokeSuperAdmin": "Премахнат супер администратор",
+    "service_cancel": "Анулирана фактура"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Двуфакторното удостоверяване е включено",
     "auth_twoFactorEnabled": "Двуфакторното удостоверяване е включено",
@@ -424,6 +425,8 @@
     "equipment_meter": "Добавен е броячът {meter} към {name} на {vehicle}",
     "equipment_meter": "Добавен е броячът {meter} към {name} на {vehicle}",
     "platform_deleteUser": "Изтрит потребител {name} ({email})",
     "platform_deleteUser": "Изтрит потребител {name} ({email})",
     "platform_grantSuperAdmin": "{name} ({email}) стана супер администратор",
     "platform_grantSuperAdmin": "{name} ({email}) стана супер администратор",
-    "platform_revokeSuperAdmin": "Премахнати правата на супер администратор на {name} ({email})"
+    "platform_revokeSuperAdmin": "Премахнати правата на супер администратор на {name} ({email})",
+    "service_cancel": "Анулирана фактура {ref}",
+    "service_cancelRefund": "Анулирана фактура {ref} и записано възстановяване на {amount}"
   }
   }
 }
 }

+ 2 - 1
messages/bg/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Непрегледани",
     "filterUnviewed": "Непрегледани",
     "filterUnviewedHint": "Фактури, които са изпратени, но никога не са отваряни",
     "filterUnviewedHint": "Фактури, които са изпратени, но никога не са отваряни",
     "filterCompleted": "Само завършени",
     "filterCompleted": "Само завършени",
-    "filterCompletedHint": "Показва само работните поръчки, отбелязани като завършени. Изборът се запазва за следващия път."
+    "filterCompletedHint": "Показва само работните поръчки, отбелязани като завършени. Изборът се запазва за следващия път.",
+    "statusCancelled": "Анулирана"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Периодични фактури",
     "title": "Периодични фактури",

+ 3 - 1
messages/bg/pdf.json

@@ -90,7 +90,9 @@
     "org": "Организация: {org}",
     "org": "Организация: {org}",
     "customFieldsTitle": "Допълнителна информация",
     "customFieldsTitle": "Допълнителна информация",
     "telegramConnect": "Свържете се с нас в Telegram",
     "telegramConnect": "Свържете се с нас в Telegram",
-    "taxRegistrationLabel": "№ по {name}"
+    "taxRegistrationLabel": "№ по {name}",
+    "cancelledTitle": "ФАКТУРА (АНУЛИРАНА)",
+    "cancelledNotice": "АНУЛИРАНА"
   },
   },
   "quote": {
   "quote": {
     "title": "ОФЕРТА",
     "title": "ОФЕРТА",

+ 4 - 2
messages/bg/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Падеж",
     "summaryDue": "Падеж",
     "summaryReference": "Ваша референция / № на поръчка",
     "summaryReference": "Ваша референция / № на поръчка",
     "summaryDate": "Дата",
     "summaryDate": "Дата",
-    "fullInvoice": "Пълна фактура"
+    "fullInvoice": "Пълна фактура",
+    "cancelled": "Анулирана"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Оферти",
     "title": "Оферти",
@@ -643,7 +644,8 @@
       "scheduled": "Планиран",
       "scheduled": "Планиран",
       "inProgress": "В изпълнение",
       "inProgress": "В изпълнение",
       "waitingParts": "Изчакват се резервни части",
       "waitingParts": "Изчакват се резервни части",
-      "completed": "Завършен"
+      "completed": "Завършен",
+      "cancelled": "Анулирана"
     },
     },
     "request": {
     "request": {
       "pending": "Очаква се отговор",
       "pending": "Очаква се отговор",

+ 31 - 3
messages/bg/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Актуализирай фактурата",
     "designRefreshConfirm": "Актуализирай фактурата",
     "designRefreshDone": "Фактурата вече се отпечатва с днешните данни",
     "designRefreshDone": "Фактурата вече се отпечатва с днешните данни",
     "designRefreshFailed": "Фактурата не можа да бъде актуализирана",
     "designRefreshFailed": "Фактурата не можа да бъде актуализирана",
-    "printWorkOrder": "Отпечатай работната поръчка"
+    "printWorkOrder": "Отпечатай работната поръчка",
+    "cancelInvoice": "Анулиране на фактурата"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Основна информация",
     "title": "Основна информация",
@@ -104,7 +105,8 @@
       "pending": "В очакване",
       "pending": "В очакване",
       "in_progress": "В процес",
       "in_progress": "В процес",
       "waiting_parts": "Изчакване на резервни части",
       "waiting_parts": "Изчакване на резервни части",
-      "completed": "Завършено"
+      "completed": "Завършено",
+      "cancelled": "Анулирана"
     },
     },
     "searchVehicles": "Търсене на превозни средства...",
     "searchVehicles": "Търсене на превозни средства...",
     "noVehicleFound": "Не е намерено превозно средство.",
     "noVehicleFound": "Не е намерено превозно средство.",
@@ -377,6 +379,7 @@
     "received": "Получени плащания",
     "received": "Получени плащания",
     "noneYet": "Все още няма плащания.",
     "noneYet": "Все още няма плащания.",
     "balanceDue": "Оставаща сума",
     "balanceDue": "Оставаща сума",
+    "cancelledNotice": "Анулирана: по тази фактура нищо не се дължи. Плащанията и възстановяванията остават в списъка по-горе.",
     "aboveBalance": "Оставащата сума е {amount}. Плащането не може да е по-голямо от нея.",
     "aboveBalance": "Оставащата сума е {amount}. Плащането не може да е по-голямо от нея.",
     "nothingDue": "По тази фактура няма дължима сума.",
     "nothingDue": "По тази фактура няма дължима сума.",
     "refund": "Възстановяване"
     "refund": "Възстановяване"
@@ -756,7 +759,9 @@
       "preview": "Преглед на фактурата",
       "preview": "Преглед на фактурата",
       "previewShort": "Преглед",
       "previewShort": "Преглед",
       "send": "Изпрати на клиента",
       "send": "Изпрати на клиента",
-      "sendShort": "Изпрати"
+      "sendShort": "Изпрати",
+      "cancelled": "Анулирана",
+      "nothingOwed": "Нищо не се дължи"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Повече информация",
       "more": "Повече информация",
@@ -886,5 +891,28 @@
     "hint": "Останете, за да отстраните проблема, или излезте и загубете промените след последното запазване.",
     "hint": "Останете, за да отстраните проблема, или излезте и загубете промените след последното запазване.",
     "stay": "Оставане и коригиране",
     "stay": "Оставане и коригиране",
     "leave": "Излизане без запазване"
     "leave": "Излизане без запазване"
+  },
+  "cancelInvoice": {
+    "title": "Да се анулира ли фактура {number}?",
+    "titleNoNumber": "Да се анулира ли тази фактура?",
+    "description": "Тази фактура вече е изпратена на клиента, затова не може да бъде изтрита: в повечето държави номерата на фактурите трябва да са без пропуски.",
+    "pointKept": "Поръчката се запазва и се маркира като анулирана. Фактурата запазва номера си и вече не може да се променя.",
+    "pointShown": "Фактурата, споделената връзка, PDF файлът и клиентският портал я показват като анулирана.",
+    "pointReports": "Тя вече не се отчита в приходите, данъците или дължимото.",
+    "pointLedger": "Свързаната счетоводна система анулира своето копие, където е възможно. Копие с плащания се оставя на счетоводителя за кредитно известие.",
+    "paidNotice": "Клиентът е платил {amount} по тази фактура.",
+    "recordRefund": "Запиши възстановяване на сума, върната на клиента",
+    "refundAmount": "Сума за възстановяване",
+    "refundMethod": "Начин на възстановяване",
+    "refundTooMuch": "Възстановяването не може да е повече от {amount}.",
+    "refundNote": "Възстановяване по анулирана фактура",
+    "noRefundHint": "Без възстановяване плащанията остават записани както са.",
+    "keep": "Запази фактурата",
+    "confirm": "Анулирай фактурата",
+    "done": "Фактурата е анулирана",
+    "failed": "Фактурата не можа да бъде анулирана",
+    "bannerTitle": "Фактура {number} е анулирана",
+    "bannerTitleNoNumber": "Тази фактура е анулирана",
+    "bannerBody": "Тя запазва номера си и вече не може да се променя. Клиентът я вижда маркирана като анулирана."
   }
   }
 }
 }

+ 3 - 1
messages/bg/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Средна",
     "findingSeverityNeedsWork": "Средна",
     "findingSeverityMonitor": "Ниска",
     "findingSeverityMonitor": "Ниска",
     "tel": "Тел.: {phone}",
     "tel": "Тел.: {phone}",
-    "customFields": "Допълнителна информация"
+    "customFields": "Допълнителна информация",
+    "cancelledTitle": "Тази фактура е анулирана",
+    "cancelledBody": "По нея нищо не се дължи. Свържете се със сервиза, ако имате въпроси."
   },
   },
   "quote": {
   "quote": {
     "title": "Оферта",
     "title": "Оферта",

+ 5 - 2
messages/de/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Ausrüstung gelöscht",
     "equipment_delete": "Ausrüstung gelöscht",
     "platform_deleteUser": "Benutzer gelöscht",
     "platform_deleteUser": "Benutzer gelöscht",
     "platform_grantSuperAdmin": "Super-Admin erteilt",
     "platform_grantSuperAdmin": "Super-Admin erteilt",
-    "platform_revokeSuperAdmin": "Super-Admin entzogen"
+    "platform_revokeSuperAdmin": "Super-Admin entzogen",
+    "service_cancel": "Rechnung storniert"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Zwei-Faktor-Anmeldung aktiviert",
     "auth_twoFactorEnabled": "Zwei-Faktor-Anmeldung aktiviert",
@@ -424,6 +425,8 @@
     "equipment_meter": "Zähler {meter} zu {name} an {vehicle} hinzugefügt",
     "equipment_meter": "Zähler {meter} zu {name} an {vehicle} hinzugefügt",
     "platform_deleteUser": "Benutzer {name} ({email}) gelöscht",
     "platform_deleteUser": "Benutzer {name} ({email}) gelöscht",
     "platform_grantSuperAdmin": "{name} ({email}) zum Super-Admin gemacht",
     "platform_grantSuperAdmin": "{name} ({email}) zum Super-Admin gemacht",
-    "platform_revokeSuperAdmin": "{name} ({email}) den Super-Admin entzogen"
+    "platform_revokeSuperAdmin": "{name} ({email}) den Super-Admin entzogen",
+    "service_cancel": "Rechnung {ref} storniert",
+    "service_cancelRefund": "Rechnung {ref} storniert und eine Erstattung von {amount} erfasst"
   }
   }
 }
 }

+ 2 - 1
messages/de/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Nicht geöffnet",
     "filterUnviewed": "Nicht geöffnet",
     "filterUnviewedHint": "Rechnungen, die gesendet, aber nie geöffnet wurden",
     "filterUnviewedHint": "Rechnungen, die gesendet, aber nie geöffnet wurden",
     "filterCompleted": "Nur abgeschlossene",
     "filterCompleted": "Nur abgeschlossene",
-    "filterCompletedHint": "Nur als abgeschlossen markierte Aufträge anzeigen. Wird für das nächste Mal gespeichert."
+    "filterCompletedHint": "Nur als abgeschlossen markierte Aufträge anzeigen. Wird für das nächste Mal gespeichert.",
+    "statusCancelled": "Storniert"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Wiederkehrend",
     "title": "Wiederkehrend",

+ 3 - 1
messages/de/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Einheit / Stunden",
     "qtyOrHours": "Einheit / Stunden",
     "customFieldsTitle": "Zusätzliche Informationen",
     "customFieldsTitle": "Zusätzliche Informationen",
     "telegramConnect": "Chatten Sie mit uns auf Telegram",
     "telegramConnect": "Chatten Sie mit uns auf Telegram",
-    "taxRegistrationLabel": "{name}-Nr."
+    "taxRegistrationLabel": "{name}-Nr.",
+    "cancelledTitle": "RECHNUNG (STORNIERT)",
+    "cancelledNotice": "STORNIERT"
   },
   },
   "quote": {
   "quote": {
     "title": "ANGEBOT",
     "title": "ANGEBOT",

+ 4 - 2
messages/de/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Fälligkeitsdatum",
     "summaryDue": "Fälligkeitsdatum",
     "summaryReference": "Ihre Referenz / Bestellnr.",
     "summaryReference": "Ihre Referenz / Bestellnr.",
     "summaryDate": "Datum",
     "summaryDate": "Datum",
-    "fullInvoice": "Die vollständige Rechnung"
+    "fullInvoice": "Die vollständige Rechnung",
+    "cancelled": "Storniert"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Angebote",
     "title": "Angebote",
@@ -643,7 +644,8 @@
       "scheduled": "Geplant",
       "scheduled": "Geplant",
       "inProgress": "In Arbeit",
       "inProgress": "In Arbeit",
       "waitingParts": "Wartet auf Teile",
       "waitingParts": "Wartet auf Teile",
-      "completed": "Abgeschlossen"
+      "completed": "Abgeschlossen",
+      "cancelled": "Storniert"
     },
     },
     "request": {
     "request": {
       "pending": "Wartet auf Antwort",
       "pending": "Wartet auf Antwort",

+ 31 - 3
messages/de/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Rechnung aktualisieren",
     "designRefreshConfirm": "Rechnung aktualisieren",
     "designRefreshDone": "Diese Rechnung wird jetzt mit den aktuellen Angaben gedruckt",
     "designRefreshDone": "Diese Rechnung wird jetzt mit den aktuellen Angaben gedruckt",
     "designRefreshFailed": "Rechnung konnte nicht aktualisiert werden",
     "designRefreshFailed": "Rechnung konnte nicht aktualisiert werden",
-    "printWorkOrder": "Arbeitsauftrag drucken"
+    "printWorkOrder": "Arbeitsauftrag drucken",
+    "cancelInvoice": "Rechnung stornieren"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Grundlegende Informationen",
     "title": "Grundlegende Informationen",
@@ -104,7 +105,8 @@
       "pending": "Ausstehend",
       "pending": "Ausstehend",
       "in_progress": "In Bearbeitung",
       "in_progress": "In Bearbeitung",
       "waiting_parts": "Warten auf Teile",
       "waiting_parts": "Warten auf Teile",
-      "completed": "Abgeschlossen"
+      "completed": "Abgeschlossen",
+      "cancelled": "Storniert"
     },
     },
     "searchVehicles": "Fahrzeuge durchsuchen...",
     "searchVehicles": "Fahrzeuge durchsuchen...",
     "noVehicleFound": "Kein Fahrzeug gefunden.",
     "noVehicleFound": "Kein Fahrzeug gefunden.",
@@ -377,6 +379,7 @@
     "received": "Erhaltene Zahlungen",
     "received": "Erhaltene Zahlungen",
     "noneYet": "Noch nichts bezahlt.",
     "noneYet": "Noch nichts bezahlt.",
     "balanceDue": "Ausstehend",
     "balanceDue": "Ausstehend",
+    "cancelledNotice": "Storniert: Auf diese Rechnung ist nichts zu zahlen. Zahlungen und Erstattungen bleiben oben aufgeführt.",
     "aboveBalance": "Offen sind {amount}. Eine Zahlung darf nicht höher sein.",
     "aboveBalance": "Offen sind {amount}. Eine Zahlung darf nicht höher sein.",
     "nothingDue": "Auf dieser Rechnung ist nichts mehr offen.",
     "nothingDue": "Auf dieser Rechnung ist nichts mehr offen.",
     "refund": "Erstattung"
     "refund": "Erstattung"
@@ -756,7 +759,9 @@
       "preview": "Rechnungsvorschau",
       "preview": "Rechnungsvorschau",
       "previewShort": "Vorschau",
       "previewShort": "Vorschau",
       "send": "An Kunden senden",
       "send": "An Kunden senden",
-      "sendShort": "Senden"
+      "sendShort": "Senden",
+      "cancelled": "Storniert",
+      "nothingOwed": "Nichts offen"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Mehr Infos",
       "more": "Mehr Infos",
@@ -886,5 +891,28 @@
     "hint": "Bleiben Sie, um es zu korrigieren, oder verlassen Sie die Seite und verlieren Sie die Änderungen seit dem letzten Speichern.",
     "hint": "Bleiben Sie, um es zu korrigieren, oder verlassen Sie die Seite und verlieren Sie die Änderungen seit dem letzten Speichern.",
     "stay": "Bleiben und korrigieren",
     "stay": "Bleiben und korrigieren",
     "leave": "Ohne Speichern verlassen"
     "leave": "Ohne Speichern verlassen"
+  },
+  "cancelInvoice": {
+    "title": "Rechnung {number} stornieren?",
+    "titleNoNumber": "Diese Rechnung stornieren?",
+    "description": "Diese Rechnung ist beim Kunden angekommen und kann daher nicht gelöscht werden: In den meisten Ländern müssen Rechnungsnummern lückenlos sein.",
+    "pointKept": "Der Auftrag bleibt erhalten und wird als storniert markiert. Die Rechnung behält ihre Nummer und kann nicht mehr geändert werden.",
+    "pointShown": "Rechnung, geteilter Link, PDF und Kundenportal zeigen sie als storniert an.",
+    "pointReports": "Sie zählt nicht mehr zu Umsatz, Steuer oder offenen Beträgen.",
+    "pointLedger": "Ein verbundenes Buchhaltungssystem storniert seine Kopie, wo es möglich ist. Eine Kopie mit Zahlungen bleibt für eine Gutschrift durch die Buchhaltung stehen.",
+    "paidNotice": "Der Kunde hat {amount} auf diese Rechnung bezahlt.",
+    "recordRefund": "Erstattung des an den Kunden zurückgezahlten Betrags erfassen",
+    "refundAmount": "Erstattungsbetrag",
+    "refundMethod": "Erstattet per",
+    "refundTooMuch": "Eine Erstattung kann nicht höher als {amount} sein.",
+    "refundNote": "Erstattung zur stornierten Rechnung",
+    "noRefundHint": "Ohne Erstattung bleiben die Zahlungen so erfasst, wie sie sind.",
+    "keep": "Rechnung behalten",
+    "confirm": "Rechnung stornieren",
+    "done": "Rechnung storniert",
+    "failed": "Die Rechnung konnte nicht storniert werden",
+    "bannerTitle": "Rechnung {number} ist storniert",
+    "bannerTitleNoNumber": "Diese Rechnung ist storniert",
+    "bannerBody": "Sie behält ihre Nummer und kann nicht mehr geändert werden. Der Kunde sieht sie als storniert."
   }
   }
 }
 }

+ 3 - 1
messages/de/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Mittel",
     "findingSeverityNeedsWork": "Mittel",
     "findingSeverityMonitor": "Niedrig",
     "findingSeverityMonitor": "Niedrig",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Weitere Angaben"
+    "customFields": "Weitere Angaben",
+    "cancelledTitle": "Diese Rechnung wurde storniert",
+    "cancelledBody": "Darauf ist nichts zu zahlen. Wenden Sie sich bei Fragen an die Werkstatt."
   },
   },
   "quote": {
   "quote": {
     "title": "Angebot",
     "title": "Angebot",

+ 5 - 2
messages/en/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Deleted Equipment",
     "equipment_delete": "Deleted Equipment",
     "platform_deleteUser": "Deleted User",
     "platform_deleteUser": "Deleted User",
     "platform_grantSuperAdmin": "Granted Super Admin",
     "platform_grantSuperAdmin": "Granted Super Admin",
-    "platform_revokeSuperAdmin": "Removed Super Admin"
+    "platform_revokeSuperAdmin": "Removed Super Admin",
+    "service_cancel": "Cancelled Invoice"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Turned on two-factor sign-in",
     "auth_twoFactorEnabled": "Turned on two-factor sign-in",
@@ -424,6 +425,8 @@
     "equipment_meter": "Added meter {meter} to {name} on {vehicle}",
     "equipment_meter": "Added meter {meter} to {name} on {vehicle}",
     "platform_deleteUser": "Deleted the user {name} ({email})",
     "platform_deleteUser": "Deleted the user {name} ({email})",
     "platform_grantSuperAdmin": "Made {name} ({email}) a super admin",
     "platform_grantSuperAdmin": "Made {name} ({email}) a super admin",
-    "platform_revokeSuperAdmin": "Removed super admin from {name} ({email})"
+    "platform_revokeSuperAdmin": "Removed super admin from {name} ({email})",
+    "service_cancel": "Cancelled invoice {ref}",
+    "service_cancelRefund": "Cancelled invoice {ref} and recorded a refund of {amount}"
   }
   }
 }
 }

+ 1 - 0
messages/en/billing.json

@@ -9,6 +9,7 @@
     "statusPaid": "Paid",
     "statusPaid": "Paid",
     "statusPartial": "Partial",
     "statusPartial": "Partial",
     "statusUnpaid": "Unpaid",
     "statusUnpaid": "Unpaid",
+    "statusCancelled": "Cancelled",
     "searchPlaceholder": "Search invoices...",
     "searchPlaceholder": "Search invoices...",
     "search": "Search",
     "search": "Search",
     "columnInvoice": "Invoice #",
     "columnInvoice": "Invoice #",

+ 3 - 1
messages/en/pdf.json

@@ -90,7 +90,9 @@
     "org": "Org: {org}",
     "org": "Org: {org}",
     "customFieldsTitle": "Additional Information",
     "customFieldsTitle": "Additional Information",
     "telegramConnect": "Chat with us on Telegram",
     "telegramConnect": "Chat with us on Telegram",
-    "taxRegistrationLabel": "{name} No."
+    "taxRegistrationLabel": "{name} No.",
+    "cancelledTitle": "INVOICE (CANCELLED)",
+    "cancelledNotice": "CANCELLED"
   },
   },
   "quote": {
   "quote": {
     "title": "QUOTE",
     "title": "QUOTE",

+ 3 - 1
messages/en/portal.json

@@ -349,6 +349,7 @@
     "partial": "Partly paid",
     "partial": "Partly paid",
     "unpaid": "Unpaid",
     "unpaid": "Unpaid",
     "overdue": "Overdue",
     "overdue": "Overdue",
+    "cancelled": "Cancelled",
     "toPayTitle": "Left to pay",
     "toPayTitle": "Left to pay",
     "toPayCount": "{count, plural, one {on # invoice} other {on # invoices}}",
     "toPayCount": "{count, plural, one {on # invoice} other {on # invoices}}",
     "toPayNextDue": "Next due {date}",
     "toPayNextDue": "Next due {date}",
@@ -643,7 +644,8 @@
       "scheduled": "Scheduled",
       "scheduled": "Scheduled",
       "inProgress": "In progress",
       "inProgress": "In progress",
       "waitingParts": "Waiting for parts",
       "waitingParts": "Waiting for parts",
-      "completed": "Completed"
+      "completed": "Completed",
+      "cancelled": "Cancelled"
     },
     },
     "request": {
     "request": {
       "pending": "Waiting for an answer",
       "pending": "Waiting for an answer",

+ 31 - 3
messages/en/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Update the invoice",
     "designRefreshConfirm": "Update the invoice",
     "designRefreshDone": "This invoice now prints with today's details",
     "designRefreshDone": "This invoice now prints with today's details",
     "designRefreshFailed": "Could not update the invoice",
     "designRefreshFailed": "Could not update the invoice",
-    "printWorkOrder": "Print work order"
+    "printWorkOrder": "Print work order",
+    "cancelInvoice": "Cancel invoice"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Basic Information",
     "title": "Basic Information",
@@ -104,7 +105,8 @@
       "pending": "Pending",
       "pending": "Pending",
       "in_progress": "In Progress",
       "in_progress": "In Progress",
       "waiting_parts": "Waiting Parts",
       "waiting_parts": "Waiting Parts",
-      "completed": "Completed"
+      "completed": "Completed",
+      "cancelled": "Cancelled"
     },
     },
     "searchVehicles": "Search vehicles...",
     "searchVehicles": "Search vehicles...",
     "noVehicleFound": "No vehicle found.",
     "noVehicleFound": "No vehicle found.",
@@ -377,6 +379,7 @@
     "received": "Payments received",
     "received": "Payments received",
     "noneYet": "Nothing paid yet.",
     "noneYet": "Nothing paid yet.",
     "balanceDue": "Balance due",
     "balanceDue": "Balance due",
+    "cancelledNotice": "Cancelled: nothing is owed on this invoice. The payments and any refund stay listed above.",
     "aboveBalance": "The balance due is {amount}. A payment cannot be more than that.",
     "aboveBalance": "The balance due is {amount}. A payment cannot be more than that.",
     "nothingDue": "Nothing is due on this invoice.",
     "nothingDue": "Nothing is due on this invoice.",
     "refund": "Refund"
     "refund": "Refund"
@@ -756,7 +759,9 @@
       "preview": "Preview invoice",
       "preview": "Preview invoice",
       "previewShort": "Preview",
       "previewShort": "Preview",
       "send": "Send to customer",
       "send": "Send to customer",
-      "sendShort": "Send"
+      "sendShort": "Send",
+      "cancelled": "Cancelled",
+      "nothingOwed": "Nothing owed"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "More info",
       "more": "More info",
@@ -886,5 +891,28 @@
     "hint": "Stay to fix it, or leave and lose the changes made since the last save.",
     "hint": "Stay to fix it, or leave and lose the changes made since the last save.",
     "stay": "Stay and fix",
     "stay": "Stay and fix",
     "leave": "Leave without saving"
     "leave": "Leave without saving"
+  },
+  "cancelInvoice": {
+    "title": "Cancel invoice {number}?",
+    "titleNoNumber": "Cancel this invoice?",
+    "description": "This invoice has gone out to the customer, so it cannot be deleted: most countries require invoice numbers without gaps.",
+    "pointKept": "The job is kept and marked cancelled. The invoice keeps its number and can no longer be changed.",
+    "pointShown": "The invoice, its shared link, the PDF and the customer portal show it as cancelled.",
+    "pointReports": "It no longer counts in revenue, tax or what is owed.",
+    "pointLedger": "A connected accounting system voids its copy where it can. A copy with payments on it is left for your bookkeeper to credit.",
+    "paidNotice": "The customer has paid {amount} on this invoice.",
+    "recordRefund": "Record a refund of money handed back to the customer",
+    "refundAmount": "Refund amount",
+    "refundMethod": "Refunded by",
+    "refundTooMuch": "A refund cannot be more than {amount}.",
+    "refundNote": "Refund on cancelled invoice",
+    "noRefundHint": "Without a refund the payments stay recorded as they are.",
+    "keep": "Keep invoice",
+    "confirm": "Cancel invoice",
+    "done": "Invoice cancelled",
+    "failed": "Could not cancel the invoice",
+    "bannerTitle": "Invoice {number} is cancelled",
+    "bannerTitleNoNumber": "This invoice is cancelled",
+    "bannerBody": "It keeps its number and can no longer be changed. The customer sees it marked as cancelled."
   }
   }
 }
 }

+ 3 - 1
messages/en/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Medium",
     "findingSeverityNeedsWork": "Medium",
     "findingSeverityMonitor": "Low",
     "findingSeverityMonitor": "Low",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Additional information"
+    "customFields": "Additional information",
+    "cancelledTitle": "This invoice has been cancelled",
+    "cancelledBody": "Nothing is owed on it. Contact the workshop if you have any questions."
   },
   },
   "quote": {
   "quote": {
     "title": "Quote",
     "title": "Quote",

+ 5 - 2
messages/es/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Equipamiento eliminado",
     "equipment_delete": "Equipamiento eliminado",
     "platform_deleteUser": "Usuario eliminado",
     "platform_deleteUser": "Usuario eliminado",
     "platform_grantSuperAdmin": "Superadministrador concedido",
     "platform_grantSuperAdmin": "Superadministrador concedido",
-    "platform_revokeSuperAdmin": "Superadministrador retirado"
+    "platform_revokeSuperAdmin": "Superadministrador retirado",
+    "service_cancel": "Factura anulada"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Activó el inicio de sesión en dos pasos",
     "auth_twoFactorEnabled": "Activó el inicio de sesión en dos pasos",
@@ -424,6 +425,8 @@
     "equipment_meter": "Añadió el contador {meter} a {name} en {vehicle}",
     "equipment_meter": "Añadió el contador {meter} a {name} en {vehicle}",
     "platform_deleteUser": "Usuario {name} ({email}) eliminado",
     "platform_deleteUser": "Usuario {name} ({email}) eliminado",
     "platform_grantSuperAdmin": "{name} ({email}) ahora es superadministrador",
     "platform_grantSuperAdmin": "{name} ({email}) ahora es superadministrador",
-    "platform_revokeSuperAdmin": "Rol de superadministrador retirado a {name} ({email})"
+    "platform_revokeSuperAdmin": "Rol de superadministrador retirado a {name} ({email})",
+    "service_cancel": "Factura {ref} anulada",
+    "service_cancelRefund": "Factura {ref} anulada y reembolso de {amount} registrado"
   }
   }
 }
 }

+ 2 - 1
messages/es/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Sin ver",
     "filterUnviewed": "Sin ver",
     "filterUnviewedHint": "Facturas enviadas que nunca se han abierto",
     "filterUnviewedHint": "Facturas enviadas que nunca se han abierto",
     "filterCompleted": "Solo completadas",
     "filterCompleted": "Solo completadas",
-    "filterCompletedHint": "Muestra solo las órdenes de trabajo marcadas como completadas. Se recuerda para la próxima vez."
+    "filterCompletedHint": "Muestra solo las órdenes de trabajo marcadas como completadas. Se recuerda para la próxima vez.",
+    "statusCancelled": "Anulada"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Recurrente",
     "title": "Recurrente",

+ 3 - 1
messages/es/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Unidad / Horas",
     "qtyOrHours": "Unidad / Horas",
     "customFieldsTitle": "Información adicional",
     "customFieldsTitle": "Información adicional",
     "telegramConnect": "Chatea con nosotros en Telegram",
     "telegramConnect": "Chatea con nosotros en Telegram",
-    "taxRegistrationLabel": "Núm. {name}"
+    "taxRegistrationLabel": "Núm. {name}",
+    "cancelledTitle": "FACTURA (ANULADA)",
+    "cancelledNotice": "ANULADA"
   },
   },
   "quote": {
   "quote": {
     "title": "PRESUPUESTO",
     "title": "PRESUPUESTO",

+ 4 - 2
messages/es/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Vencimiento",
     "summaryDue": "Vencimiento",
     "summaryReference": "Su referencia / n.º de pedido",
     "summaryReference": "Su referencia / n.º de pedido",
     "summaryDate": "Fecha",
     "summaryDate": "Fecha",
-    "fullInvoice": "La factura completa"
+    "fullInvoice": "La factura completa",
+    "cancelled": "Anulada"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Presupuestos",
     "title": "Presupuestos",
@@ -643,7 +644,8 @@
       "scheduled": "Programado",
       "scheduled": "Programado",
       "inProgress": "En curso",
       "inProgress": "En curso",
       "waitingParts": "Esperando piezas",
       "waitingParts": "Esperando piezas",
-      "completed": "Completado"
+      "completed": "Completado",
+      "cancelled": "Anulado"
     },
     },
     "request": {
     "request": {
       "pending": "Esperando respuesta",
       "pending": "Esperando respuesta",

+ 31 - 3
messages/es/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Actualizar la factura",
     "designRefreshConfirm": "Actualizar la factura",
     "designRefreshDone": "Esta factura ahora se imprime con los datos actuales",
     "designRefreshDone": "Esta factura ahora se imprime con los datos actuales",
     "designRefreshFailed": "No se pudo actualizar la factura",
     "designRefreshFailed": "No se pudo actualizar la factura",
-    "printWorkOrder": "Imprimir orden de trabajo"
+    "printWorkOrder": "Imprimir orden de trabajo",
+    "cancelInvoice": "Anular factura"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Información Básica",
     "title": "Información Básica",
@@ -104,7 +105,8 @@
       "pending": "Pendiente",
       "pending": "Pendiente",
       "in_progress": "En Progreso",
       "in_progress": "En Progreso",
       "waiting_parts": "Esperando Piezas",
       "waiting_parts": "Esperando Piezas",
-      "completed": "Completado"
+      "completed": "Completado",
+      "cancelled": "Anulada"
     },
     },
     "searchVehicles": "Buscar vehículos...",
     "searchVehicles": "Buscar vehículos...",
     "noVehicleFound": "Vehículo no encontrado.",
     "noVehicleFound": "Vehículo no encontrado.",
@@ -377,6 +379,7 @@
     "received": "Pagos recibidos",
     "received": "Pagos recibidos",
     "noneYet": "Todavía no se ha pagado nada.",
     "noneYet": "Todavía no se ha pagado nada.",
     "balanceDue": "Saldo pendiente",
     "balanceDue": "Saldo pendiente",
+    "cancelledNotice": "Anulada: no se debe nada por esta factura. Los pagos y reembolsos siguen listados arriba.",
     "aboveBalance": "El saldo pendiente es {amount}. Un pago no puede superarlo.",
     "aboveBalance": "El saldo pendiente es {amount}. Un pago no puede superarlo.",
     "nothingDue": "No hay nada pendiente en esta factura.",
     "nothingDue": "No hay nada pendiente en esta factura.",
     "refund": "Reembolso"
     "refund": "Reembolso"
@@ -756,7 +759,9 @@
       "preview": "Vista previa de la factura",
       "preview": "Vista previa de la factura",
       "previewShort": "Vista previa",
       "previewShort": "Vista previa",
       "send": "Enviar al cliente",
       "send": "Enviar al cliente",
-      "sendShort": "Enviar"
+      "sendShort": "Enviar",
+      "cancelled": "Anulada",
+      "nothingOwed": "Nada pendiente"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Más información",
       "more": "Más información",
@@ -886,5 +891,28 @@
     "hint": "Quédate para corregirlo, o sal y pierde los cambios hechos desde el último guardado.",
     "hint": "Quédate para corregirlo, o sal y pierde los cambios hechos desde el último guardado.",
     "stay": "Quedarme y corregir",
     "stay": "Quedarme y corregir",
     "leave": "Salir sin guardar"
     "leave": "Salir sin guardar"
+  },
+  "cancelInvoice": {
+    "title": "¿Anular la factura {number}?",
+    "titleNoNumber": "¿Anular esta factura?",
+    "description": "Esta factura ya se envió al cliente, así que no se puede eliminar: la mayoría de los países exigen números de factura sin huecos.",
+    "pointKept": "El trabajo se conserva y se marca como anulado. La factura mantiene su número y ya no se puede modificar.",
+    "pointShown": "La factura, su enlace compartido, el PDF y el portal del cliente la muestran como anulada.",
+    "pointReports": "Deja de contar en ingresos, impuestos y saldos pendientes.",
+    "pointLedger": "Un sistema contable conectado anula su copia cuando puede. Una copia con pagos se deja para que tu contable emita el abono.",
+    "paidNotice": "El cliente ha pagado {amount} de esta factura.",
+    "recordRefund": "Registrar un reembolso del dinero devuelto al cliente",
+    "refundAmount": "Importe del reembolso",
+    "refundMethod": "Reembolsado por",
+    "refundTooMuch": "Un reembolso no puede superar {amount}.",
+    "refundNote": "Reembolso de factura anulada",
+    "noRefundHint": "Sin reembolso, los pagos quedan registrados tal como están.",
+    "keep": "Conservar factura",
+    "confirm": "Anular factura",
+    "done": "Factura anulada",
+    "failed": "No se pudo anular la factura",
+    "bannerTitle": "La factura {number} está anulada",
+    "bannerTitleNoNumber": "Esta factura está anulada",
+    "bannerBody": "Mantiene su número y ya no se puede modificar. El cliente la ve marcada como anulada."
   }
   }
 }
 }

+ 3 - 1
messages/es/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Media",
     "findingSeverityNeedsWork": "Media",
     "findingSeverityMonitor": "Baja",
     "findingSeverityMonitor": "Baja",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Información adicional"
+    "customFields": "Información adicional",
+    "cancelledTitle": "Esta factura ha sido anulada",
+    "cancelledBody": "No se debe nada por ella. Contacta con el taller si tienes alguna pregunta."
   },
   },
   "quote": {
   "quote": {
     "title": "Presupuesto",
     "title": "Presupuesto",

+ 5 - 2
messages/fr/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Équipement supprimé",
     "equipment_delete": "Équipement supprimé",
     "platform_deleteUser": "Utilisateur supprimé",
     "platform_deleteUser": "Utilisateur supprimé",
     "platform_grantSuperAdmin": "Super administrateur accordé",
     "platform_grantSuperAdmin": "Super administrateur accordé",
-    "platform_revokeSuperAdmin": "Super administrateur retiré"
+    "platform_revokeSuperAdmin": "Super administrateur retiré",
+    "service_cancel": "Facture annulée"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "A activé la connexion à deux facteurs",
     "auth_twoFactorEnabled": "A activé la connexion à deux facteurs",
@@ -424,6 +425,8 @@
     "equipment_meter": "A ajouté le compteur {meter} à {name} sur {vehicle}",
     "equipment_meter": "A ajouté le compteur {meter} à {name} sur {vehicle}",
     "platform_deleteUser": "Utilisateur {name} ({email}) supprimé",
     "platform_deleteUser": "Utilisateur {name} ({email}) supprimé",
     "platform_grantSuperAdmin": "{name} ({email}) nommé super administrateur",
     "platform_grantSuperAdmin": "{name} ({email}) nommé super administrateur",
-    "platform_revokeSuperAdmin": "Rôle de super administrateur retiré à {name} ({email})"
+    "platform_revokeSuperAdmin": "Rôle de super administrateur retiré à {name} ({email})",
+    "service_cancel": "Facture {ref} annulée",
+    "service_cancelRefund": "Facture {ref} annulée et remboursement de {amount} enregistré"
   }
   }
 }
 }

+ 2 - 1
messages/fr/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Non consultée",
     "filterUnviewed": "Non consultée",
     "filterUnviewedHint": "Factures envoyées mais jamais ouvertes",
     "filterUnviewedHint": "Factures envoyées mais jamais ouvertes",
     "filterCompleted": "Terminés uniquement",
     "filterCompleted": "Terminés uniquement",
-    "filterCompletedHint": "Afficher uniquement les ordres de réparation marqués comme terminés. Mémorisé pour la prochaine fois."
+    "filterCompletedHint": "Afficher uniquement les ordres de réparation marqués comme terminés. Mémorisé pour la prochaine fois.",
+    "statusCancelled": "Annulée"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Récurrent",
     "title": "Récurrent",

+ 3 - 1
messages/fr/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Unité / Heures",
     "qtyOrHours": "Unité / Heures",
     "customFieldsTitle": "Informations complémentaires",
     "customFieldsTitle": "Informations complémentaires",
     "telegramConnect": "Discutez avec nous sur Telegram",
     "telegramConnect": "Discutez avec nous sur Telegram",
-    "taxRegistrationLabel": "N° {name}"
+    "taxRegistrationLabel": "N° {name}",
+    "cancelledTitle": "FACTURE (ANNULÉE)",
+    "cancelledNotice": "ANNULÉE"
   },
   },
   "quote": {
   "quote": {
     "title": "DEVIS",
     "title": "DEVIS",

+ 4 - 2
messages/fr/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Échéance",
     "summaryDue": "Échéance",
     "summaryReference": "Votre référence / n° de commande",
     "summaryReference": "Votre référence / n° de commande",
     "summaryDate": "Date",
     "summaryDate": "Date",
-    "fullInvoice": "La facture complète"
+    "fullInvoice": "La facture complète",
+    "cancelled": "Annulée"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Devis",
     "title": "Devis",
@@ -643,7 +644,8 @@
       "scheduled": "Planifié",
       "scheduled": "Planifié",
       "inProgress": "En cours",
       "inProgress": "En cours",
       "waitingParts": "En attente de pièces",
       "waitingParts": "En attente de pièces",
-      "completed": "Terminé"
+      "completed": "Terminé",
+      "cancelled": "Annulé"
     },
     },
     "request": {
     "request": {
       "pending": "En attente de réponse",
       "pending": "En attente de réponse",

+ 31 - 3
messages/fr/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Mettre à jour la facture",
     "designRefreshConfirm": "Mettre à jour la facture",
     "designRefreshDone": "Cette facture s'imprime désormais avec les informations actuelles",
     "designRefreshDone": "Cette facture s'imprime désormais avec les informations actuelles",
     "designRefreshFailed": "Impossible de mettre à jour la facture",
     "designRefreshFailed": "Impossible de mettre à jour la facture",
-    "printWorkOrder": "Imprimer l'ordre de travail"
+    "printWorkOrder": "Imprimer l'ordre de travail",
+    "cancelInvoice": "Annuler la facture"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Informations de Base",
     "title": "Informations de Base",
@@ -104,7 +105,8 @@
       "pending": "En Attente",
       "pending": "En Attente",
       "in_progress": "En Cours",
       "in_progress": "En Cours",
       "waiting_parts": "En Attente de Pièces",
       "waiting_parts": "En Attente de Pièces",
-      "completed": "Complété"
+      "completed": "Complété",
+      "cancelled": "Annulée"
     },
     },
     "searchVehicles": "Rechercher des véhicules...",
     "searchVehicles": "Rechercher des véhicules...",
     "noVehicleFound": "Aucun véhicule trouvé.",
     "noVehicleFound": "Aucun véhicule trouvé.",
@@ -377,6 +379,7 @@
     "received": "Paiements reçus",
     "received": "Paiements reçus",
     "noneYet": "Rien de payé pour l'instant.",
     "noneYet": "Rien de payé pour l'instant.",
     "balanceDue": "Solde dû",
     "balanceDue": "Solde dû",
+    "cancelledNotice": "Annulée : rien n’est dû sur cette facture. Les paiements et remboursements restent listés ci-dessus.",
     "aboveBalance": "Le solde dû est de {amount}. Un paiement ne peut pas le dépasser.",
     "aboveBalance": "Le solde dû est de {amount}. Un paiement ne peut pas le dépasser.",
     "nothingDue": "Rien n’est dû sur cette facture.",
     "nothingDue": "Rien n’est dû sur cette facture.",
     "refund": "Remboursement"
     "refund": "Remboursement"
@@ -756,7 +759,9 @@
       "preview": "Aperçu de la facture",
       "preview": "Aperçu de la facture",
       "previewShort": "Aperçu",
       "previewShort": "Aperçu",
       "send": "Envoyer au client",
       "send": "Envoyer au client",
-      "sendShort": "Envoyer"
+      "sendShort": "Envoyer",
+      "cancelled": "Annulée",
+      "nothingOwed": "Rien à payer"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Plus d'infos",
       "more": "Plus d'infos",
@@ -886,5 +891,28 @@
     "hint": "Restez pour corriger, ou partez et perdez les modifications faites depuis le dernier enregistrement.",
     "hint": "Restez pour corriger, ou partez et perdez les modifications faites depuis le dernier enregistrement.",
     "stay": "Rester et corriger",
     "stay": "Rester et corriger",
     "leave": "Quitter sans enregistrer"
     "leave": "Quitter sans enregistrer"
+  },
+  "cancelInvoice": {
+    "title": "Annuler la facture {number} ?",
+    "titleNoNumber": "Annuler cette facture ?",
+    "description": "Cette facture a déjà été remise au client, elle ne peut donc pas être supprimée : la plupart des pays exigent des numéros de facture sans trous.",
+    "pointKept": "Le travail est conservé et marqué comme annulé. La facture garde son numéro et ne peut plus être modifiée.",
+    "pointShown": "La facture, son lien partagé, le PDF et le portail client l’affichent comme annulée.",
+    "pointReports": "Elle n’est plus comptée dans le chiffre d’affaires, les taxes ni les montants dus.",
+    "pointLedger": "Un logiciel comptable connecté annule sa copie quand il le peut. Une copie portant des paiements est laissée à votre comptable pour un avoir.",
+    "paidNotice": "Le client a payé {amount} sur cette facture.",
+    "recordRefund": "Enregistrer un remboursement de l’argent rendu au client",
+    "refundAmount": "Montant remboursé",
+    "refundMethod": "Remboursé par",
+    "refundTooMuch": "Un remboursement ne peut pas dépasser {amount}.",
+    "refundNote": "Remboursement de facture annulée",
+    "noRefundHint": "Sans remboursement, les paiements restent enregistrés tels quels.",
+    "keep": "Garder la facture",
+    "confirm": "Annuler la facture",
+    "done": "Facture annulée",
+    "failed": "Impossible d’annuler la facture",
+    "bannerTitle": "La facture {number} est annulée",
+    "bannerTitleNoNumber": "Cette facture est annulée",
+    "bannerBody": "Elle garde son numéro et ne peut plus être modifiée. Le client la voit marquée comme annulée."
   }
   }
 }
 }

+ 3 - 1
messages/fr/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Moyenne",
     "findingSeverityNeedsWork": "Moyenne",
     "findingSeverityMonitor": "Basse",
     "findingSeverityMonitor": "Basse",
     "tel": "Tél. : {phone}",
     "tel": "Tél. : {phone}",
-    "customFields": "Informations complémentaires"
+    "customFields": "Informations complémentaires",
+    "cancelledTitle": "Cette facture a été annulée",
+    "cancelledBody": "Aucun montant n’est dû. Contactez l’atelier pour toute question."
   },
   },
   "quote": {
   "quote": {
     "title": "Devis",
     "title": "Devis",

+ 5 - 2
messages/it/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Attrezzatura eliminata",
     "equipment_delete": "Attrezzatura eliminata",
     "platform_deleteUser": "Utente eliminato",
     "platform_deleteUser": "Utente eliminato",
     "platform_grantSuperAdmin": "Super amministratore concesso",
     "platform_grantSuperAdmin": "Super amministratore concesso",
-    "platform_revokeSuperAdmin": "Super amministratore rimosso"
+    "platform_revokeSuperAdmin": "Super amministratore rimosso",
+    "service_cancel": "Fattura annullata"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Ha attivato l'accesso a due fattori",
     "auth_twoFactorEnabled": "Ha attivato l'accesso a due fattori",
@@ -424,6 +425,8 @@
     "equipment_meter": "Ha aggiunto il contatore {meter} a {name} su {vehicle}",
     "equipment_meter": "Ha aggiunto il contatore {meter} a {name} su {vehicle}",
     "platform_deleteUser": "Utente {name} ({email}) eliminato",
     "platform_deleteUser": "Utente {name} ({email}) eliminato",
     "platform_grantSuperAdmin": "{name} ({email}) reso super amministratore",
     "platform_grantSuperAdmin": "{name} ({email}) reso super amministratore",
-    "platform_revokeSuperAdmin": "Ruolo di super amministratore rimosso da {name} ({email})"
+    "platform_revokeSuperAdmin": "Ruolo di super amministratore rimosso da {name} ({email})",
+    "service_cancel": "Fattura {ref} annullata",
+    "service_cancelRefund": "Fattura {ref} annullata e rimborso di {amount} registrato"
   }
   }
 }
 }

+ 2 - 1
messages/it/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Non aperte",
     "filterUnviewed": "Non aperte",
     "filterUnviewedHint": "Fatture inviate ma mai aperte",
     "filterUnviewedHint": "Fatture inviate ma mai aperte",
     "filterCompleted": "Solo completati",
     "filterCompleted": "Solo completati",
-    "filterCompletedHint": "Mostra solo gli ordini di lavoro segnati come completati. Viene ricordato per la prossima volta."
+    "filterCompletedHint": "Mostra solo gli ordini di lavoro segnati come completati. Viene ricordato per la prossima volta.",
+    "statusCancelled": "Annullata"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Ricorrente",
     "title": "Ricorrente",

+ 3 - 1
messages/it/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Unità / Ore",
     "qtyOrHours": "Unità / Ore",
     "customFieldsTitle": "Informazioni aggiuntive",
     "customFieldsTitle": "Informazioni aggiuntive",
     "telegramConnect": "Scrivici su Telegram",
     "telegramConnect": "Scrivici su Telegram",
-    "taxRegistrationLabel": "N. {name}"
+    "taxRegistrationLabel": "N. {name}",
+    "cancelledTitle": "FATTURA (ANNULLATA)",
+    "cancelledNotice": "ANNULLATA"
   },
   },
   "quote": {
   "quote": {
     "title": "PREVENTIVO",
     "title": "PREVENTIVO",

+ 4 - 2
messages/it/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Scadenza",
     "summaryDue": "Scadenza",
     "summaryReference": "Vostro riferimento / n. ordine",
     "summaryReference": "Vostro riferimento / n. ordine",
     "summaryDate": "Data",
     "summaryDate": "Data",
-    "fullInvoice": "La fattura completa"
+    "fullInvoice": "La fattura completa",
+    "cancelled": "Annullata"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Preventivi",
     "title": "Preventivi",
@@ -643,7 +644,8 @@
       "scheduled": "Programmato",
       "scheduled": "Programmato",
       "inProgress": "In corso",
       "inProgress": "In corso",
       "waitingParts": "In attesa di ricambi",
       "waitingParts": "In attesa di ricambi",
-      "completed": "Completato"
+      "completed": "Completato",
+      "cancelled": "Annullato"
     },
     },
     "request": {
     "request": {
       "pending": "In attesa di risposta",
       "pending": "In attesa di risposta",

+ 31 - 3
messages/it/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Aggiorna la fattura",
     "designRefreshConfirm": "Aggiorna la fattura",
     "designRefreshDone": "Questa fattura ora viene stampata con i dati attuali",
     "designRefreshDone": "Questa fattura ora viene stampata con i dati attuali",
     "designRefreshFailed": "Impossibile aggiornare la fattura",
     "designRefreshFailed": "Impossibile aggiornare la fattura",
-    "printWorkOrder": "Stampa ordine di lavoro"
+    "printWorkOrder": "Stampa ordine di lavoro",
+    "cancelInvoice": "Annulla fattura"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Informazioni di Base",
     "title": "Informazioni di Base",
@@ -104,7 +105,8 @@
       "pending": "In Sospeso",
       "pending": "In Sospeso",
       "in_progress": "In Corso",
       "in_progress": "In Corso",
       "waiting_parts": "In Attesa di Pezzi",
       "waiting_parts": "In Attesa di Pezzi",
-      "completed": "Completato"
+      "completed": "Completato",
+      "cancelled": "Annullata"
     },
     },
     "searchVehicles": "Cerca veicoli...",
     "searchVehicles": "Cerca veicoli...",
     "noVehicleFound": "Nessun veicolo trovato.",
     "noVehicleFound": "Nessun veicolo trovato.",
@@ -377,6 +379,7 @@
     "received": "Pagamenti ricevuti",
     "received": "Pagamenti ricevuti",
     "noneYet": "Ancora nessun pagamento.",
     "noneYet": "Ancora nessun pagamento.",
     "balanceDue": "Importo dovuto",
     "balanceDue": "Importo dovuto",
+    "cancelledNotice": "Annullata: non è dovuto nulla su questa fattura. Pagamenti e rimborsi restano elencati sopra.",
     "aboveBalance": "L’importo dovuto è {amount}. Un pagamento non può superarlo.",
     "aboveBalance": "L’importo dovuto è {amount}. Un pagamento non può superarlo.",
     "nothingDue": "Non c’è nulla da pagare su questa fattura.",
     "nothingDue": "Non c’è nulla da pagare su questa fattura.",
     "refund": "Rimborso"
     "refund": "Rimborso"
@@ -756,7 +759,9 @@
       "preview": "Anteprima fattura",
       "preview": "Anteprima fattura",
       "previewShort": "Anteprima",
       "previewShort": "Anteprima",
       "send": "Invia al cliente",
       "send": "Invia al cliente",
-      "sendShort": "Invia"
+      "sendShort": "Invia",
+      "cancelled": "Annullata",
+      "nothingOwed": "Nulla da pagare"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Più info",
       "more": "Più info",
@@ -886,5 +891,28 @@
     "hint": "Resta per correggere, oppure esci e perdi le modifiche fatte dall'ultimo salvataggio.",
     "hint": "Resta per correggere, oppure esci e perdi le modifiche fatte dall'ultimo salvataggio.",
     "stay": "Resta e correggi",
     "stay": "Resta e correggi",
     "leave": "Esci senza salvare"
     "leave": "Esci senza salvare"
+  },
+  "cancelInvoice": {
+    "title": "Annullare la fattura {number}?",
+    "titleNoNumber": "Annullare questa fattura?",
+    "description": "Questa fattura è già stata inviata al cliente, quindi non può essere eliminata: nella maggior parte dei paesi la numerazione delle fatture non deve avere buchi.",
+    "pointKept": "Il lavoro viene mantenuto e segnato come annullato. La fattura conserva il suo numero e non può più essere modificata.",
+    "pointShown": "La fattura, il link condiviso, il PDF e il portale clienti la mostrano come annullata.",
+    "pointReports": "Non viene più conteggiata nei ricavi, nelle imposte né negli importi dovuti.",
+    "pointLedger": "Un sistema contabile collegato annulla la sua copia quando può. Una copia con pagamenti resta al tuo contabile per la nota di credito.",
+    "paidNotice": "Il cliente ha pagato {amount} su questa fattura.",
+    "recordRefund": "Registra un rimborso del denaro restituito al cliente",
+    "refundAmount": "Importo del rimborso",
+    "refundMethod": "Rimborsato tramite",
+    "refundTooMuch": "Un rimborso non può superare {amount}.",
+    "refundNote": "Rimborso su fattura annullata",
+    "noRefundHint": "Senza rimborso i pagamenti restano registrati così come sono.",
+    "keep": "Mantieni fattura",
+    "confirm": "Annulla fattura",
+    "done": "Fattura annullata",
+    "failed": "Impossibile annullare la fattura",
+    "bannerTitle": "La fattura {number} è annullata",
+    "bannerTitleNoNumber": "Questa fattura è annullata",
+    "bannerBody": "Conserva il suo numero e non può più essere modificata. Il cliente la vede segnata come annullata."
   }
   }
 }
 }

+ 3 - 1
messages/it/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Media",
     "findingSeverityNeedsWork": "Media",
     "findingSeverityMonitor": "Bassa",
     "findingSeverityMonitor": "Bassa",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Informazioni aggiuntive"
+    "customFields": "Informazioni aggiuntive",
+    "cancelledTitle": "Questa fattura è stata annullata",
+    "cancelledBody": "Non è dovuto nulla. Contatta l’officina per qualsiasi domanda."
   },
   },
   "quote": {
   "quote": {
     "title": "Preventivo",
     "title": "Preventivo",

+ 5 - 2
messages/lt/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Ištrinta įranga",
     "equipment_delete": "Ištrinta įranga",
     "platform_deleteUser": "Ištrintas naudotojas",
     "platform_deleteUser": "Ištrintas naudotojas",
     "platform_grantSuperAdmin": "Suteiktos vyriausiojo administratoriaus teisės",
     "platform_grantSuperAdmin": "Suteiktos vyriausiojo administratoriaus teisės",
-    "platform_revokeSuperAdmin": "Atimtos vyriausiojo administratoriaus teisės"
+    "platform_revokeSuperAdmin": "Atimtos vyriausiojo administratoriaus teisės",
+    "service_cancel": "Atšaukta sąskaita"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Įjungtas dviejų veiksnių prisijungimas",
     "auth_twoFactorEnabled": "Įjungtas dviejų veiksnių prisijungimas",
@@ -424,6 +425,8 @@
     "equipment_meter": "Skaitiklis {meter} pridėtas prie {name} ({vehicle})",
     "equipment_meter": "Skaitiklis {meter} pridėtas prie {name} ({vehicle})",
     "platform_deleteUser": "Ištrintas naudotojas {name} ({email})",
     "platform_deleteUser": "Ištrintas naudotojas {name} ({email})",
     "platform_grantSuperAdmin": "{name} ({email}) tapo vyriausiuoju administratoriumi",
     "platform_grantSuperAdmin": "{name} ({email}) tapo vyriausiuoju administratoriumi",
-    "platform_revokeSuperAdmin": "Atimtos vyriausiojo administratoriaus teisės iš {name} ({email})"
+    "platform_revokeSuperAdmin": "Atimtos vyriausiojo administratoriaus teisės iš {name} ({email})",
+    "service_cancel": "Atšaukta sąskaita {ref}",
+    "service_cancelRefund": "Atšaukta sąskaita {ref} ir užregistruotas {amount} grąžinimas"
   }
   }
 }
 }

+ 2 - 1
messages/lt/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Neperžiūrėtos",
     "filterUnviewed": "Neperžiūrėtos",
     "filterUnviewedHint": "Sąskaitos, kurios išsiųstos, bet niekada neatidarytos",
     "filterUnviewedHint": "Sąskaitos, kurios išsiųstos, bet niekada neatidarytos",
     "filterCompleted": "Tik užbaigti",
     "filterCompleted": "Tik užbaigti",
-    "filterCompletedHint": "Rodyti tik užsakymus, pažymėtus kaip užbaigti. Įsimenama kitam kartui."
+    "filterCompletedHint": "Rodyti tik užsakymus, pažymėtus kaip užbaigti. Įsimenama kitam kartui.",
+    "statusCancelled": "Atšaukta"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Periodinės",
     "title": "Periodinės",

+ 3 - 1
messages/lt/pdf.json

@@ -90,7 +90,9 @@
     "org": "Įm. kodas: {org}",
     "org": "Įm. kodas: {org}",
     "customFieldsTitle": "Papildoma informacija",
     "customFieldsTitle": "Papildoma informacija",
     "telegramConnect": "Susisiekite su mumis per Telegram",
     "telegramConnect": "Susisiekite su mumis per Telegram",
-    "taxRegistrationLabel": "{name} nr."
+    "taxRegistrationLabel": "{name} nr.",
+    "cancelledTitle": "SĄSKAITA (ATŠAUKTA)",
+    "cancelledNotice": "ATŠAUKTA"
   },
   },
   "quote": {
   "quote": {
     "title": "PASIŪLYMAS",
     "title": "PASIŪLYMAS",

+ 4 - 2
messages/lt/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Apmokėjimo terminas",
     "summaryDue": "Apmokėjimo terminas",
     "summaryReference": "Jūsų nuoroda / užsakymo nr.",
     "summaryReference": "Jūsų nuoroda / užsakymo nr.",
     "summaryDate": "Data",
     "summaryDate": "Data",
-    "fullInvoice": "Visa sąskaita"
+    "fullInvoice": "Visa sąskaita",
+    "cancelled": "Atšaukta"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Pasiūlymai",
     "title": "Pasiūlymai",
@@ -643,7 +644,8 @@
       "scheduled": "Suplanuota",
       "scheduled": "Suplanuota",
       "inProgress": "Vykdoma",
       "inProgress": "Vykdoma",
       "waitingParts": "Laukiama dalių",
       "waitingParts": "Laukiama dalių",
-      "completed": "Baigta"
+      "completed": "Baigta",
+      "cancelled": "Atšauktas"
     },
     },
     "request": {
     "request": {
       "pending": "Laukiama atsakymo",
       "pending": "Laukiama atsakymo",

+ 31 - 3
messages/lt/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Atnaujinti sąskaitą",
     "designRefreshConfirm": "Atnaujinti sąskaitą",
     "designRefreshDone": "Ši sąskaita dabar spausdinama su dabartiniais duomenimis",
     "designRefreshDone": "Ši sąskaita dabar spausdinama su dabartiniais duomenimis",
     "designRefreshFailed": "Nepavyko atnaujinti sąskaitos",
     "designRefreshFailed": "Nepavyko atnaujinti sąskaitos",
-    "printWorkOrder": "Spausdinti darbo užsakymą"
+    "printWorkOrder": "Spausdinti darbo užsakymą",
+    "cancelInvoice": "Atšaukti sąskaitą"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Pagrindinė informacija",
     "title": "Pagrindinė informacija",
@@ -104,7 +105,8 @@
       "pending": "Laukia",
       "pending": "Laukia",
       "in_progress": "Vykdoma",
       "in_progress": "Vykdoma",
       "waiting_parts": "Laukia dalių",
       "waiting_parts": "Laukia dalių",
-      "completed": "Užbaigta"
+      "completed": "Užbaigta",
+      "cancelled": "Atšaukta"
     },
     },
     "searchVehicles": "Ieškoti transporto priemonių...",
     "searchVehicles": "Ieškoti transporto priemonių...",
     "noVehicleFound": "Transporto priemonė nerasta.",
     "noVehicleFound": "Transporto priemonė nerasta.",
@@ -377,6 +379,7 @@
     "received": "Gauti mokėjimai",
     "received": "Gauti mokėjimai",
     "noneYet": "Dar nieko nesumokėta.",
     "noneYet": "Dar nieko nesumokėta.",
     "balanceDue": "Mokėtina suma",
     "balanceDue": "Mokėtina suma",
+    "cancelledNotice": "Atšaukta: pagal šią sąskaitą nieko nemokėti. Mokėjimai ir grąžinimai lieka sąraše aukščiau.",
     "aboveBalance": "Mokėtina suma yra {amount}. Mokėjimas negali būti didesnis.",
     "aboveBalance": "Mokėtina suma yra {amount}. Mokėjimas negali būti didesnis.",
     "nothingDue": "Pagal šią sąskaitą nieko nebeliko mokėti.",
     "nothingDue": "Pagal šią sąskaitą nieko nebeliko mokėti.",
     "refund": "Grąžinimas"
     "refund": "Grąžinimas"
@@ -756,7 +759,9 @@
       "preview": "Peržiūrėti sąskaitą",
       "preview": "Peržiūrėti sąskaitą",
       "previewShort": "Peržiūra",
       "previewShort": "Peržiūra",
       "send": "Siųsti klientui",
       "send": "Siųsti klientui",
-      "sendShort": "Siųsti"
+      "sendShort": "Siųsti",
+      "cancelled": "Atšaukta",
+      "nothingOwed": "Nieko nemokėti"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Daugiau informacijos",
       "more": "Daugiau informacijos",
@@ -886,5 +891,28 @@
     "hint": "Likite ir pataisykite arba išeikite ir praraskite pakeitimus nuo paskutinio išsaugojimo.",
     "hint": "Likite ir pataisykite arba išeikite ir praraskite pakeitimus nuo paskutinio išsaugojimo.",
     "stay": "Likti ir pataisyti",
     "stay": "Likti ir pataisyti",
     "leave": "Išeiti neišsaugojus"
     "leave": "Išeiti neišsaugojus"
+  },
+  "cancelInvoice": {
+    "title": "Atšaukti sąskaitą {number}?",
+    "titleNoNumber": "Atšaukti šią sąskaitą?",
+    "description": "Ši sąskaita jau pateikta klientui, todėl jos ištrinti negalima: daugumoje šalių sąskaitų numeracija turi būti be spragų.",
+    "pointKept": "Darbas išsaugomas ir pažymimas kaip atšauktas. Sąskaita išlaiko savo numerį ir jos nebegalima keisti.",
+    "pointShown": "Sąskaita, jos bendrinama nuoroda, PDF ir kliento portalas rodo ją kaip atšauktą.",
+    "pointReports": "Ji nebeįskaičiuojama į pajamas, mokesčius ar skolas.",
+    "pointLedger": "Prijungta apskaitos sistema, kur gali, anuliuoja savo kopiją. Kopija su mokėjimais paliekama buhalteriui kredituoti.",
+    "paidNotice": "Klientas pagal šią sąskaitą sumokėjo {amount}.",
+    "recordRefund": "Užregistruoti klientui grąžintus pinigus",
+    "refundAmount": "Grąžinama suma",
+    "refundMethod": "Grąžinta",
+    "refundTooMuch": "Grąžinimas negali viršyti {amount}.",
+    "refundNote": "Grąžinimas pagal atšauktą sąskaitą",
+    "noRefundHint": "Be grąžinimo mokėjimai lieka užregistruoti kaip yra.",
+    "keep": "Palikti sąskaitą",
+    "confirm": "Atšaukti sąskaitą",
+    "done": "Sąskaita atšaukta",
+    "failed": "Nepavyko atšaukti sąskaitos",
+    "bannerTitle": "Sąskaita {number} atšaukta",
+    "bannerTitleNoNumber": "Ši sąskaita atšaukta",
+    "bannerBody": "Ji išlaiko savo numerį ir nebegali būti keičiama. Klientas mato ją pažymėtą kaip atšauktą."
   }
   }
 }
 }

+ 3 - 1
messages/lt/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Vidutinė",
     "findingSeverityNeedsWork": "Vidutinė",
     "findingSeverityMonitor": "Žema",
     "findingSeverityMonitor": "Žema",
     "tel": "Tel.: {phone}",
     "tel": "Tel.: {phone}",
-    "customFields": "Papildoma informacija"
+    "customFields": "Papildoma informacija",
+    "cancelledTitle": "Ši sąskaita atšaukta",
+    "cancelledBody": "Pagal ją nieko nemokėti. Jei turite klausimų, susisiekite su servisu."
   },
   },
   "quote": {
   "quote": {
     "title": "Pasiūlymas",
     "title": "Pasiūlymas",

+ 5 - 2
messages/nb/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Slettet utstyr",
     "equipment_delete": "Slettet utstyr",
     "platform_deleteUser": "Slettet bruker",
     "platform_deleteUser": "Slettet bruker",
     "platform_grantSuperAdmin": "Ga superadmin",
     "platform_grantSuperAdmin": "Ga superadmin",
-    "platform_revokeSuperAdmin": "Fjernet superadmin"
+    "platform_revokeSuperAdmin": "Fjernet superadmin",
+    "service_cancel": "Kansellert faktura"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Slo på tofaktorinnlogging",
     "auth_twoFactorEnabled": "Slo på tofaktorinnlogging",
@@ -424,6 +425,8 @@
     "equipment_meter": "La til måleren {meter} på {name} på {vehicle}",
     "equipment_meter": "La til måleren {meter} på {name} på {vehicle}",
     "platform_deleteUser": "Slettet brukeren {name} ({email})",
     "platform_deleteUser": "Slettet brukeren {name} ({email})",
     "platform_grantSuperAdmin": "Gjorde {name} ({email}) til superadmin",
     "platform_grantSuperAdmin": "Gjorde {name} ({email}) til superadmin",
-    "platform_revokeSuperAdmin": "Fjernet superadmin fra {name} ({email})"
+    "platform_revokeSuperAdmin": "Fjernet superadmin fra {name} ({email})",
+    "service_cancel": "Kansellerte faktura {ref}",
+    "service_cancelRefund": "Kansellerte faktura {ref} og registrerte en refusjon på {amount}"
   }
   }
 }
 }

+ 2 - 1
messages/nb/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Ikke åpnet",
     "filterUnviewed": "Ikke åpnet",
     "filterUnviewedHint": "Fakturaer som er sendt, men aldri åpnet",
     "filterUnviewedHint": "Fakturaer som er sendt, men aldri åpnet",
     "filterCompleted": "Kun fullførte",
     "filterCompleted": "Kun fullførte",
-    "filterCompletedHint": "Vis bare arbeidsordrer som er merket som fullført. Huskes til neste gang."
+    "filterCompletedHint": "Vis bare arbeidsordrer som er merket som fullført. Huskes til neste gang.",
+    "statusCancelled": "Kansellert"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Gjentakende",
     "title": "Gjentakende",

+ 3 - 1
messages/nb/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Enhet / Timer",
     "qtyOrHours": "Enhet / Timer",
     "customFieldsTitle": "Tilleggsinformasjon",
     "customFieldsTitle": "Tilleggsinformasjon",
     "telegramConnect": "Chat med oss på Telegram",
     "telegramConnect": "Chat med oss på Telegram",
-    "taxRegistrationLabel": "{name}-nr."
+    "taxRegistrationLabel": "{name}-nr.",
+    "cancelledTitle": "FAKTURA (KANSELLERT)",
+    "cancelledNotice": "KANSELLERT"
   },
   },
   "quote": {
   "quote": {
     "title": "TILBUD",
     "title": "TILBUD",

+ 4 - 2
messages/nb/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Forfallsdato",
     "summaryDue": "Forfallsdato",
     "summaryReference": "Deres referanse / bestillingsnr.",
     "summaryReference": "Deres referanse / bestillingsnr.",
     "summaryDate": "Dato",
     "summaryDate": "Dato",
-    "fullInvoice": "Hele fakturaen"
+    "fullInvoice": "Hele fakturaen",
+    "cancelled": "Kansellert"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Tilbud",
     "title": "Tilbud",
@@ -643,7 +644,8 @@
       "scheduled": "Planlagt",
       "scheduled": "Planlagt",
       "inProgress": "Pågår",
       "inProgress": "Pågår",
       "waitingParts": "Venter på deler",
       "waitingParts": "Venter på deler",
-      "completed": "Fullført"
+      "completed": "Fullført",
+      "cancelled": "Kansellert"
     },
     },
     "request": {
     "request": {
       "pending": "Venter på svar",
       "pending": "Venter på svar",

+ 31 - 3
messages/nb/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Oppdater fakturaen",
     "designRefreshConfirm": "Oppdater fakturaen",
     "designRefreshDone": "Denne fakturaen skrives nå ut med dagens opplysninger",
     "designRefreshDone": "Denne fakturaen skrives nå ut med dagens opplysninger",
     "designRefreshFailed": "Kunne ikke oppdatere fakturaen",
     "designRefreshFailed": "Kunne ikke oppdatere fakturaen",
-    "printWorkOrder": "Skriv ut arbeidsordre"
+    "printWorkOrder": "Skriv ut arbeidsordre",
+    "cancelInvoice": "Kanseller faktura"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Grunnleggende informasjon",
     "title": "Grunnleggende informasjon",
@@ -104,7 +105,8 @@
       "pending": "Avventende",
       "pending": "Avventende",
       "in_progress": "Pågår",
       "in_progress": "Pågår",
       "waiting_parts": "Venter på deler",
       "waiting_parts": "Venter på deler",
-      "completed": "Fullført"
+      "completed": "Fullført",
+      "cancelled": "Kansellert"
     },
     },
     "searchVehicles": "Søk kjøretøyer...",
     "searchVehicles": "Søk kjøretøyer...",
     "noVehicleFound": "Ingen kjøretøy funnet.",
     "noVehicleFound": "Ingen kjøretøy funnet.",
@@ -377,6 +379,7 @@
     "received": "Mottatte betalinger",
     "received": "Mottatte betalinger",
     "noneYet": "Ingenting betalt ennå.",
     "noneYet": "Ingenting betalt ennå.",
     "balanceDue": "Utestående",
     "balanceDue": "Utestående",
+    "cancelledNotice": "Kansellert: ingenting skal betales på denne fakturaen. Betalinger og refusjoner står fortsatt over.",
     "aboveBalance": "Utestående er {amount}. En betaling kan ikke være høyere enn det.",
     "aboveBalance": "Utestående er {amount}. En betaling kan ikke være høyere enn det.",
     "nothingDue": "Det er ingenting utestående på denne fakturaen.",
     "nothingDue": "Det er ingenting utestående på denne fakturaen.",
     "refund": "Refusjon"
     "refund": "Refusjon"
@@ -756,7 +759,9 @@
       "preview": "Forhåndsvis faktura",
       "preview": "Forhåndsvis faktura",
       "previewShort": "Forhåndsvis",
       "previewShort": "Forhåndsvis",
       "send": "Send til kunden",
       "send": "Send til kunden",
-      "sendShort": "Send"
+      "sendShort": "Send",
+      "cancelled": "Kansellert",
+      "nothingOwed": "Ingenting å betale"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Mer info",
       "more": "Mer info",
@@ -886,5 +891,28 @@
     "hint": "Bli for å rette det, eller gå og mist endringene siden forrige lagring.",
     "hint": "Bli for å rette det, eller gå og mist endringene siden forrige lagring.",
     "stay": "Bli og rett opp",
     "stay": "Bli og rett opp",
     "leave": "Gå uten å lagre"
     "leave": "Gå uten å lagre"
+  },
+  "cancelInvoice": {
+    "title": "Kansellere faktura {number}?",
+    "titleNoNumber": "Kansellere denne fakturaen?",
+    "description": "Denne fakturaen er sendt til kunden og kan derfor ikke slettes: de fleste land krever fakturanumre uten hull.",
+    "pointKept": "Jobben beholdes og merkes som kansellert. Fakturaen beholder nummeret sitt og kan ikke lenger endres.",
+    "pointShown": "Fakturaen, den delte lenken, PDF-en og kundeportalen viser den som kansellert.",
+    "pointReports": "Den teller ikke lenger med i omsetning, avgift eller utestående.",
+    "pointLedger": "Et tilkoblet regnskapssystem annullerer sin kopi der det kan. En kopi med betalinger blir stående til regnskapsføreren krediterer den.",
+    "paidNotice": "Kunden har betalt {amount} på denne fakturaen.",
+    "recordRefund": "Registrer en refusjon av penger tilbakebetalt til kunden",
+    "refundAmount": "Refusjonsbeløp",
+    "refundMethod": "Refundert med",
+    "refundTooMuch": "En refusjon kan ikke være mer enn {amount}.",
+    "refundNote": "Refusjon for kansellert faktura",
+    "noRefundHint": "Uten refusjon blir betalingene stående som de er.",
+    "keep": "Behold fakturaen",
+    "confirm": "Kanseller faktura",
+    "done": "Fakturaen er kansellert",
+    "failed": "Kunne ikke kansellere fakturaen",
+    "bannerTitle": "Faktura {number} er kansellert",
+    "bannerTitleNoNumber": "Denne fakturaen er kansellert",
+    "bannerBody": "Den beholder nummeret sitt og kan ikke lenger endres. Kunden ser den merket som kansellert."
   }
   }
 }
 }

+ 3 - 1
messages/nb/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Middels",
     "findingSeverityNeedsWork": "Middels",
     "findingSeverityMonitor": "Lav",
     "findingSeverityMonitor": "Lav",
     "tel": "Tlf: {phone}",
     "tel": "Tlf: {phone}",
-    "customFields": "Tilleggsinformasjon"
+    "customFields": "Tilleggsinformasjon",
+    "cancelledTitle": "Denne fakturaen er kansellert",
+    "cancelledBody": "Ingenting skal betales. Kontakt verkstedet hvis du har spørsmål."
   },
   },
   "quote": {
   "quote": {
     "title": "Tilbud",
     "title": "Tilbud",

+ 5 - 2
messages/nl/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Uitrusting verwijderd",
     "equipment_delete": "Uitrusting verwijderd",
     "platform_deleteUser": "Gebruiker verwijderd",
     "platform_deleteUser": "Gebruiker verwijderd",
     "platform_grantSuperAdmin": "Superbeheerder toegekend",
     "platform_grantSuperAdmin": "Superbeheerder toegekend",
-    "platform_revokeSuperAdmin": "Superbeheerder ingetrokken"
+    "platform_revokeSuperAdmin": "Superbeheerder ingetrokken",
+    "service_cancel": "Factuur geannuleerd"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Inloggen in twee stappen ingeschakeld",
     "auth_twoFactorEnabled": "Inloggen in twee stappen ingeschakeld",
@@ -424,6 +425,8 @@
     "equipment_meter": "Teller {meter} toegevoegd aan {name} op {vehicle}",
     "equipment_meter": "Teller {meter} toegevoegd aan {name} op {vehicle}",
     "platform_deleteUser": "Gebruiker {name} ({email}) verwijderd",
     "platform_deleteUser": "Gebruiker {name} ({email}) verwijderd",
     "platform_grantSuperAdmin": "{name} ({email}) superbeheerder gemaakt",
     "platform_grantSuperAdmin": "{name} ({email}) superbeheerder gemaakt",
-    "platform_revokeSuperAdmin": "Superbeheerder ingetrokken voor {name} ({email})"
+    "platform_revokeSuperAdmin": "Superbeheerder ingetrokken voor {name} ({email})",
+    "service_cancel": "Factuur {ref} geannuleerd",
+    "service_cancelRefund": "Factuur {ref} geannuleerd en terugbetaling van {amount} geregistreerd"
   }
   }
 }
 }

+ 2 - 1
messages/nl/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Niet bekeken",
     "filterUnviewed": "Niet bekeken",
     "filterUnviewedHint": "Facturen die zijn verzonden maar nooit geopend",
     "filterUnviewedHint": "Facturen die zijn verzonden maar nooit geopend",
     "filterCompleted": "Alleen afgerond",
     "filterCompleted": "Alleen afgerond",
-    "filterCompletedHint": "Toon alleen werkorders die als afgerond zijn gemarkeerd. Wordt onthouden voor de volgende keer."
+    "filterCompletedHint": "Toon alleen werkorders die als afgerond zijn gemarkeerd. Wordt onthouden voor de volgende keer.",
+    "statusCancelled": "Geannuleerd"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Terugkerend",
     "title": "Terugkerend",

+ 3 - 1
messages/nl/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Eenheid / Uren",
     "qtyOrHours": "Eenheid / Uren",
     "customFieldsTitle": "Aanvullende informatie",
     "customFieldsTitle": "Aanvullende informatie",
     "telegramConnect": "Chat met ons op Telegram",
     "telegramConnect": "Chat met ons op Telegram",
-    "taxRegistrationLabel": "{name}-nr."
+    "taxRegistrationLabel": "{name}-nr.",
+    "cancelledTitle": "FACTUUR (GEANNULEERD)",
+    "cancelledNotice": "GEANNULEERD"
   },
   },
   "quote": {
   "quote": {
     "title": "OFFERTE",
     "title": "OFFERTE",

+ 4 - 2
messages/nl/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Vervaldatum",
     "summaryDue": "Vervaldatum",
     "summaryReference": "Uw referentie / inkoopnummer",
     "summaryReference": "Uw referentie / inkoopnummer",
     "summaryDate": "Datum",
     "summaryDate": "Datum",
-    "fullInvoice": "De volledige factuur"
+    "fullInvoice": "De volledige factuur",
+    "cancelled": "Geannuleerd"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Offertes",
     "title": "Offertes",
@@ -643,7 +644,8 @@
       "scheduled": "Ingepland",
       "scheduled": "Ingepland",
       "inProgress": "Bezig",
       "inProgress": "Bezig",
       "waitingParts": "Wacht op onderdelen",
       "waitingParts": "Wacht op onderdelen",
-      "completed": "Afgerond"
+      "completed": "Afgerond",
+      "cancelled": "Geannuleerd"
     },
     },
     "request": {
     "request": {
       "pending": "Wacht op antwoord",
       "pending": "Wacht op antwoord",

+ 31 - 3
messages/nl/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Factuur bijwerken",
     "designRefreshConfirm": "Factuur bijwerken",
     "designRefreshDone": "Deze factuur wordt nu afgedrukt met de huidige gegevens",
     "designRefreshDone": "Deze factuur wordt nu afgedrukt met de huidige gegevens",
     "designRefreshFailed": "Kon de factuur niet bijwerken",
     "designRefreshFailed": "Kon de factuur niet bijwerken",
-    "printWorkOrder": "Werkorder afdrukken"
+    "printWorkOrder": "Werkorder afdrukken",
+    "cancelInvoice": "Factuur annuleren"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Basisinformatie",
     "title": "Basisinformatie",
@@ -104,7 +105,8 @@
       "pending": "In afwachting",
       "pending": "In afwachting",
       "in_progress": "In uitvoering",
       "in_progress": "In uitvoering",
       "waiting_parts": "Wacht op onderdelen",
       "waiting_parts": "Wacht op onderdelen",
-      "completed": "Voltooid"
+      "completed": "Voltooid",
+      "cancelled": "Geannuleerd"
     },
     },
     "searchVehicles": "Voertuigen zoeken...",
     "searchVehicles": "Voertuigen zoeken...",
     "noVehicleFound": "Geen voertuig gevonden.",
     "noVehicleFound": "Geen voertuig gevonden.",
@@ -377,6 +379,7 @@
     "received": "Ontvangen betalingen",
     "received": "Ontvangen betalingen",
     "noneYet": "Nog niets betaald.",
     "noneYet": "Nog niets betaald.",
     "balanceDue": "Verschuldigd bedrag",
     "balanceDue": "Verschuldigd bedrag",
+    "cancelledNotice": "Geannuleerd: op deze factuur hoeft niets betaald te worden. Betalingen en terugbetalingen blijven hierboven staan.",
     "aboveBalance": "Het verschuldigde bedrag is {amount}. Een betaling kan niet hoger zijn.",
     "aboveBalance": "Het verschuldigde bedrag is {amount}. Een betaling kan niet hoger zijn.",
     "nothingDue": "Er staat niets meer open op deze factuur.",
     "nothingDue": "Er staat niets meer open op deze factuur.",
     "refund": "Terugbetaling"
     "refund": "Terugbetaling"
@@ -756,7 +759,9 @@
       "preview": "Voorbeeld factuur",
       "preview": "Voorbeeld factuur",
       "previewShort": "Voorbeeld",
       "previewShort": "Voorbeeld",
       "send": "Naar klant sturen",
       "send": "Naar klant sturen",
-      "sendShort": "Sturen"
+      "sendShort": "Sturen",
+      "cancelled": "Geannuleerd",
+      "nothingOwed": "Niets te betalen"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Meer info",
       "more": "Meer info",
@@ -886,5 +891,28 @@
     "hint": "Blijf om het te herstellen, of ga weg en verlies de wijzigingen sinds de laatste keer opslaan.",
     "hint": "Blijf om het te herstellen, of ga weg en verlies de wijzigingen sinds de laatste keer opslaan.",
     "stay": "Blijven en herstellen",
     "stay": "Blijven en herstellen",
     "leave": "Weggaan zonder opslaan"
     "leave": "Weggaan zonder opslaan"
+  },
+  "cancelInvoice": {
+    "title": "Factuur {number} annuleren?",
+    "titleNoNumber": "Deze factuur annuleren?",
+    "description": "Deze factuur is al naar de klant gegaan en kan daarom niet worden verwijderd: in de meeste landen moeten factuurnummers zonder gaten doorlopen.",
+    "pointKept": "De opdracht blijft bewaard en wordt als geannuleerd gemarkeerd. De factuur houdt haar nummer en kan niet meer worden gewijzigd.",
+    "pointShown": "De factuur, de gedeelde link, de pdf en het klantportaal tonen haar als geannuleerd.",
+    "pointReports": "Ze telt niet meer mee in omzet, belasting of openstaande bedragen.",
+    "pointLedger": "Een gekoppeld boekhoudpakket vervalt zijn kopie waar dat kan. Een kopie met betalingen blijft staan voor je boekhouder om te crediteren.",
+    "paidNotice": "De klant heeft {amount} op deze factuur betaald.",
+    "recordRefund": "Een terugbetaling aan de klant registreren",
+    "refundAmount": "Terugbetaald bedrag",
+    "refundMethod": "Terugbetaald via",
+    "refundTooMuch": "Een terugbetaling kan niet meer zijn dan {amount}.",
+    "refundNote": "Terugbetaling op geannuleerde factuur",
+    "noRefundHint": "Zonder terugbetaling blijven de betalingen staan zoals ze zijn.",
+    "keep": "Factuur behouden",
+    "confirm": "Factuur annuleren",
+    "done": "Factuur geannuleerd",
+    "failed": "Kon de factuur niet annuleren",
+    "bannerTitle": "Factuur {number} is geannuleerd",
+    "bannerTitleNoNumber": "Deze factuur is geannuleerd",
+    "bannerBody": "Ze houdt haar nummer en kan niet meer worden gewijzigd. De klant ziet haar als geannuleerd."
   }
   }
 }
 }

+ 3 - 1
messages/nl/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Gemiddeld",
     "findingSeverityNeedsWork": "Gemiddeld",
     "findingSeverityMonitor": "Laag",
     "findingSeverityMonitor": "Laag",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Aanvullende informatie"
+    "customFields": "Aanvullende informatie",
+    "cancelledTitle": "Deze factuur is geannuleerd",
+    "cancelledBody": "Hierop hoeft niets betaald te worden. Neem contact op met de werkplaats als je vragen hebt."
   },
   },
   "quote": {
   "quote": {
     "title": "Offerte",
     "title": "Offerte",

+ 5 - 2
messages/pl/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Usunięto wyposażenie",
     "equipment_delete": "Usunięto wyposażenie",
     "platform_deleteUser": "Usunięto użytkownika",
     "platform_deleteUser": "Usunięto użytkownika",
     "platform_grantSuperAdmin": "Nadano superadmina",
     "platform_grantSuperAdmin": "Nadano superadmina",
-    "platform_revokeSuperAdmin": "Odebrano superadmina"
+    "platform_revokeSuperAdmin": "Odebrano superadmina",
+    "service_cancel": "Anulowano fakturę"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Włączono logowanie dwuskładnikowe",
     "auth_twoFactorEnabled": "Włączono logowanie dwuskładnikowe",
@@ -424,6 +425,8 @@
     "equipment_meter": "Dodano licznik {meter} do {name} w {vehicle}",
     "equipment_meter": "Dodano licznik {meter} do {name} w {vehicle}",
     "platform_deleteUser": "Usunięto użytkownika {name} ({email})",
     "platform_deleteUser": "Usunięto użytkownika {name} ({email})",
     "platform_grantSuperAdmin": "Nadano uprawnienia superadmina: {name} ({email})",
     "platform_grantSuperAdmin": "Nadano uprawnienia superadmina: {name} ({email})",
-    "platform_revokeSuperAdmin": "Odebrano uprawnienia superadmina: {name} ({email})"
+    "platform_revokeSuperAdmin": "Odebrano uprawnienia superadmina: {name} ({email})",
+    "service_cancel": "Anulowano fakturę {ref}",
+    "service_cancelRefund": "Anulowano fakturę {ref} i zapisano zwrot {amount}"
   }
   }
 }
 }

+ 2 - 1
messages/pl/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Nieotwarte",
     "filterUnviewed": "Nieotwarte",
     "filterUnviewedHint": "Faktury wysłane, ale nigdy nieotwarte",
     "filterUnviewedHint": "Faktury wysłane, ale nigdy nieotwarte",
     "filterCompleted": "Tylko zakończone",
     "filterCompleted": "Tylko zakończone",
-    "filterCompletedHint": "Pokazuj tylko zlecenia oznaczone jako zakończone. Zapamiętywane na następny raz."
+    "filterCompletedHint": "Pokazuj tylko zlecenia oznaczone jako zakończone. Zapamiętywane na następny raz.",
+    "statusCancelled": "Anulowana"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Cykliczne",
     "title": "Cykliczne",

+ 3 - 1
messages/pl/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Jednostka / Godziny",
     "qtyOrHours": "Jednostka / Godziny",
     "customFieldsTitle": "Informacje dodatkowe",
     "customFieldsTitle": "Informacje dodatkowe",
     "telegramConnect": "Napisz do nas na Telegramie",
     "telegramConnect": "Napisz do nas na Telegramie",
-    "taxRegistrationLabel": "Nr {name}"
+    "taxRegistrationLabel": "Nr {name}",
+    "cancelledTitle": "FAKTURA (ANULOWANA)",
+    "cancelledNotice": "ANULOWANA"
   },
   },
   "quote": {
   "quote": {
     "title": "WYCENA",
     "title": "WYCENA",

+ 4 - 2
messages/pl/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Termin płatności",
     "summaryDue": "Termin płatności",
     "summaryReference": "Państwa referencja / nr zamówienia",
     "summaryReference": "Państwa referencja / nr zamówienia",
     "summaryDate": "Data",
     "summaryDate": "Data",
-    "fullInvoice": "Cała faktura"
+    "fullInvoice": "Cała faktura",
+    "cancelled": "Anulowana"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Wyceny",
     "title": "Wyceny",
@@ -643,7 +644,8 @@
       "scheduled": "Zaplanowane",
       "scheduled": "Zaplanowane",
       "inProgress": "W toku",
       "inProgress": "W toku",
       "waitingParts": "Czeka na części",
       "waitingParts": "Czeka na części",
-      "completed": "Zakończone"
+      "completed": "Zakończone",
+      "cancelled": "Anulowane"
     },
     },
     "request": {
     "request": {
       "pending": "Czeka na odpowiedź",
       "pending": "Czeka na odpowiedź",

+ 31 - 3
messages/pl/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Zaktualizuj fakturę",
     "designRefreshConfirm": "Zaktualizuj fakturę",
     "designRefreshDone": "Ta faktura jest teraz drukowana z bieżącymi danymi",
     "designRefreshDone": "Ta faktura jest teraz drukowana z bieżącymi danymi",
     "designRefreshFailed": "Nie udało się zaktualizować faktury",
     "designRefreshFailed": "Nie udało się zaktualizować faktury",
-    "printWorkOrder": "Drukuj zlecenie"
+    "printWorkOrder": "Drukuj zlecenie",
+    "cancelInvoice": "Anuluj fakturę"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Informacje Podstawowe",
     "title": "Informacje Podstawowe",
@@ -104,7 +105,8 @@
       "pending": "Oczekujące",
       "pending": "Oczekujące",
       "in_progress": "W Trakcie",
       "in_progress": "W Trakcie",
       "waiting_parts": "Oczekiwanie na Części",
       "waiting_parts": "Oczekiwanie na Części",
-      "completed": "Ukończone"
+      "completed": "Ukończone",
+      "cancelled": "Anulowana"
     },
     },
     "searchVehicles": "Szukaj pojazdów...",
     "searchVehicles": "Szukaj pojazdów...",
     "noVehicleFound": "Pojazd nie znaleziony.",
     "noVehicleFound": "Pojazd nie znaleziony.",
@@ -377,6 +379,7 @@
     "received": "Otrzymane płatności",
     "received": "Otrzymane płatności",
     "noneYet": "Nic jeszcze nie zapłacono.",
     "noneYet": "Nic jeszcze nie zapłacono.",
     "balanceDue": "Pozostało do zapłaty",
     "balanceDue": "Pozostało do zapłaty",
+    "cancelledNotice": "Anulowana: nic nie jest do zapłaty z tej faktury. Płatności i zwroty pozostają na liście powyżej.",
     "aboveBalance": "Do zapłaty pozostało {amount}. Płatność nie może być wyższa.",
     "aboveBalance": "Do zapłaty pozostało {amount}. Płatność nie może być wyższa.",
     "nothingDue": "Na tej fakturze nie ma nic do zapłaty.",
     "nothingDue": "Na tej fakturze nie ma nic do zapłaty.",
     "refund": "Zwrot"
     "refund": "Zwrot"
@@ -756,7 +759,9 @@
       "preview": "Podgląd faktury",
       "preview": "Podgląd faktury",
       "previewShort": "Podgląd",
       "previewShort": "Podgląd",
       "send": "Wyślij klientowi",
       "send": "Wyślij klientowi",
-      "sendShort": "Wyślij"
+      "sendShort": "Wyślij",
+      "cancelled": "Anulowana",
+      "nothingOwed": "Nic do zapłaty"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Więcej informacji",
       "more": "Więcej informacji",
@@ -886,5 +891,28 @@
     "hint": "Zostań, aby to poprawić, albo wyjdź i strać zmiany wprowadzone od ostatniego zapisu.",
     "hint": "Zostań, aby to poprawić, albo wyjdź i strać zmiany wprowadzone od ostatniego zapisu.",
     "stay": "Zostań i popraw",
     "stay": "Zostań i popraw",
     "leave": "Wyjdź bez zapisywania"
     "leave": "Wyjdź bez zapisywania"
+  },
+  "cancelInvoice": {
+    "title": "Anulować fakturę {number}?",
+    "titleNoNumber": "Anulować tę fakturę?",
+    "description": "Ta faktura trafiła już do klienta, więc nie można jej usunąć: w większości krajów numeracja faktur musi być ciągła.",
+    "pointKept": "Zlecenie zostaje zachowane i oznaczone jako anulowane. Faktura zachowuje numer i nie można jej już zmienić.",
+    "pointShown": "Faktura, udostępniony link, PDF i portal klienta pokazują ją jako anulowaną.",
+    "pointReports": "Nie jest już wliczana do przychodu, podatku ani należności.",
+    "pointLedger": "Połączony system księgowy anuluje swoją kopię, gdy to możliwe. Kopia z płatnościami zostaje dla księgowego do skorygowania.",
+    "paidNotice": "Klient zapłacił {amount} za tę fakturę.",
+    "recordRefund": "Zapisz zwrot pieniędzy oddanych klientowi",
+    "refundAmount": "Kwota zwrotu",
+    "refundMethod": "Zwrócono przez",
+    "refundTooMuch": "Zwrot nie może przekroczyć {amount}.",
+    "refundNote": "Zwrot za anulowaną fakturę",
+    "noRefundHint": "Bez zwrotu płatności pozostają zapisane bez zmian.",
+    "keep": "Zachowaj fakturę",
+    "confirm": "Anuluj fakturę",
+    "done": "Faktura anulowana",
+    "failed": "Nie udało się anulować faktury",
+    "bannerTitle": "Faktura {number} jest anulowana",
+    "bannerTitleNoNumber": "Ta faktura jest anulowana",
+    "bannerBody": "Zachowuje numer i nie można jej już zmienić. Klient widzi ją oznaczoną jako anulowaną."
   }
   }
 }
 }

+ 3 - 1
messages/pl/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Średni",
     "findingSeverityNeedsWork": "Średni",
     "findingSeverityMonitor": "Niski",
     "findingSeverityMonitor": "Niski",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Informacje dodatkowe"
+    "customFields": "Informacje dodatkowe",
+    "cancelledTitle": "Ta faktura została anulowana",
+    "cancelledBody": "Nic nie jest do zapłaty. W razie pytań skontaktuj się z warsztatem."
   },
   },
   "quote": {
   "quote": {
     "title": "Wycena",
     "title": "Wycena",

+ 5 - 2
messages/pt-BR/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Equipamento excluído",
     "equipment_delete": "Equipamento excluído",
     "platform_deleteUser": "Usuário excluído",
     "platform_deleteUser": "Usuário excluído",
     "platform_grantSuperAdmin": "Super admin concedido",
     "platform_grantSuperAdmin": "Super admin concedido",
-    "platform_revokeSuperAdmin": "Super admin removido"
+    "platform_revokeSuperAdmin": "Super admin removido",
+    "service_cancel": "Fatura cancelada"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Ativou o login em duas etapas",
     "auth_twoFactorEnabled": "Ativou o login em duas etapas",
@@ -424,6 +425,8 @@
     "equipment_meter": "Adicionou o medidor {meter} a {name} em {vehicle}",
     "equipment_meter": "Adicionou o medidor {meter} a {name} em {vehicle}",
     "platform_deleteUser": "Usuário {name} ({email}) excluído",
     "platform_deleteUser": "Usuário {name} ({email}) excluído",
     "platform_grantSuperAdmin": "{name} ({email}) agora é super admin",
     "platform_grantSuperAdmin": "{name} ({email}) agora é super admin",
-    "platform_revokeSuperAdmin": "Super admin removido de {name} ({email})"
+    "platform_revokeSuperAdmin": "Super admin removido de {name} ({email})",
+    "service_cancel": "Fatura {ref} cancelada",
+    "service_cancelRefund": "Fatura {ref} cancelada e reembolso de {amount} registrado"
   }
   }
 }
 }

+ 2 - 1
messages/pt-BR/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Não abertas",
     "filterUnviewed": "Não abertas",
     "filterUnviewedHint": "Faturas enviadas que nunca foram abertas",
     "filterUnviewedHint": "Faturas enviadas que nunca foram abertas",
     "filterCompleted": "Somente concluídas",
     "filterCompleted": "Somente concluídas",
-    "filterCompletedHint": "Mostra somente ordens de serviço marcadas como concluídas. Fica salvo para a próxima vez."
+    "filterCompletedHint": "Mostra somente ordens de serviço marcadas como concluídas. Fica salvo para a próxima vez.",
+    "statusCancelled": "Cancelada"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Recorrente",
     "title": "Recorrente",

+ 3 - 1
messages/pt-BR/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Unidade / Horas",
     "qtyOrHours": "Unidade / Horas",
     "customFieldsTitle": "Informações adicionais",
     "customFieldsTitle": "Informações adicionais",
     "telegramConnect": "Fale conosco no Telegram",
     "telegramConnect": "Fale conosco no Telegram",
-    "taxRegistrationLabel": "Nº {name}"
+    "taxRegistrationLabel": "Nº {name}",
+    "cancelledTitle": "FATURA (CANCELADA)",
+    "cancelledNotice": "CANCELADA"
   },
   },
   "quote": {
   "quote": {
     "title": "ORÇAMENTO",
     "title": "ORÇAMENTO",

+ 4 - 2
messages/pt-BR/portal.json

@@ -153,7 +153,8 @@
     "summaryDue": "Vencimento",
     "summaryDue": "Vencimento",
     "summaryReference": "Sua referência / nº do pedido",
     "summaryReference": "Sua referência / nº do pedido",
     "summaryDate": "Data",
     "summaryDate": "Data",
-    "fullInvoice": "A fatura completa"
+    "fullInvoice": "A fatura completa",
+    "cancelled": "Cancelada"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Orçamentos",
     "title": "Orçamentos",
@@ -384,7 +385,8 @@
       "scheduled": "Programado",
       "scheduled": "Programado",
       "inProgress": "Em andamento",
       "inProgress": "Em andamento",
       "waitingParts": "Aguardando peças",
       "waitingParts": "Aguardando peças",
-      "completed": "Concluído"
+      "completed": "Concluído",
+      "cancelled": "Cancelado"
     },
     },
     "request": {
     "request": {
       "pending": "Aguardando resposta",
       "pending": "Aguardando resposta",

+ 31 - 3
messages/pt-BR/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Atualizar a fatura",
     "designRefreshConfirm": "Atualizar a fatura",
     "designRefreshDone": "Esta fatura agora é impressa com os dados atuais",
     "designRefreshDone": "Esta fatura agora é impressa com os dados atuais",
     "designRefreshFailed": "Não foi possível atualizar a fatura",
     "designRefreshFailed": "Não foi possível atualizar a fatura",
-    "printWorkOrder": "Imprimir ordem de serviço"
+    "printWorkOrder": "Imprimir ordem de serviço",
+    "cancelInvoice": "Cancelar fatura"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Informações Básicas",
     "title": "Informações Básicas",
@@ -104,7 +105,8 @@
       "pending": "Pendente",
       "pending": "Pendente",
       "in_progress": "Em Progresso",
       "in_progress": "Em Progresso",
       "waiting_parts": "Aguardando Peças",
       "waiting_parts": "Aguardando Peças",
-      "completed": "Concluído"
+      "completed": "Concluído",
+      "cancelled": "Cancelada"
     },
     },
     "searchVehicles": "Pesquisar veículos...",
     "searchVehicles": "Pesquisar veículos...",
     "noVehicleFound": "Nenhum veículo encontrado.",
     "noVehicleFound": "Nenhum veículo encontrado.",
@@ -377,6 +379,7 @@
     "received": "Pagamentos recebidos",
     "received": "Pagamentos recebidos",
     "noneYet": "Nada pago ainda.",
     "noneYet": "Nada pago ainda.",
     "balanceDue": "Saldo devedor",
     "balanceDue": "Saldo devedor",
+    "cancelledNotice": "Cancelada: nada é devido nesta fatura. Os pagamentos e reembolsos continuam listados acima.",
     "aboveBalance": "O saldo devedor é {amount}. Um pagamento não pode ser maior que isso.",
     "aboveBalance": "O saldo devedor é {amount}. Um pagamento não pode ser maior que isso.",
     "nothingDue": "Não há nada a pagar nesta fatura.",
     "nothingDue": "Não há nada a pagar nesta fatura.",
     "refund": "Reembolso"
     "refund": "Reembolso"
@@ -756,7 +759,9 @@
       "preview": "Pré-visualizar fatura",
       "preview": "Pré-visualizar fatura",
       "previewShort": "Pré-visualizar",
       "previewShort": "Pré-visualizar",
       "send": "Enviar ao cliente",
       "send": "Enviar ao cliente",
-      "sendShort": "Enviar"
+      "sendShort": "Enviar",
+      "cancelled": "Cancelada",
+      "nothingOwed": "Nada a pagar"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Mais informações",
       "more": "Mais informações",
@@ -886,5 +891,28 @@
     "hint": "Fique para corrigir ou saia e perca as alterações feitas desde o último salvamento.",
     "hint": "Fique para corrigir ou saia e perca as alterações feitas desde o último salvamento.",
     "stay": "Ficar e corrigir",
     "stay": "Ficar e corrigir",
     "leave": "Sair sem salvar"
     "leave": "Sair sem salvar"
+  },
+  "cancelInvoice": {
+    "title": "Cancelar a fatura {number}?",
+    "titleNoNumber": "Cancelar esta fatura?",
+    "description": "Esta fatura já foi enviada ao cliente, por isso não pode ser excluída: a maioria dos países exige números de fatura sem lacunas.",
+    "pointKept": "O serviço é mantido e marcado como cancelado. A fatura mantém seu número e não pode mais ser alterada.",
+    "pointShown": "A fatura, o link compartilhado, o PDF e o portal do cliente a mostram como cancelada.",
+    "pointReports": "Ela deixa de contar na receita, nos impostos e nos valores em aberto.",
+    "pointLedger": "Um sistema contábil conectado anula sua cópia quando possível. Uma cópia com pagamentos fica para seu contador emitir o crédito.",
+    "paidNotice": "O cliente pagou {amount} nesta fatura.",
+    "recordRefund": "Registrar um reembolso do valor devolvido ao cliente",
+    "refundAmount": "Valor do reembolso",
+    "refundMethod": "Reembolsado por",
+    "refundTooMuch": "Um reembolso não pode ser maior que {amount}.",
+    "refundNote": "Reembolso de fatura cancelada",
+    "noRefundHint": "Sem reembolso, os pagamentos continuam registrados como estão.",
+    "keep": "Manter fatura",
+    "confirm": "Cancelar fatura",
+    "done": "Fatura cancelada",
+    "failed": "Não foi possível cancelar a fatura",
+    "bannerTitle": "A fatura {number} está cancelada",
+    "bannerTitleNoNumber": "Esta fatura está cancelada",
+    "bannerBody": "Ela mantém seu número e não pode mais ser alterada. O cliente a vê marcada como cancelada."
   }
   }
 }
 }

+ 3 - 1
messages/pt-BR/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Média",
     "findingSeverityNeedsWork": "Média",
     "findingSeverityMonitor": "Baixa",
     "findingSeverityMonitor": "Baixa",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Informações adicionais"
+    "customFields": "Informações adicionais",
+    "cancelledTitle": "Esta fatura foi cancelada",
+    "cancelledBody": "Nada é devido. Entre em contato com a oficina se tiver dúvidas."
   },
   },
   "quote": {
   "quote": {
     "title": "Orçamento",
     "title": "Orçamento",

+ 5 - 2
messages/pt-PT/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Equipamento eliminado",
     "equipment_delete": "Equipamento eliminado",
     "platform_deleteUser": "Utilizador eliminado",
     "platform_deleteUser": "Utilizador eliminado",
     "platform_grantSuperAdmin": "Super admin concedido",
     "platform_grantSuperAdmin": "Super admin concedido",
-    "platform_revokeSuperAdmin": "Super admin removido"
+    "platform_revokeSuperAdmin": "Super admin removido",
+    "service_cancel": "Fatura anulada"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Ativou o início de sessão em dois passos",
     "auth_twoFactorEnabled": "Ativou o início de sessão em dois passos",
@@ -424,6 +425,8 @@
     "equipment_meter": "Adicionou o contador {meter} a {name} em {vehicle}",
     "equipment_meter": "Adicionou o contador {meter} a {name} em {vehicle}",
     "platform_deleteUser": "Utilizador {name} ({email}) eliminado",
     "platform_deleteUser": "Utilizador {name} ({email}) eliminado",
     "platform_grantSuperAdmin": "{name} ({email}) tornou-se super admin",
     "platform_grantSuperAdmin": "{name} ({email}) tornou-se super admin",
-    "platform_revokeSuperAdmin": "Super admin removido de {name} ({email})"
+    "platform_revokeSuperAdmin": "Super admin removido de {name} ({email})",
+    "service_cancel": "Fatura {ref} anulada",
+    "service_cancelRefund": "Fatura {ref} anulada e reembolso de {amount} registado"
   }
   }
 }
 }

+ 2 - 1
messages/pt-PT/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Não abertas",
     "filterUnviewed": "Não abertas",
     "filterUnviewedHint": "Faturas enviadas que nunca foram abertas",
     "filterUnviewedHint": "Faturas enviadas que nunca foram abertas",
     "filterCompleted": "Só concluídas",
     "filterCompleted": "Só concluídas",
-    "filterCompletedHint": "Mostra só as ordens de reparação marcadas como concluídas. Fica guardado para a próxima vez."
+    "filterCompletedHint": "Mostra só as ordens de reparação marcadas como concluídas. Fica guardado para a próxima vez.",
+    "statusCancelled": "Anulada"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Recorrente",
     "title": "Recorrente",

+ 3 - 1
messages/pt-PT/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Unidades / Horas",
     "qtyOrHours": "Unidades / Horas",
     "customFieldsTitle": "Informações adicionais",
     "customFieldsTitle": "Informações adicionais",
     "telegramConnect": "Fale connosco no Telegram",
     "telegramConnect": "Fale connosco no Telegram",
-    "taxRegistrationLabel": "N.º {name}"
+    "taxRegistrationLabel": "N.º {name}",
+    "cancelledTitle": "FATURA (ANULADA)",
+    "cancelledNotice": "ANULADA"
   },
   },
   "quote": {
   "quote": {
     "title": "ORÇAMENTO",
     "title": "ORÇAMENTO",

+ 4 - 2
messages/pt-PT/portal.json

@@ -153,7 +153,8 @@
     "summaryDue": "Data de vencimento",
     "summaryDue": "Data de vencimento",
     "summaryReference": "A sua referência / n.º de encomenda",
     "summaryReference": "A sua referência / n.º de encomenda",
     "summaryDate": "Data",
     "summaryDate": "Data",
-    "fullInvoice": "A fatura completa"
+    "fullInvoice": "A fatura completa",
+    "cancelled": "Anulada"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Orçamentos",
     "title": "Orçamentos",
@@ -384,7 +385,8 @@
       "scheduled": "Agendado",
       "scheduled": "Agendado",
       "inProgress": "Em curso",
       "inProgress": "Em curso",
       "waitingParts": "A aguardar peças",
       "waitingParts": "A aguardar peças",
-      "completed": "Concluído"
+      "completed": "Concluído",
+      "cancelled": "Anulado"
     },
     },
     "request": {
     "request": {
       "pending": "A aguardar resposta",
       "pending": "A aguardar resposta",

+ 31 - 3
messages/pt-PT/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Atualizar a fatura",
     "designRefreshConfirm": "Atualizar a fatura",
     "designRefreshDone": "Esta fatura passa a ser impressa com os dados atuais",
     "designRefreshDone": "Esta fatura passa a ser impressa com os dados atuais",
     "designRefreshFailed": "Não foi possível atualizar a fatura",
     "designRefreshFailed": "Não foi possível atualizar a fatura",
-    "printWorkOrder": "Imprimir ordem de trabalho"
+    "printWorkOrder": "Imprimir ordem de trabalho",
+    "cancelInvoice": "Anular fatura"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Informações básicas",
     "title": "Informações básicas",
@@ -104,7 +105,8 @@
       "pending": "Pendente",
       "pending": "Pendente",
       "in_progress": "Em curso",
       "in_progress": "Em curso",
       "waiting_parts": "A aguardar peças",
       "waiting_parts": "A aguardar peças",
-      "completed": "Concluído"
+      "completed": "Concluído",
+      "cancelled": "Anulada"
     },
     },
     "searchVehicles": "Pesquisar viaturas...",
     "searchVehicles": "Pesquisar viaturas...",
     "noVehicleFound": "Nenhuma viatura encontrada.",
     "noVehicleFound": "Nenhuma viatura encontrada.",
@@ -377,6 +379,7 @@
     "received": "Pagamentos recebidos",
     "received": "Pagamentos recebidos",
     "noneYet": "Ainda nada pago.",
     "noneYet": "Ainda nada pago.",
     "balanceDue": "Valor em dívida",
     "balanceDue": "Valor em dívida",
+    "cancelledNotice": "Anulada: nada é devido nesta fatura. Os pagamentos e reembolsos continuam listados acima.",
     "aboveBalance": "O valor em dívida é {amount}. Um pagamento não pode ser superior.",
     "aboveBalance": "O valor em dívida é {amount}. Um pagamento não pode ser superior.",
     "nothingDue": "Não há nada em dívida nesta fatura.",
     "nothingDue": "Não há nada em dívida nesta fatura.",
     "refund": "Reembolso"
     "refund": "Reembolso"
@@ -756,7 +759,9 @@
       "preview": "Pré-visualizar fatura",
       "preview": "Pré-visualizar fatura",
       "previewShort": "Pré-visualizar",
       "previewShort": "Pré-visualizar",
       "send": "Enviar ao cliente",
       "send": "Enviar ao cliente",
-      "sendShort": "Enviar"
+      "sendShort": "Enviar",
+      "cancelled": "Anulada",
+      "nothingOwed": "Nada a pagar"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Mais informações",
       "more": "Mais informações",
@@ -886,5 +891,28 @@
     "hint": "Fique para corrigir ou saia e perca as alterações feitas desde a última gravação.",
     "hint": "Fique para corrigir ou saia e perca as alterações feitas desde a última gravação.",
     "stay": "Ficar e corrigir",
     "stay": "Ficar e corrigir",
     "leave": "Sair sem guardar"
     "leave": "Sair sem guardar"
+  },
+  "cancelInvoice": {
+    "title": "Anular a fatura {number}?",
+    "titleNoNumber": "Anular esta fatura?",
+    "description": "Esta fatura já foi enviada ao cliente, por isso não pode ser eliminada: a maioria dos países exige números de fatura sem falhas.",
+    "pointKept": "O trabalho é mantido e marcado como anulado. A fatura mantém o seu número e já não pode ser alterada.",
+    "pointShown": "A fatura, a ligação partilhada, o PDF e o portal do cliente mostram-na como anulada.",
+    "pointReports": "Deixa de contar na receita, nos impostos e nos valores em dívida.",
+    "pointLedger": "Um sistema de contabilidade ligado anula a sua cópia quando possível. Uma cópia com pagamentos fica para o seu contabilista creditar.",
+    "paidNotice": "O cliente pagou {amount} nesta fatura.",
+    "recordRefund": "Registar um reembolso do valor devolvido ao cliente",
+    "refundAmount": "Valor do reembolso",
+    "refundMethod": "Reembolsado por",
+    "refundTooMuch": "Um reembolso não pode ser superior a {amount}.",
+    "refundNote": "Reembolso de fatura anulada",
+    "noRefundHint": "Sem reembolso, os pagamentos continuam registados como estão.",
+    "keep": "Manter fatura",
+    "confirm": "Anular fatura",
+    "done": "Fatura anulada",
+    "failed": "Não foi possível anular a fatura",
+    "bannerTitle": "A fatura {number} está anulada",
+    "bannerTitleNoNumber": "Esta fatura está anulada",
+    "bannerBody": "Mantém o seu número e já não pode ser alterada. O cliente vê-a marcada como anulada."
   }
   }
 }
 }

+ 3 - 1
messages/pt-PT/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Média",
     "findingSeverityNeedsWork": "Média",
     "findingSeverityMonitor": "Baixa",
     "findingSeverityMonitor": "Baixa",
     "tel": "Tel.: {phone}",
     "tel": "Tel.: {phone}",
-    "customFields": "Informações adicionais"
+    "customFields": "Informações adicionais",
+    "cancelledTitle": "Esta fatura foi anulada",
+    "cancelledBody": "Nada é devido. Contacte a oficina se tiver dúvidas."
   },
   },
   "quote": {
   "quote": {
     "title": "Orçamento",
     "title": "Orçamento",

+ 5 - 2
messages/ru/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Удалено оборудование",
     "equipment_delete": "Удалено оборудование",
     "platform_deleteUser": "Удалён пользователь",
     "platform_deleteUser": "Удалён пользователь",
     "platform_grantSuperAdmin": "Назначен суперадмин",
     "platform_grantSuperAdmin": "Назначен суперадмин",
-    "platform_revokeSuperAdmin": "Сняты права суперадмина"
+    "platform_revokeSuperAdmin": "Сняты права суперадмина",
+    "service_cancel": "Счёт аннулирован"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "Включён двухфакторный вход",
     "auth_twoFactorEnabled": "Включён двухфакторный вход",
@@ -424,6 +425,8 @@
     "equipment_meter": "Счётчик {meter} добавлен к {name} на {vehicle}",
     "equipment_meter": "Счётчик {meter} добавлен к {name} на {vehicle}",
     "platform_deleteUser": "Удалён пользователь {name} ({email})",
     "platform_deleteUser": "Удалён пользователь {name} ({email})",
     "platform_grantSuperAdmin": "{name} ({email}) назначен суперадмином",
     "platform_grantSuperAdmin": "{name} ({email}) назначен суперадмином",
-    "platform_revokeSuperAdmin": "С {name} ({email}) сняты права суперадмина"
+    "platform_revokeSuperAdmin": "С {name} ({email}) сняты права суперадмина",
+    "service_cancel": "Счёт {ref} аннулирован",
+    "service_cancelRefund": "Счёт {ref} аннулирован, записан возврат {amount}"
   }
   }
 }
 }

+ 2 - 1
messages/ru/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Не открыты",
     "filterUnviewed": "Не открыты",
     "filterUnviewedHint": "Счета, которые отправлены, но ни разу не открыты",
     "filterUnviewedHint": "Счета, которые отправлены, но ни разу не открыты",
     "filterCompleted": "Только завершённые",
     "filterCompleted": "Только завершённые",
-    "filterCompletedHint": "Показывать только заказ-наряды со статусом «завершён». Запоминается на следующий раз."
+    "filterCompletedHint": "Показывать только заказ-наряды со статусом «завершён». Запоминается на следующий раз.",
+    "statusCancelled": "Аннулирован"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Периодические",
     "title": "Периодические",

+ 3 - 1
messages/ru/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Услуга / Часы",
     "qtyOrHours": "Услуга / Часы",
     "customFieldsTitle": "Дополнительная информация",
     "customFieldsTitle": "Дополнительная информация",
     "telegramConnect": "Напишите нам в Telegram",
     "telegramConnect": "Напишите нам в Telegram",
-    "taxRegistrationLabel": "№ {name}"
+    "taxRegistrationLabel": "№ {name}",
+    "cancelledTitle": "СЧЁТ (АННУЛИРОВАН)",
+    "cancelledNotice": "АННУЛИРОВАН"
   },
   },
   "quote": {
   "quote": {
     "title": "КОММЕРЧЕСКОЕ ПРЕДЛОЖЕНИЕ",
     "title": "КОММЕРЧЕСКОЕ ПРЕДЛОЖЕНИЕ",

+ 4 - 2
messages/ru/portal.json

@@ -366,7 +366,8 @@
     "summaryDue": "Срок оплаты",
     "summaryDue": "Срок оплаты",
     "summaryReference": "Ваш референс / № заказа",
     "summaryReference": "Ваш референс / № заказа",
     "summaryDate": "Дата",
     "summaryDate": "Дата",
-    "fullInvoice": "Полный счёт"
+    "fullInvoice": "Полный счёт",
+    "cancelled": "Аннулирован"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Предложения",
     "title": "Предложения",
@@ -643,7 +644,8 @@
       "scheduled": "Запланирован",
       "scheduled": "Запланирован",
       "inProgress": "В работе",
       "inProgress": "В работе",
       "waitingParts": "Ожидает запчасти",
       "waitingParts": "Ожидает запчасти",
-      "completed": "Завершён"
+      "completed": "Завершён",
+      "cancelled": "Аннулирован"
     },
     },
     "request": {
     "request": {
       "pending": "Ждёт ответа",
       "pending": "Ждёт ответа",

+ 31 - 3
messages/ru/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Обновить счёт",
     "designRefreshConfirm": "Обновить счёт",
     "designRefreshDone": "Этот счёт теперь печатается с текущими данными",
     "designRefreshDone": "Этот счёт теперь печатается с текущими данными",
     "designRefreshFailed": "Не удалось обновить счёт",
     "designRefreshFailed": "Не удалось обновить счёт",
-    "printWorkOrder": "Печать заказ-наряда"
+    "printWorkOrder": "Печать заказ-наряда",
+    "cancelInvoice": "Аннулировать счёт"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Основная информация",
     "title": "Основная информация",
@@ -104,7 +105,8 @@
       "pending": "Ожидает",
       "pending": "Ожидает",
       "in_progress": "В работе",
       "in_progress": "В работе",
       "waiting_parts": "Ожидание запчастей",
       "waiting_parts": "Ожидание запчастей",
-      "completed": "Завершено"
+      "completed": "Завершено",
+      "cancelled": "Аннулирован"
     },
     },
     "searchVehicles": "Поиск транспортных средств...",
     "searchVehicles": "Поиск транспортных средств...",
     "noVehicleFound": "Транспортное средство не найдено.",
     "noVehicleFound": "Транспортное средство не найдено.",
@@ -377,6 +379,7 @@
     "received": "Полученные платежи",
     "received": "Полученные платежи",
     "noneYet": "Оплат пока нет.",
     "noneYet": "Оплат пока нет.",
     "balanceDue": "К оплате",
     "balanceDue": "К оплате",
+    "cancelledNotice": "Аннулирован: по этому счёту ничего не нужно платить. Платежи и возвраты остаются в списке выше.",
     "aboveBalance": "К оплате {amount}. Платёж не может быть больше этой суммы.",
     "aboveBalance": "К оплате {amount}. Платёж не может быть больше этой суммы.",
     "nothingDue": "По этому счёту ничего не причитается.",
     "nothingDue": "По этому счёту ничего не причитается.",
     "refund": "Возврат"
     "refund": "Возврат"
@@ -756,7 +759,9 @@
       "preview": "Просмотр счёта",
       "preview": "Просмотр счёта",
       "previewShort": "Просмотр",
       "previewShort": "Просмотр",
       "send": "Отправить клиенту",
       "send": "Отправить клиенту",
-      "sendShort": "Отправить"
+      "sendShort": "Отправить",
+      "cancelled": "Аннулирован",
+      "nothingOwed": "Ничего не нужно платить"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Подробнее",
       "more": "Подробнее",
@@ -886,5 +891,28 @@
     "hint": "Останьтесь, чтобы исправить, или уйдите и потеряйте изменения с момента последнего сохранения.",
     "hint": "Останьтесь, чтобы исправить, или уйдите и потеряйте изменения с момента последнего сохранения.",
     "stay": "Остаться и исправить",
     "stay": "Остаться и исправить",
     "leave": "Уйти без сохранения"
     "leave": "Уйти без сохранения"
+  },
+  "cancelInvoice": {
+    "title": "Аннулировать счёт {number}?",
+    "titleNoNumber": "Аннулировать этот счёт?",
+    "description": "Этот счёт уже отправлен клиенту, поэтому его нельзя удалить: в большинстве стран нумерация счетов должна быть без пропусков.",
+    "pointKept": "Заказ сохраняется и помечается как аннулированный. Счёт сохраняет свой номер и больше не может быть изменён.",
+    "pointShown": "Счёт, его общая ссылка, PDF и клиентский портал показывают его как аннулированный.",
+    "pointReports": "Он больше не учитывается в выручке, налогах и задолженности.",
+    "pointLedger": "Подключённая бухгалтерская система аннулирует свою копию, где это возможно. Копия с платежами остаётся бухгалтеру для сторнирования.",
+    "paidNotice": "Клиент оплатил {amount} по этому счёту.",
+    "recordRefund": "Записать возврат денег клиенту",
+    "refundAmount": "Сумма возврата",
+    "refundMethod": "Способ возврата",
+    "refundTooMuch": "Возврат не может превышать {amount}.",
+    "refundNote": "Возврат по аннулированному счёту",
+    "noRefundHint": "Без возврата платежи остаются записанными как есть.",
+    "keep": "Оставить счёт",
+    "confirm": "Аннулировать счёт",
+    "done": "Счёт аннулирован",
+    "failed": "Не удалось аннулировать счёт",
+    "bannerTitle": "Счёт {number} аннулирован",
+    "bannerTitleNoNumber": "Этот счёт аннулирован",
+    "bannerBody": "Он сохраняет номер и больше не может быть изменён. Клиент видит его помеченным как аннулированный."
   }
   }
 }
 }

+ 3 - 1
messages/ru/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Средний",
     "findingSeverityNeedsWork": "Средний",
     "findingSeverityMonitor": "Низкий",
     "findingSeverityMonitor": "Низкий",
     "tel": "Тел: {phone}",
     "tel": "Тел: {phone}",
-    "customFields": "Дополнительные сведения"
+    "customFields": "Дополнительные сведения",
+    "cancelledTitle": "Этот счёт аннулирован",
+    "cancelledBody": "По нему ничего не нужно платить. Если есть вопросы, свяжитесь с мастерской."
   },
   },
   "quote": {
   "quote": {
     "title": "Предложение",
     "title": "Предложение",

+ 5 - 2
messages/tr/audit.json

@@ -232,7 +232,8 @@
     "equipment_delete": "Ekipman Silindi",
     "equipment_delete": "Ekipman Silindi",
     "platform_deleteUser": "Kullanıcı silindi",
     "platform_deleteUser": "Kullanıcı silindi",
     "platform_grantSuperAdmin": "Süper yönetici yetkisi verildi",
     "platform_grantSuperAdmin": "Süper yönetici yetkisi verildi",
-    "platform_revokeSuperAdmin": "Süper yönetici yetkisi kaldırıldı"
+    "platform_revokeSuperAdmin": "Süper yönetici yetkisi kaldırıldı",
+    "service_cancel": "Fatura iptal edildi"
   },
   },
   "summary": {
   "summary": {
     "auth_twoFactorEnabled": "İki adımlı giriş açıldı",
     "auth_twoFactorEnabled": "İki adımlı giriş açıldı",
@@ -424,6 +425,8 @@
     "equipment_meter": "{vehicle} üzerindeki {name} için {meter} sayacı eklendi",
     "equipment_meter": "{vehicle} üzerindeki {name} için {meter} sayacı eklendi",
     "platform_deleteUser": "{name} ({email}) kullanıcısı silindi",
     "platform_deleteUser": "{name} ({email}) kullanıcısı silindi",
     "platform_grantSuperAdmin": "{name} ({email}) süper yönetici yapıldı",
     "platform_grantSuperAdmin": "{name} ({email}) süper yönetici yapıldı",
-    "platform_revokeSuperAdmin": "{name} ({email}) kullanıcısının süper yöneticiliği kaldırıldı"
+    "platform_revokeSuperAdmin": "{name} ({email}) kullanıcısının süper yöneticiliği kaldırıldı",
+    "service_cancel": "{ref} numaralı fatura iptal edildi",
+    "service_cancelRefund": "{ref} numaralı fatura iptal edildi ve {amount} iade kaydedildi"
   }
   }
 }
 }

+ 2 - 1
messages/tr/billing.json

@@ -27,7 +27,8 @@
     "filterUnviewed": "Görüntülenmeyen",
     "filterUnviewed": "Görüntülenmeyen",
     "filterUnviewedHint": "Gönderilen ancak hiç açılmayan faturalar",
     "filterUnviewedHint": "Gönderilen ancak hiç açılmayan faturalar",
     "filterCompleted": "Yalnızca tamamlananlar",
     "filterCompleted": "Yalnızca tamamlananlar",
-    "filterCompletedHint": "Yalnızca tamamlandı olarak işaretlenen iş emirlerini göster. Bir sonraki sefer için hatırlanır."
+    "filterCompletedHint": "Yalnızca tamamlandı olarak işaretlenen iş emirlerini göster. Bir sonraki sefer için hatırlanır.",
+    "statusCancelled": "İptal edildi"
   },
   },
   "recurring": {
   "recurring": {
     "title": "Tekrarlayan",
     "title": "Tekrarlayan",

+ 3 - 1
messages/tr/pdf.json

@@ -90,7 +90,9 @@
     "qtyOrHours": "Birim / Saat",
     "qtyOrHours": "Birim / Saat",
     "customFieldsTitle": "Ek bilgiler",
     "customFieldsTitle": "Ek bilgiler",
     "telegramConnect": "Telegram'dan bize yazın",
     "telegramConnect": "Telegram'dan bize yazın",
-    "taxRegistrationLabel": "{name} No."
+    "taxRegistrationLabel": "{name} No.",
+    "cancelledTitle": "FATURA (İPTAL EDİLDİ)",
+    "cancelledNotice": "İPTAL EDİLDİ"
   },
   },
   "quote": {
   "quote": {
     "title": "TEKLİF",
     "title": "TEKLİF",

+ 4 - 2
messages/tr/portal.json

@@ -153,7 +153,8 @@
     "summaryDue": "Son ödeme tarihi",
     "summaryDue": "Son ödeme tarihi",
     "summaryReference": "Referansınız / sipariş no",
     "summaryReference": "Referansınız / sipariş no",
     "summaryDate": "Tarih",
     "summaryDate": "Tarih",
-    "fullInvoice": "Faturanın tamamı"
+    "fullInvoice": "Faturanın tamamı",
+    "cancelled": "İptal edildi"
   },
   },
   "quotes": {
   "quotes": {
     "title": "Teklifler",
     "title": "Teklifler",
@@ -384,7 +385,8 @@
       "scheduled": "Planlandı",
       "scheduled": "Planlandı",
       "inProgress": "Devam ediyor",
       "inProgress": "Devam ediyor",
       "waitingParts": "Parça bekleniyor",
       "waitingParts": "Parça bekleniyor",
-      "completed": "Tamamlandı"
+      "completed": "Tamamlandı",
+      "cancelled": "İptal edildi"
     },
     },
     "request": {
     "request": {
       "pending": "Yanıt bekleniyor",
       "pending": "Yanıt bekleniyor",

+ 31 - 3
messages/tr/service.json

@@ -66,7 +66,8 @@
     "designRefreshConfirm": "Faturayı güncelle",
     "designRefreshConfirm": "Faturayı güncelle",
     "designRefreshDone": "Bu fatura artık güncel bilgilerle yazdırılıyor",
     "designRefreshDone": "Bu fatura artık güncel bilgilerle yazdırılıyor",
     "designRefreshFailed": "Fatura güncellenemedi",
     "designRefreshFailed": "Fatura güncellenemedi",
-    "printWorkOrder": "İş emrini yazdır"
+    "printWorkOrder": "İş emrini yazdır",
+    "cancelInvoice": "Faturayı iptal et"
   },
   },
   "basicInfo": {
   "basicInfo": {
     "title": "Temel Bilgiler",
     "title": "Temel Bilgiler",
@@ -104,7 +105,8 @@
       "pending": "Beklemede",
       "pending": "Beklemede",
       "in_progress": "Devam Ediyor",
       "in_progress": "Devam Ediyor",
       "waiting_parts": "Parça Bekleniyor",
       "waiting_parts": "Parça Bekleniyor",
-      "completed": "Tamamlandı"
+      "completed": "Tamamlandı",
+      "cancelled": "İptal edildi"
     },
     },
     "searchVehicles": "Araç ara...",
     "searchVehicles": "Araç ara...",
     "noVehicleFound": "Araç bulunamadı.",
     "noVehicleFound": "Araç bulunamadı.",
@@ -377,6 +379,7 @@
     "received": "Alınan ödemeler",
     "received": "Alınan ödemeler",
     "noneYet": "Henüz ödeme yapılmadı.",
     "noneYet": "Henüz ödeme yapılmadı.",
     "balanceDue": "Kalan bakiye",
     "balanceDue": "Kalan bakiye",
+    "cancelledNotice": "İptal edildi: bu fatura için ödenecek bir şey yok. Ödemeler ve iadeler yukarıda listelenmeye devam eder.",
     "aboveBalance": "Kalan bakiye {amount}. Ödeme bundan fazla olamaz.",
     "aboveBalance": "Kalan bakiye {amount}. Ödeme bundan fazla olamaz.",
     "nothingDue": "Bu faturada ödenecek bir şey kalmadı.",
     "nothingDue": "Bu faturada ödenecek bir şey kalmadı.",
     "refund": "İade"
     "refund": "İade"
@@ -756,7 +759,9 @@
       "preview": "Faturayı önizle",
       "preview": "Faturayı önizle",
       "previewShort": "Önizle",
       "previewShort": "Önizle",
       "send": "Müşteriye gönder",
       "send": "Müşteriye gönder",
-      "sendShort": "Gönder"
+      "sendShort": "Gönder",
+      "cancelled": "İptal edildi",
+      "nothingOwed": "Ödenecek bir şey yok"
     },
     },
     "vehicleInfo": {
     "vehicleInfo": {
       "more": "Daha fazla bilgi",
       "more": "Daha fazla bilgi",
@@ -886,5 +891,28 @@
     "hint": "Düzeltmek için kalın ya da çıkın ve son kayıttan bu yana yapılan değişiklikleri kaybedin.",
     "hint": "Düzeltmek için kalın ya da çıkın ve son kayıttan bu yana yapılan değişiklikleri kaybedin.",
     "stay": "Kal ve düzelt",
     "stay": "Kal ve düzelt",
     "leave": "Kaydetmeden çık"
     "leave": "Kaydetmeden çık"
+  },
+  "cancelInvoice": {
+    "title": "{number} numaralı fatura iptal edilsin mi?",
+    "titleNoNumber": "Bu fatura iptal edilsin mi?",
+    "description": "Bu fatura müşteriye ulaştı, bu yüzden silinemez: çoğu ülkede fatura numaraları boşluksuz olmalıdır.",
+    "pointKept": "İş korunur ve iptal edildi olarak işaretlenir. Fatura numarasını korur ve artık değiştirilemez.",
+    "pointShown": "Fatura, paylaşılan bağlantısı, PDF ve müşteri portalı onu iptal edildi olarak gösterir.",
+    "pointReports": "Artık gelir, vergi veya alacaklarda sayılmaz.",
+    "pointLedger": "Bağlı bir muhasebe sistemi, mümkün olduğunda kendi kopyasını iptal eder. Ödeme içeren bir kopya, muhasebecinizin alacak dekontu için bırakılır.",
+    "paidNotice": "Müşteri bu fatura için {amount} ödedi.",
+    "recordRefund": "Müşteriye geri ödenen para için iade kaydet",
+    "refundAmount": "İade tutarı",
+    "refundMethod": "İade yöntemi",
+    "refundTooMuch": "İade {amount} tutarından fazla olamaz.",
+    "refundNote": "İptal edilen fatura iadesi",
+    "noRefundHint": "İade olmadan ödemeler olduğu gibi kayıtlı kalır.",
+    "keep": "Faturayı koru",
+    "confirm": "Faturayı iptal et",
+    "done": "Fatura iptal edildi",
+    "failed": "Fatura iptal edilemedi",
+    "bannerTitle": "{number} numaralı fatura iptal edildi",
+    "bannerTitleNoNumber": "Bu fatura iptal edildi",
+    "bannerBody": "Numarasını korur ve artık değiştirilemez. Müşteri onu iptal edildi olarak görür."
   }
   }
 }
 }

+ 3 - 1
messages/tr/share.json

@@ -74,7 +74,9 @@
     "findingSeverityNeedsWork": "Orta",
     "findingSeverityNeedsWork": "Orta",
     "findingSeverityMonitor": "Düşük",
     "findingSeverityMonitor": "Düşük",
     "tel": "Tel: {phone}",
     "tel": "Tel: {phone}",
-    "customFields": "Ek bilgiler"
+    "customFields": "Ek bilgiler",
+    "cancelledTitle": "Bu fatura iptal edildi",
+    "cancelledBody": "Bu fatura için ödenecek bir şey yok. Sorularınız için atölyeyle iletişime geçin."
   },
   },
   "quote": {
   "quote": {
     "title": "Teklif",
     "title": "Teklif",

+ 35 - 0
src/__tests__/api/tech-helper-jobs.test.ts

@@ -90,6 +90,14 @@ vi.mock('@/lib/db', () => ({
           return { id: where.id, status: data.status }
           return { id: where.id, status: data.status }
         }
         }
       ),
       ),
+      // The phone's move, written only while the job is not cancelled.
+      updateMany: vi.fn(
+        async ({ where, data }: { where: { id: string }; data: { status: string } }) => {
+          const job = state.jobs.find((j) => j.id === where.id && j.status !== 'cancelled')
+          if (job) job.status = data.status
+          return { count: job ? 1 : 0 }
+        }
+      ),
     },
     },
     timeEntry: {
     timeEntry: {
       findFirst: vi.fn(async ({ where }: { where: Record<string, unknown> }) => {
       findFirst: vi.fn(async ({ where }: { where: Record<string, unknown> }) => {
@@ -271,4 +279,31 @@ describe('finishing a job two people are clocked on', () => {
     expect(response.status).toBe(404)
     expect(response.status).toBe(404)
     expect(open().sort()).toEqual(['andy-clock', 'jo-clock', 'sam-clock'])
     expect(open().sort()).toEqual(['andy-clock', 'jo-clock', 'sam-clock'])
   })
   })
+
+  it('refuses a cancelled job, and stops nothing', async () => {
+    state.jobs.find((j) => j.id === 'truck')!.status = 'cancelled'
+
+    const response = await finish('truck')
+
+    expect(response.status).toBe(409)
+    expect(state.jobs.find((j) => j.id === 'truck')!.status).toBe('cancelled')
+    expect(open().sort()).toEqual(['andy-clock', 'jo-clock', 'sam-clock'])
+  })
+
+  it('cannot undo a cancel that lands between reading the job and moving it', async () => {
+    const truck = state.jobs.find((j) => j.id === 'truck')!
+    // Read while still in progress; cancelled at the desk before the write.
+    const { db } = await import('@/lib/db')
+    vi.mocked(db.serviceRecord.findFirst).mockImplementationOnce((async () => {
+      const read = { ...truck, vehicleId: null, vehicle: null }
+      truck.status = 'cancelled'
+      return read
+    }) as never)
+
+    const response = await finish('truck')
+
+    expect(response.status).toBe(409)
+    expect(truck.status).toBe('cancelled')
+    expect(open().sort()).toEqual(['andy-clock', 'jo-clock', 'sam-clock'])
+  })
 })
 })

+ 1 - 0
src/__tests__/api/tech-required-meters.test.ts

@@ -84,6 +84,7 @@ vi.mock('@/lib/db', () => ({
         id: 'job-1',
         id: 'job-1',
         status: data.status,
         status: data.status,
       })),
       })),
+      updateMany: vi.fn(async () => ({ count: 1 })),
     },
     },
     serviceRecordEquipment: { findMany: vi.fn(async () => []) },
     serviceRecordEquipment: { findMany: vi.fn(async () => []) },
     equipmentType: { findMany: vi.fn(async () => []) },
     equipmentType: { findMany: vi.fn(async () => []) },

+ 1 - 0
src/__tests__/app/share/public-payload.test.tsx

@@ -464,6 +464,7 @@ describe('the shared invoice', () => {
     ])
     ])
     expect(Object.keys(record).sort()).toEqual([
     expect(Object.keys(record).sort()).toEqual([
       'attachments',
       'attachments',
+      'cancelled',
       'cost',
       'cost',
       'discountAmount',
       'discountAmount',
       'discountType',
       'discountType',

+ 10 - 2
src/__tests__/features/custom-fields/delete-removes-values.test.ts

@@ -72,6 +72,11 @@ vi.mock('@/lib/db', () => {
   const method = (model: string, name: string) => async (args: unknown) => {
   const method = (model: string, name: string) => async (args: unknown) => {
     calls.list.push({ key: `${model}.${name}`, args })
     calls.list.push({ key: `${model}.${name}`, args })
     if (name === 'findFirst' || name === 'findUnique') return rows.findFirst[model] ?? null
     if (name === 'findFirst' || name === 'findUnique') return rows.findFirst[model] ?? null
+    // The invoices that went out, asked before a vehicle is deleted: none
+    // unless a test says so.
+    if (name === 'findMany' && model === 'serviceRecord' && (args as any)?.where?.AND) {
+      return rows.findMany.wentOut ?? []
+    }
     if (name === 'findMany') return rows.findMany[model] ?? []
     if (name === 'findMany') return rows.findMany[model] ?? []
     if (name === 'count') return 0
     if (name === 'count') return 0
     if (name.endsWith('Many')) return { count: 1 }
     if (name.endsWith('Many')) return { count: 1 }
@@ -190,8 +195,11 @@ describe('deleting a vehicle, which takes its work orders with it', () => {
 
 
     expect(valueDeletes()).toEqual(expected)
     expect(valueDeletes()).toEqual(expected)
     // Read while the work orders could still be found.
     // Read while the work orders could still be found.
-    expect(index('serviceRecord.findMany')).toBeLessThan(index('vehicle.deleteMany'))
-    expect(calls.list[index('serviceRecord.findMany')].args).toEqual({
+    const read = calls.list.findIndex(
+      (call) => call.key === 'serviceRecord.findMany' && (call.args as any)?.select?.id
+    )
+    expect(read).toBeLessThan(index('vehicle.deleteMany'))
+    expect(calls.list[read].args).toEqual({
       where: { organizationId: 'org-a', vehicleId: { in: ['v-1'] } },
       where: { organizationId: 'org-a', vehicleId: { in: ['v-1'] } },
       select: { id: true },
       select: { id: true },
     })
     })

+ 1 - 1
src/__tests__/features/integrations/backup-actions.test.ts

@@ -162,7 +162,7 @@ describe('runBackupNow', () => {
     expect(await runBackupNow('s3')).toMatchObject({ success: true, data: { runId: 'run1' } })
     expect(await runBackupNow('s3')).toMatchObject({ success: true, data: { runId: 'run1' } })
   })
   })
 
 
-  it('queues the run in the member\'s name and returns its id without waiting for it', async () => {
+  it("queues the run in the member's name and returns its id without waiting for it", async () => {
     // The drain never settles; the action must still return.
     // The drain never settles; the action must still return.
     const result = await runBackupNow('s3')
     const result = await runBackupNow('s3')
     expect(result).toEqual({ success: true, data: { runId: 'run1' } })
     expect(result).toEqual({ success: true, data: { runId: 'run1' } })

+ 449 - 0
src/__tests__/features/invoices/cancel-not-delete.test.ts

@@ -0,0 +1,449 @@
+/**
+ * An invoice that went out is cancelled, never deleted.
+ *
+ * Most countries want invoice numbers without gaps, so once the customer
+ * holds an invoice (issued, or sent or paid before issuing tracked it) the
+ * job is kept, marked cancelled, and keeps its number. A draft nobody ever
+ * saw is still deleted. These go through the actions as the page calls them.
+ */
+import { beforeEach, describe, expect, it, vi } from 'vitest'
+
+vi.mock('@/lib/cached-session', () => ({
+  getCachedSession: vi.fn(),
+  getCachedMembership: vi.fn(),
+}))
+vi.mock('next/cache', () => ({ revalidatePath: vi.fn() }))
+vi.mock('@/lib/notification-bus', () => ({ notificationBus: { emit: vi.fn() } }))
+vi.mock('@/lib/audit', () => ({
+  logAudit: vi.fn(),
+  auditDetails: (key: string, params?: unknown) => ({ key, params }),
+}))
+vi.mock('@/lib/files/collect', () => ({
+  serviceRecordFileUrls: vi.fn(async () => []),
+  vehicleFileUrls: vi.fn(async () => []),
+}))
+vi.mock('@/lib/files/manager', () => ({ releaseFiles: vi.fn(async () => ({})) }))
+vi.mock('@/features/inventory/Lib/onInventoryChanged', () => ({ onInventoryChanged: vi.fn() }))
+vi.mock('@/features/inventory/Lib/reconcileStock', () => ({
+  reconcileInventoryForParts: vi.fn(),
+}))
+vi.mock('@/features/meters/Lib/jobMeterReading.server', () => ({
+  unlinkMeterReadingsOfDeletedJobs: vi.fn(),
+  unlinkJobMeterReadingsFromOtherVehicles: vi.fn(),
+}))
+vi.mock('@/features/time-tracking/Lib/timeEntries', () => ({
+  stopJobClocks: vi.fn(async () => []),
+}))
+vi.mock('@/features/invoices/Lib/issueInvoice', () => ({
+  issueInvoice: vi.fn(async () => false),
+  reissueInvoice: vi.fn(async () => true),
+}))
+vi.mock('@/features/invoices/Lib/reapplyDesign', () => ({
+  ISSUED_WHERE: {},
+  issuedDesignState: vi.fn(),
+  reapplyDesign: vi.fn(async () => 1),
+}))
+vi.mock('@/features/custom-fields/Lib/deleteCustomFieldValues', () => ({
+  deleteCustomFieldValuesOf: vi.fn(),
+  workOrderIdsOfVehicles: vi.fn(async () => ['job-1']),
+}))
+
+vi.mock('@/lib/db', () => ({
+  db: {
+    user: { findUnique: vi.fn() },
+    appSetting: { findMany: vi.fn() },
+    serviceRecord: {
+      findFirst: vi.fn(),
+      findMany: vi.fn(),
+      update: vi.fn(),
+      updateMany: vi.fn(),
+      delete: vi.fn(),
+    },
+    vehicle: { findFirst: vi.fn(), deleteMany: vi.fn() },
+    servicePart: { findMany: vi.fn() },
+    payment: { create: vi.fn(), findFirst: vi.fn(), delete: vi.fn(), aggregate: vi.fn() },
+    $queryRaw: vi.fn(),
+    workOrderStatus: { findFirst: vi.fn() },
+    $transaction: vi.fn(),
+  },
+}))
+
+import { getCachedMembership, getCachedSession } from '@/lib/cached-session'
+import { db } from '@/lib/db'
+import { logAudit } from '@/lib/audit'
+import {
+  deleteServiceRecord,
+  updateServiceRecord,
+  updateServiceStatus,
+} from '@/features/vehicles/Actions/serviceActions'
+import { cancelServiceRecord } from '@/features/vehicles/Actions/cancelServiceRecord'
+import { deleteVehicle } from '@/features/vehicles/Actions/vehicleActions'
+import { toggleManuallyPaid } from '@/features/vehicles/Actions/serviceActions'
+import { createPayment, deletePayment } from '@/features/payments/Actions/paymentActions'
+import {
+  reapplyDesignToInvoice,
+  refreshIssuedInvoice,
+} from '@/features/invoices/Actions/invoiceDesignActions'
+import { setInvoiceEditUnlocked } from '@/features/settings/Actions/documentLockActions'
+import { stopJobClocks } from '@/features/time-tracking/Lib/timeEntries'
+
+const ORG = 'org-1'
+
+function signIn(role = 'owner', permissions: { action: string; subject: string }[] = []) {
+  vi.mocked(getCachedSession).mockResolvedValue({ user: { id: 'user-1' } } as any)
+  vi.mocked(getCachedMembership).mockResolvedValue({
+    organizationId: ORG,
+    role,
+    roleId: role === 'member' ? 'role-1' : null,
+    customRole: role === 'member' ? { isAdmin: false, permissions } : null,
+  } as any)
+  vi.mocked(db.user.findUnique).mockResolvedValue({ isSuperAdmin: false } as any)
+}
+
+const JOB = {
+  id: 'job-1',
+  title: 'Brakes',
+  status: 'completed',
+  vehicleId: 'veh-1',
+  invoiceNumber: '2026-1002',
+  issuedAt: null as Date | null,
+  sentAt: null as Date | null,
+  manuallyPaid: false,
+  totalAmount: 1000,
+  cost: 0,
+  editUnlockedAt: null,
+  payments: [] as { amount: number }[],
+  vehicle: { id: 'veh-1', make: 'Volvo', model: 'V70', year: 2010, licensePlate: 'AB12345' },
+}
+const ISSUED_AND_PAID = {
+  ...JOB,
+  issuedAt: new Date('2026-10-01T10:00:00Z'),
+  sentAt: new Date('2026-10-01T10:00:00Z'),
+  payments: [{ amount: 400 }, { amount: 600 }],
+}
+const DRAFT = { ...JOB, invoiceNumber: '2026-1003' }
+
+beforeEach(() => {
+  vi.resetAllMocks()
+  signIn()
+  vi.mocked(db.appSetting.findMany).mockResolvedValue([] as any)
+  vi.mocked(db.servicePart.findMany).mockResolvedValue([] as any)
+  vi.mocked(db.$transaction).mockImplementation(async (cb: any) => cb(db))
+  vi.mocked(db.serviceRecord.updateMany).mockResolvedValue({ count: 1 } as any)
+})
+
+describe('deleting a job', () => {
+  it('refuses an invoice that was issued, and deletes nothing', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    const result = await deleteServiceRecord('job-1')
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/Invoice 2026-1002 has gone out .* cannot be deleted/)
+    expect(result.error).toMatch(/Cancel it instead/)
+    expect(db.serviceRecord.delete).not.toHaveBeenCalled()
+  })
+
+  it('refuses one sent before issuing was tracked', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue({
+      ...JOB,
+      sentAt: new Date('2025-01-01T10:00:00Z'),
+    } as any)
+
+    const result = await deleteServiceRecord('job-1')
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.delete).not.toHaveBeenCalled()
+  })
+
+  it('still deletes a draft that never went out', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(DRAFT as any)
+
+    const result = await deleteServiceRecord('job-1')
+
+    expect(result.success).toBe(true)
+    expect(db.serviceRecord.delete).toHaveBeenCalledWith({ where: { id: 'job-1' } })
+  })
+})
+
+describe('cancelling an invoice that went out', () => {
+  it('keeps the job and its number, and marks it cancelled', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    const result = await cancelServiceRecord({ recordId: 'job-1' })
+
+    expect(result.success).toBe(true)
+    expect(db.serviceRecord.delete).not.toHaveBeenCalled()
+    const write = vi.mocked(db.serviceRecord.updateMany).mock.calls[0][0] as any
+    expect(write.where).toMatchObject({ id: 'job-1', organizationId: ORG })
+    expect(write.data.status).toBe('cancelled')
+    // Nothing that names the invoice is touched.
+    expect(write.data).not.toHaveProperty('invoiceNumber')
+    expect(write.data).not.toHaveProperty('issuedAt')
+    expect(db.payment.create).not.toHaveBeenCalled()
+  })
+
+  it('records the event in the audit log, which the ledgers listen to', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    await cancelServiceRecord({ recordId: 'job-1' })
+    await vi.waitFor(() => expect(logAudit).toHaveBeenCalled())
+
+    expect(vi.mocked(logAudit).mock.calls[0][1]).toMatchObject({
+      action: 'service.cancel',
+      entityId: 'job-1',
+      details: { key: 'service_cancel', params: { ref: '2026-1002' } },
+    })
+  })
+
+  it('books a refund as a negative payment when asked', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    const result = await cancelServiceRecord({
+      recordId: 'job-1',
+      refund: { amount: 1000, method: 'transfer', note: 'Refund on cancelled invoice' },
+    })
+
+    expect(result.success).toBe(true)
+    expect(db.payment.create).toHaveBeenCalledWith({
+      data: expect.objectContaining({
+        serviceRecordId: 'job-1',
+        amount: -1000,
+        method: 'transfer',
+      }),
+    })
+  })
+
+  it('refuses a refund larger than what was paid, and cancels nothing', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    const result = await cancelServiceRecord({
+      recordId: 'job-1',
+      refund: { amount: 1500, method: 'cash' },
+    })
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.updateMany).not.toHaveBeenCalled()
+    expect(db.payment.create).not.toHaveBeenCalled()
+  })
+
+  it('refuses a refund from someone who may not record payments', async () => {
+    signIn('member', [{ action: 'delete', subject: 'services' }])
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    const result = await cancelServiceRecord({
+      recordId: 'job-1',
+      refund: { amount: 100, method: 'cash' },
+    })
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.updateMany).not.toHaveBeenCalled()
+  })
+
+  it('refuses a draft, which is deleted instead', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(DRAFT as any)
+
+    const result = await cancelServiceRecord({ recordId: 'job-1' })
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/never went out/)
+    expect(db.serviceRecord.updateMany).not.toHaveBeenCalled()
+  })
+
+  it('refuses one already cancelled', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue({
+      ...ISSUED_AND_PAID,
+      status: 'cancelled',
+    } as any)
+
+    const result = await cancelServiceRecord({ recordId: 'job-1' })
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.updateMany).not.toHaveBeenCalled()
+  })
+
+  it('only looks in the caller’s own workshop', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(null)
+
+    const result = await cancelServiceRecord({ recordId: 'theirs' })
+
+    expect(result.success).toBe(false)
+    expect(vi.mocked(db.serviceRecord.findFirst).mock.calls[0][0]).toMatchObject({
+      where: { id: 'theirs', organizationId: ORG },
+    })
+  })
+})
+
+describe('a cancelled job is final', () => {
+  const CANCELLED = { ...ISSUED_AND_PAID, status: 'cancelled' }
+
+  it('refuses a save of the work order', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await updateServiceRecord({ id: 'job-1', title: 'Rewritten' })
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/cancelled/)
+    expect(db.serviceRecord.update).not.toHaveBeenCalled()
+  })
+
+  it('refuses moving it to another status', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await updateServiceStatus('job-1', 'pending')
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.update).not.toHaveBeenCalled()
+  })
+})
+
+describe('deleting a vehicle', () => {
+  it('refuses one whose invoices went out, naming them', async () => {
+    vi.mocked(db.vehicle.findFirst).mockResolvedValue({
+      year: 2010,
+      make: 'Volvo',
+      model: 'V70',
+      licensePlate: 'AB12345',
+    } as any)
+    vi.mocked(db.serviceRecord.findMany).mockResolvedValue([
+      { invoiceNumber: '2026-1001' },
+      { invoiceNumber: '2026-1002' },
+    ] as any)
+
+    const result = await deleteVehicle('veh-1')
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/2026-1001, 2026-1002/)
+    expect(result.error).toMatch(/Archive the vehicle instead/)
+    expect(db.vehicle.deleteMany).not.toHaveBeenCalled()
+  })
+
+  it('deletes one with no invoice that went out', async () => {
+    vi.mocked(db.vehicle.findFirst).mockResolvedValue({
+      year: 2010,
+      make: 'Volvo',
+      model: 'V70',
+      licensePlate: null,
+    } as any)
+    vi.mocked(db.serviceRecord.findMany).mockResolvedValue([] as any)
+
+    const result = await deleteVehicle('veh-1')
+
+    expect(result.success).toBe(true)
+    expect(db.vehicle.deleteMany).toHaveBeenCalledWith({
+      where: { id: 'veh-1', organizationId: ORG },
+    })
+  })
+})
+
+describe('cancelling stops the work on the job', () => {
+  it('stops every clock still running on it', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+
+    expect((await cancelServiceRecord({ recordId: 'job-1' })).success).toBe(true)
+
+    expect(stopJobClocks).toHaveBeenCalledWith({ organizationId: ORG, serviceRecordId: 'job-1' })
+  })
+
+  it('stops nothing when the cancel is refused', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(DRAFT as any)
+
+    await cancelServiceRecord({ recordId: 'job-1' })
+
+    expect(stopJobClocks).not.toHaveBeenCalled()
+  })
+})
+
+describe('a status change on its way when the job is cancelled', () => {
+  it('is refused rather than undoing the cancel', async () => {
+    // Read before the cancel, written after it: the write finds nothing to move.
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+    vi.mocked(db.serviceRecord.updateMany).mockResolvedValue({ count: 0 } as any)
+
+    const result = await updateServiceStatus('job-1', 'pending')
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/cancelled/)
+    const write = vi.mocked(db.serviceRecord.updateMany).mock.calls[0][0] as any
+    expect(write.where).toMatchObject({ id: 'job-1', status: { not: 'cancelled' } })
+  })
+})
+
+describe('money on a cancelled invoice', () => {
+  const CANCELLED = { ...ISSUED_AND_PAID, status: 'cancelled' }
+
+  it('takes no new payment', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await createPayment({ serviceRecordId: 'job-1', amount: 50, method: 'cash' })
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/cancelled/)
+    expect(db.payment.create).not.toHaveBeenCalled()
+  })
+
+  it('keeps its payments and refunds: none can be deleted', async () => {
+    vi.mocked(db.payment.findFirst).mockResolvedValue({
+      id: 'pay-1',
+      amount: -1000,
+      serviceRecord: { ...CANCELLED, editUnlockedAt: null },
+    } as any)
+
+    const result = await deletePayment('pay-1')
+
+    expect(result.success).toBe(false)
+    expect(db.payment.delete).not.toHaveBeenCalled()
+  })
+
+  it('is not marked paid or unpaid by hand', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await toggleManuallyPaid('job-1')
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.update).not.toHaveBeenCalled()
+  })
+
+  it('still lets a locked invoice that is not cancelled take a payment', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(ISSUED_AND_PAID as any)
+    vi.mocked(db.payment.create).mockResolvedValue({ id: 'pay-2' } as any)
+    // The balance is read under the job's row lock: £1,000 with £400 paid.
+    vi.mocked((db as any).$queryRaw).mockResolvedValue([{ totalAmount: 1000, cost: 1000 }])
+    vi.mocked((db as any).payment.aggregate).mockResolvedValue({ _sum: { amount: 400 } })
+
+    const result = await createPayment({ serviceRecordId: 'job-1', amount: 50, method: 'cash' })
+
+    expect(result.success).toBe(true)
+  })
+})
+
+describe('the copy of a cancelled invoice', () => {
+  const CANCELLED = { ...ISSUED_AND_PAID, status: 'cancelled' }
+
+  it('is not updated to today’s details', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await refreshIssuedInvoice('job-1')
+
+    expect(result.success).toBe(false)
+    expect(result.error).toMatch(/cancelled/)
+  })
+
+  it('is not given another design', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await reapplyDesignToInvoice('job-1', null)
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.update).not.toHaveBeenCalled()
+  })
+
+  it('is not reopened for editing', async () => {
+    vi.mocked(db.serviceRecord.findFirst).mockResolvedValue(CANCELLED as any)
+
+    const result = await setInvoiceEditUnlocked('job-1', true)
+
+    expect(result.success).toBe(false)
+    expect(db.serviceRecord.update).not.toHaveBeenCalled()
+  })
+})

+ 131 - 0
src/__tests__/features/invoices/cancelled-invoice-print.test.ts

@@ -0,0 +1,131 @@
+/**
+ * A cancelled invoice prints, shares and shows in the portal as cancelled:
+ * the same number and lines, the word itself where the amount due was, and
+ * nothing left to pay.
+ */
+import { describe, expect, it } from 'vitest'
+import enPdf from '../../../../messages/en/pdf.json'
+import { invoiceLabels } from '@/features/invoice-designer/Lib/invoiceLabels'
+import { buildInvoicePrintSpec } from '@/features/invoice-designer/Pdf/buildInvoicePrint'
+import type { InvoiceData } from '@/features/vehicles/Components/invoice-pdf/types'
+import { portalPayment } from '@/features/portal/Lib/paymentState'
+import { invoiceWentOut } from '@/features/invoices/Lib/issuedInvoice'
+import { refundableAmount } from '@/features/invoices/Lib/cancelInvoice'
+
+function job(status: string): InvoiceData {
+  return {
+    id: 'job',
+    title: 'Brakes',
+    status,
+    description: null,
+    type: 'repair',
+    serviceDate: new Date(Date.UTC(2026, 9, 28, 12)),
+    shopName: null,
+    techName: null,
+    mileage: null,
+    diagnosticNotes: null,
+    invoiceNotes: null,
+    subtotal: 1000,
+    taxRate: 0,
+    taxAmount: 0,
+    totalAmount: 1000,
+    cost: 1000,
+    invoiceNumber: '2026-1002',
+    partItems: [],
+    laborItems: [{ description: 'Brake pads', hours: 1, rate: 1000, total: 1000 }],
+    vehicle: null,
+  }
+}
+
+const PAID = {
+  totalPaid: 1000,
+  payments: [
+    { amount: 400, date: '01/10/2026', method: 'card' },
+    { amount: 600, date: '02/10/2026', method: 'cash' },
+  ],
+}
+
+function printed(status: string, paymentSummary = PAID): string {
+  return JSON.stringify(
+    buildInvoicePrintSpec({
+      data: job(status),
+      invoiceSettings: { currencyCode: 'EUR', dateFormat: 'dd/MM/yyyy' },
+      paymentSummary,
+      labels: invoiceLabels(enPdf, 'invoice'),
+      locale: 'en',
+    })
+  )
+}
+
+describe('the printed cancelled invoice', () => {
+  it('keeps its number and is titled and marked cancelled', () => {
+    const text = printed('cancelled')
+    expect(text).toContain('2026-1002')
+    expect(text).toContain('INVOICE (CANCELLED)')
+    expect(text).toContain('"CANCELLED"')
+    expect(text).not.toContain('PAID IN FULL')
+    expect(text).not.toContain('Amount Due')
+  })
+
+  it('lists the refund with the payments', () => {
+    const text = printed('cancelled', {
+      totalPaid: 0,
+      payments: [...PAID.payments, { amount: -1000, date: '03/10/2026', method: 'transfer' }],
+    })
+    expect(text).toContain('Refund 03/10/2026 (Bank transfer)')
+    expect(text).toContain('CANCELLED')
+  })
+
+  it('leaves an invoice that is not cancelled as it was', () => {
+    const text = printed('completed')
+    expect(text).not.toContain('CANCELLED')
+    expect(text).toContain('PAID IN FULL')
+  })
+})
+
+describe('what is owed on a cancelled invoice', () => {
+  it('is nothing, in the portal', () => {
+    expect(
+      portalPayment({ totalAmount: 1000, manuallyPaid: false, payments: [], status: 'cancelled' })
+    ).toEqual({ state: 'cancelled', paid: 0, balance: 0 })
+  })
+
+  it('is refundable up to what the customer paid', () => {
+    const invoice = { totalAmount: 1000, cost: 0, manuallyPaid: false, payments: [{ amount: 400 }] }
+    expect(refundableAmount(invoice)).toBe(400)
+    expect(refundableAmount({ ...invoice, manuallyPaid: true })).toBe(1000)
+    expect(refundableAmount({ ...invoice, payments: [] })).toBe(0)
+  })
+})
+
+describe('a cancelled invoice that was marked paid by hand', () => {
+  const marked = { totalAmount: 1000, cost: 0, manuallyPaid: true }
+
+  it('can refund what was paid, and only what is still held', () => {
+    expect(refundableAmount({ ...marked, payments: [] })).toBe(1000)
+    expect(refundableAmount({ ...marked, payments: [{ amount: 400 }] })).toBe(1000)
+    expect(refundableAmount({ ...marked, payments: [{ amount: -300 }] })).toBe(700)
+    expect(refundableAmount({ ...marked, payments: [{ amount: -1000 }] })).toBe(0)
+  })
+
+  it('keeps its paid amount in the portal, less any refund, with nothing owed', () => {
+    expect(portalPayment({ ...marked, payments: [], status: 'cancelled' })).toEqual({
+      state: 'cancelled',
+      paid: 1000,
+      balance: 0,
+    })
+    expect(portalPayment({ ...marked, payments: [{ amount: -250 }], status: 'cancelled' })).toEqual(
+      { state: 'cancelled', paid: 750, balance: 0 }
+    )
+  })
+})
+
+describe('which invoices went out', () => {
+  const draft = { issuedAt: null, sentAt: null, manuallyPaid: false, payments: [] }
+  it('is an issued one, or one sent or paid before issuing was tracked', () => {
+    expect(invoiceWentOut(draft)).toBe(false)
+    expect(invoiceWentOut({ ...draft, issuedAt: new Date() })).toBe(true)
+    expect(invoiceWentOut({ ...draft, sentAt: new Date() })).toBe(true)
+    expect(invoiceWentOut({ ...draft, payments: [{ amount: 10 }] })).toBe(true)
+  })
+})

+ 2 - 1
src/__tests__/features/meters/required-meters-paths.test.ts

@@ -131,6 +131,7 @@ const JOB = {
 
 
 beforeEach(() => {
 beforeEach(() => {
   vi.clearAllMocks()
   vi.clearAllMocks()
+  vi.mocked(db.serviceRecord.updateMany).mockResolvedValue({ count: 1 } as never)
   gaps.missing = [PTO, CRANE]
   gaps.missing = [PTO, CRANE]
   vi.mocked(getCachedSession).mockResolvedValue({ user: { id: 'user-1' } } as never)
   vi.mocked(getCachedSession).mockResolvedValue({ user: { id: 'user-1' } } as never)
   vi.mocked(getCachedMembership).mockResolvedValue({
   vi.mocked(getCachedMembership).mockResolvedValue({
@@ -174,7 +175,7 @@ describe('completing a job', () => {
     gaps.missing = []
     gaps.missing = []
     const result = await updateServiceStatus('job-1', 'completed')
     const result = await updateServiceStatus('job-1', 'completed')
     expect(result.success).toBe(true)
     expect(result.success).toBe(true)
-    expect(db.serviceRecord.update).toHaveBeenCalled()
+    expect(db.serviceRecord.updateMany).toHaveBeenCalled()
   })
   })
 
 
   it('is never asked of an earlier status', async () => {
   it('is never asked of an earlier status', async () => {

+ 4 - 1
src/__tests__/features/portal/portal-shared-actions.test.ts

@@ -104,6 +104,9 @@ describe('the invoices in the portal', () => {
     await getPortalInvoices()
     await getPortalInvoices()
     const query = vi.mocked(db.serviceRecord.findMany).mock.calls[0][0]
     const query = vi.mocked(db.serviceRecord.findMany).mock.calls[0][0]
     expect(query?.select).toMatchObject({ invoiceDate: true, invoiceDueDate: true })
     expect(query?.select).toMatchObject({ invoiceDate: true, invoiceDueDate: true })
-    expect(query?.where).toMatchObject({ organizationId: 'org1', status: 'completed' })
+    expect(query?.where).toMatchObject({
+      organizationId: 'org1',
+      status: { in: ['completed', 'cancelled'] },
+    })
   })
   })
 })
 })

+ 24 - 3
src/__tests__/features/reports/completed-only.test.ts

@@ -20,7 +20,11 @@ vi.mock('@/lib/db', () => ({
 
 
 import { getCachedSession, getCachedMembership } from '@/lib/cached-session'
 import { getCachedSession, getCachedMembership } from '@/lib/cached-session'
 import { db } from '@/lib/db'
 import { db } from '@/lib/db'
-import { getRevenueReport, getServiceReport } from '@/features/reports/Actions/reportActions'
+import {
+  getRevenueReport,
+  getServiceReport,
+  getTaxReport,
+} from '@/features/reports/Actions/reportActions'
 import { parseCompletedOnlyCookie } from '@/lib/completed-only-preference'
 import { parseCompletedOnlyCookie } from '@/lib/completed-only-preference'
 
 
 function setupAuth() {
 function setupAuth() {
@@ -44,9 +48,26 @@ beforeEach(() => {
 })
 })
 
 
 describe('reports', () => {
 describe('reports', () => {
-  it('count every job when the switch is off', async () => {
+  it('count every job but a cancelled one when the switch is off', async () => {
     await getRevenueReport({ startDate: '2026-01-01', endDate: '2026-01-31' })
     await getRevenueReport({ startDate: '2026-01-01', endDate: '2026-01-31' })
-    expect(whereOf().status).toBeUndefined()
+    // A cancelled invoice keeps its number but was never charged.
+    expect(whereOf().status).toEqual({ not: 'cancelled' })
+  })
+
+  it('still count the money that moved on a cancelled invoice: a payment and its refund', async () => {
+    await getRevenueReport({ startDate: '2026-01-01', endDate: '2026-01-31' })
+    const paymentWhere = (vi.mocked(db.payment.findMany).mock.calls[0][0] as any).where
+    expect(paymentWhere.serviceRecord).toEqual({ organizationId: 'org-1' })
+  })
+
+  it('leave a cancelled invoice out of tax', async () => {
+    await getTaxReport({ startDate: '2026-01-01', endDate: '2026-01-31' })
+    expect(whereOf().status).toEqual({ not: 'cancelled' })
+  })
+
+  it('leave a cancelled job out of the service report', async () => {
+    await getServiceReport({ startDate: '2026-01-01', endDate: '2026-01-31' })
+    expect(whereOf().status).toEqual({ not: 'cancelled' })
   })
   })
 
 
   it('count only payments on completed jobs, and jobs marked paid by hand, when the switch is on', async () => {
   it('count only payments on completed jobs, and jobs marked paid by hand, when the switch is on', async () => {

+ 25 - 0
src/__tests__/features/reports/report-date-basis.test.ts

@@ -281,6 +281,31 @@ describe('jobs marked paid by hand', () => {
     ])
     ])
   })
   })
 
 
+  it('net to nothing when an old paid-by-hand invoice is cancelled with a full refund', async () => {
+    // Marked paid before the day was recorded, then cancelled in November
+    // with the 1000 handed back: 1000 in, 1000 out.
+    const refund = { amount: -1000, date: NOV_1 }
+    seed({
+      manual: [
+        job({
+          invoiceDate: SEP_15,
+          manuallyPaid: true,
+          manuallyPaidAt: null,
+          payments: [refund],
+        }),
+      ],
+      payments: [refund],
+    })
+
+    const { data } = await getRevenueReport(WINDOW)
+
+    expect(months(data)).toEqual([
+      { month: '2026-09', revenue: 0, collected: 1000 },
+      { month: '2026-11', revenue: 0, collected: -1000 },
+    ])
+    expect(data?.summary.totalCollected).toBe(0)
+  })
+
   it('ask for jobs marked in the window, or unmarked-date jobs dated in it', async () => {
   it('ask for jobs marked in the window, or unmarked-date jobs dated in it', async () => {
     await getRevenueReport(WINDOW)
     await getRevenueReport(WINDOW)
 
 

+ 1 - 4
src/__tests__/features/search/settings-items.test.ts

@@ -2,10 +2,7 @@ import { renderHook } from '@testing-library/react'
 import { describe, expect, it } from 'vitest'
 import { describe, expect, it } from 'vitest'
 import { useSettingsSearchItems } from '@/features/search/Lib/settingsItems'
 import { useSettingsSearchItems } from '@/features/search/Lib/settingsItems'
 import { prepareQuery, rank } from '@/features/search/Lib/matcher'
 import { prepareQuery, rank } from '@/features/search/Lib/matcher'
-import {
-  visibleActionCommands,
-  visiblePageCommands,
-} from '@/features/search/Lib/commands'
+import { visibleActionCommands, visiblePageCommands } from '@/features/search/Lib/commands'
 
 
 /**
 /**
  * The real index, titled in English through the test setup's next-intl
  * The real index, titled in English through the test setup's next-intl

+ 10 - 0
src/__tests__/features/time-tracking/start-work-moves-job.test.ts

@@ -132,3 +132,13 @@ describe('starting work on a job', () => {
     expect(heard.map((e) => e.type)).toEqual(['clock_started'])
     expect(heard.map((e) => e.type)).toEqual(['clock_started'])
   })
   })
 })
 })
+
+describe('starting work on a cancelled job', () => {
+  it('is refused, and no clock starts', async () => {
+    state.status = 'cancelled'
+
+    await expect(start()).rejects.toMatchObject({ code: 'job_cancelled' })
+    expect(db.$transaction).not.toHaveBeenCalled()
+    expect(tx.serviceRecord.updateMany).not.toHaveBeenCalled()
+  })
+})

+ 2 - 2
src/__tests__/features/vehicles/work-orders-promised-sort.test.ts

@@ -116,7 +116,7 @@ describe('the due today filter', () => {
     }
     }
 
 
     expect(where.promisedAt.not).toBeNull()
     expect(where.promisedAt.not).toBeNull()
-    expect(where.AND).toEqual([{ status: { not: 'completed' } }])
+    expect(where.AND).toEqual([{ status: { notIn: ['completed', 'cancelled'] } }])
     // End of today in Auckland, which is not end of today in UTC.
     // End of today in Auckland, which is not end of today in UTC.
     const end = where.promisedAt.lte
     const end = where.promisedAt.lte
     expect(end.getTime()).toBeGreaterThan(Date.now() - 24 * 60 * 60 * 1000)
     expect(end.getTime()).toBeGreaterThan(Date.now() - 24 * 60 * 60 * 1000)
@@ -141,6 +141,6 @@ describe('the due today filter', () => {
       unknown
       unknown
     >
     >
     expect(where.status).toBe('waiting-parts')
     expect(where.status).toBe('waiting-parts')
-    expect(where.AND).toEqual([{ status: { not: 'completed' } }])
+    expect(where.AND).toEqual([{ status: { notIn: ['completed', 'cancelled'] } }])
   })
   })
 })
 })

+ 10 - 7
src/__tests__/features/work-order-statuses/status-rules.test.ts

@@ -10,7 +10,7 @@
 
 
 import { describe, it, expect, vi, beforeEach } from 'vitest'
 import { describe, it, expect, vi, beforeEach } from 'vitest'
 
 
-const serviceRecord = { findFirst: vi.fn(), update: vi.fn() }
+const serviceRecord = { findFirst: vi.fn(), update: vi.fn(), updateMany: vi.fn() }
 const workOrderStatus = { findFirst: vi.fn() }
 const workOrderStatus = { findFirst: vi.fn() }
 // No meter of the workshop's is required: completing asks nothing more.
 // No meter of the workshop's is required: completing asks nothing more.
 const meterType = { findFirst: vi.fn(async () => null) }
 const meterType = { findFirst: vi.fn(async () => null) }
@@ -42,6 +42,7 @@ beforeEach(() => {
   vi.clearAllMocks()
   vi.clearAllMocks()
   serviceRecord.findFirst.mockResolvedValue({ id: 'rec-1', title: 'Job', vehicleId: 'veh-1' })
   serviceRecord.findFirst.mockResolvedValue({ id: 'rec-1', title: 'Job', vehicleId: 'veh-1' })
   serviceRecord.update.mockResolvedValue({})
   serviceRecord.update.mockResolvedValue({})
+  serviceRecord.updateMany.mockResolvedValue({ count: 1 })
   workOrderStatus.findFirst.mockResolvedValue(READY)
   workOrderStatus.findFirst.mockResolvedValue(READY)
 })
 })
 
 
@@ -76,8 +77,10 @@ describe('updateServiceStatus', () => {
 
 
     expect(result.success).toBe(true)
     expect(result.success).toBe(true)
     expect(workOrderStatus.findFirst).not.toHaveBeenCalled()
     expect(workOrderStatus.findFirst).not.toHaveBeenCalled()
-    expect(serviceRecord.update).toHaveBeenCalledWith({
-      where: { id: 'rec-1' },
+    // Written only while the job is not cancelled, so an in-flight move
+    // cannot undo a cancel.
+    expect(serviceRecord.updateMany).toHaveBeenCalledWith({
+      where: { id: 'rec-1', organizationId: 'org-1', status: { not: 'cancelled' } },
       data: { status: 'completed', customStatusId: null, customStatusSince: null },
       data: { status: 'completed', customStatusId: null, customStatusSince: null },
     })
     })
   })
   })
@@ -88,14 +91,14 @@ describe('updateServiceStatus', () => {
     }
     }
     const stray = await updateServiceStatus('rec-1', 'ready-for-pickup')
     const stray = await updateServiceStatus('rec-1', 'ready-for-pickup')
     expect(stray.success).toBe(false)
     expect(stray.success).toBe(false)
-    expect(serviceRecord.update).toHaveBeenCalledTimes(SYSTEM_STATUSES.length)
+    expect(serviceRecord.updateMany).toHaveBeenCalledTimes(SYSTEM_STATUSES.length)
   })
   })
 
 
   it('sets the stage and the workshop status together, with when', async () => {
   it('sets the stage and the workshop status together, with when', async () => {
     const result = await updateServiceStatus('rec-1', 'completed', 'st-ready')
     const result = await updateServiceStatus('rec-1', 'completed', 'st-ready')
 
 
     expect(result.success).toBe(true)
     expect(result.success).toBe(true)
-    const data = serviceRecord.update.mock.calls[0][0].data
+    const data = serviceRecord.updateMany.mock.calls[0][0].data
     expect(data).toMatchObject({ status: 'completed', customStatusId: 'st-ready' })
     expect(data).toMatchObject({ status: 'completed', customStatusId: 'st-ready' })
     expect(data.customStatusSince).toBeInstanceOf(Date)
     expect(data.customStatusSince).toBeInstanceOf(Date)
   })
   })
@@ -114,7 +117,7 @@ describe('updateServiceStatus', () => {
     const result = await updateServiceStatus('rec-1', 'in-progress', 'st-ready')
     const result = await updateServiceStatus('rec-1', 'in-progress', 'st-ready')
 
 
     expect(result.success).toBe(false)
     expect(result.success).toBe(false)
-    expect(serviceRecord.update).not.toHaveBeenCalled()
+    expect(serviceRecord.updateMany).not.toHaveBeenCalled()
   })
   })
 
 
   it('refuses one that does not exist, or belongs to somebody else', async () => {
   it('refuses one that does not exist, or belongs to somebody else', async () => {
@@ -123,6 +126,6 @@ describe('updateServiceStatus', () => {
     const result = await updateServiceStatus('rec-1', 'completed', 'st-other-workshop')
     const result = await updateServiceStatus('rec-1', 'completed', 'st-other-workshop')
 
 
     expect(result.success).toBe(false)
     expect(result.success).toBe(false)
-    expect(serviceRecord.update).not.toHaveBeenCalled()
+    expect(serviceRecord.updateMany).not.toHaveBeenCalled()
   })
   })
 })
 })

Неке датотеке нису приказане због велике количине промена