Finalize Typescript restructure

This commit is contained in:
Darko Gjorgjijoski
2026-04-06 17:59:15 +02:00
parent cab785172e
commit 74b4b2df4e
209 changed files with 12419 additions and 1745 deletions

View File

@@ -223,6 +223,7 @@
<script setup lang="ts">
import { computed, ref, watch } from 'vue'
import TaxSelectPopup from './TaxSelectPopup.vue'
import { generateClientId } from '../../../utils'
import type { Currency } from '../../../types/domain/currency'
import type { TaxType } from '../../../types/domain/tax'
import type { DocumentFormData, DocumentTax, DocumentStore, DocumentItem } from './use-document-calculations'
@@ -357,7 +358,7 @@ function onSelectTax(selectedTax: TaxType): void {
}
const data: DocumentTax = {
id: crypto.randomUUID(),
id: generateClientId(),
name: selectedTax.name,
percent: selectedTax.percent,
tax_type_id: selectedTax.id,