feat(inventories): add cardex retrieval for inventory and product

feat(pos): update sale invoice creation to include customer and item details
feat(pos): enhance POS account service to include today's sales information
feat(pos): refactor order DTO to create sale invoice with detailed item structure
feat(products): add minimum stock alert level to product creation and update DTOs
fix(triggers): implement stock validation and movement logging for sales invoice items
refactor(database): update sales invoices schema to include posAccountId and remove inventoryId
This commit is contained in:
2025-12-30 21:04:01 +03:30
parent 1bb206a608
commit eb6e0e7a0d
30 changed files with 1265 additions and 648 deletions
+2 -2
View File
@@ -7,7 +7,6 @@
"@nestjs/platform-express": "^11.0.1",
"@nestjs/swagger": "^11.2.3",
"@prisma/adapter-mariadb": "^7.1.0",
"@prisma/client": "^7.1.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.3",
"dayjs": "^1.11.19",
@@ -25,6 +24,7 @@
"@nestjs/cli": "^11.0.0",
"@nestjs/schematics": "^11.0.0",
"@nestjs/testing": "^11.0.1",
"@prisma/client": "^7.2.0",
"@types/express": "^5.0.0",
"@types/jest": "^30.0.0",
"@types/node": "^22.10.7",
@@ -36,7 +36,7 @@
"jest": "^30.0.0",
"prettier": "^3.4.2",
"prettier-plugin-prisma": "^5.0.0",
"prisma": "^7.1.0",
"prisma": "^7.2.0",
"source-map-support": "^0.5.21",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",