- Implemented `evaluateProformaCustomerChange` function to assess changes in customer details for proforma invoices. - Introduced types for customer change details, blockers, field differences, and fiscal targets. - Added utility functions for normalizing text and formatting recipient information. test: add unit tests for customer payment resolver - Created tests for `CustomerPaymentResolver` to validate payment term retrieval and handling of inactive terms. - Ensured proper behavior when clearing payment terms and handling non-existent terms. test: add unit tests for customer default payment term resolver - Developed tests for `CustomerDefaultPaymentTermResolver` to verify default payment term resolution logic. - Included scenarios for creating customers with and without explicit payment term IDs. feat: implement customer default payment term resolver - Created `CustomerDefaultPaymentTermResolver` to manage default payment term resolution during customer creation. - Integrated with company finder and payment resolver services. test: add unit tests for create customer use case - Implemented tests for `CreateCustomerUseCase` to ensure correct handling of payment term IDs during customer creation. - Validated behavior when no explicit payment term ID is provided. test: add unit tests for update customer use case - Developed tests for `UpdateCustomerUseCase` to verify payment term handling during customer updates. - Ensured that inactive payment terms are not assigned and that explicit null values are respected. feat: add dependency injection for customer company services - Implemented DI for customer company dependencies to facilitate service resolution. test: add tests for customer create data utility - Created tests for `buildCustomerCreateData` to validate payment term handling based on user input.
64 lines
2.0 KiB
JSON
64 lines
2.0 KiB
JSON
{
|
|
"name": "@erp/factuges-web",
|
|
"private": true,
|
|
"version": "0.10.3",
|
|
"type": "module",
|
|
"scripts": {
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"dev": "vite --host --clearScreen false",
|
|
"build": "tsc && vite build",
|
|
"build:rodax": "tsc && vite build --mode rodax",
|
|
"build:acana": "tsc && vite build --mode acana",
|
|
"preview": "vite preview --host --debug --mode production",
|
|
"clean": "rm -rf dist && rm -rf node_modules && rm -rf .turbo",
|
|
"check:deps": "pnpm exec depcheck",
|
|
"check": "biome check .",
|
|
"lint": "biome lint .",
|
|
"format": "biome format --write"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.4.11",
|
|
"@tanstack/react-query-devtools": "^5.98.0",
|
|
"@tailwindcss/postcss": "^4.1.5",
|
|
"@types/dinero.js": "1.9.1",
|
|
"@types/node": "^25.6.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"@vitejs/plugin-react": "^6.0.1",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.0.8"
|
|
},
|
|
"dependencies": {
|
|
"@erp/auth": "workspace:*",
|
|
"@erp/core": "workspace:*",
|
|
"@erp/catalogs": "workspace:*",
|
|
"@erp/companies": "workspace:*",
|
|
"@erp/customer-invoices": "workspace:*",
|
|
"@erp/customers": "workspace:*",
|
|
"@erp/identity": "workspace:*",
|
|
"@repo/rdx-utils": "workspace:*",
|
|
"@fontsource-variable/geist": "^5.2.8",
|
|
"@fontsource-variable/geist-mono": "^5.2.7",
|
|
"@repo/i18next": "workspace:*",
|
|
"@repo/rdx-ui": "workspace:*",
|
|
"@repo/shadcn-ui": "workspace:*",
|
|
"@tailwindcss/vite": "^4.2.2",
|
|
"@tanstack/react-query": "^5.98.0",
|
|
"axios": "^1.15.0",
|
|
"date-fns": "^4.1.0",
|
|
"dinero.js": "1.9.1",
|
|
"lucide-react": "^1.8.0",
|
|
"react": "^19.2.5",
|
|
"react-dom": "^19.2.5",
|
|
"react-error-boundary": "^6.1.1",
|
|
"react-hook-form": "^7.72.1",
|
|
"react-i18next": "^17.0.2",
|
|
"react-router": "^7.14.0",
|
|
"react-router-dom": "^7.14.0",
|
|
"react-secure-storage": "^1.3.2",
|
|
"sequelize": "^6.37.8",
|
|
"tailwindcss": "^4.2.2",
|
|
"tw-animate-css": "^1.4.0",
|
|
"vite-plugin-html": "^3.2.2"
|
|
}
|
|
} |