feat: enhance CustomerIndividual and CustomerLegal models with new unique input types

feat: add cache invalidation method for POS middleware

feat: implement Redis caching in POS middleware for improved performance

feat: refactor sales invoice DTOs for POS to include correction functionality

feat: extend SalesInvoicesController to handle invoice corrections and returns

feat: update SalesInvoicesService to support invoice correction and return operations

feat: enhance TSP provider correction functionality with new DTOs and utility methods

fix: improve error handling and logging in Nama provider switch adapter

refactor: streamline invoice payload building in TSP provider utilities
This commit is contained in:
2026-06-06 19:53:00 +03:30
parent 25e589551b
commit f61100bf25
21 changed files with 302 additions and 113 deletions
+5 -4
View File
@@ -1,5 +1,6 @@
import {
InvoiceSettlementType,
TspProviderRequestType,
TspProviderResponseStatus,
} from '@/generated/prisma/enums'
@@ -153,10 +154,10 @@ export default {
[InvoiceSettlementType.MIXED]: 'نقدی / نسیه',
},
TspProviderRequestType: {
ORIGINAL: 'اصلی',
CORRECTION: 'اصلاح',
REVOKE: 'ابطال',
REMOVE: 'حذف',
[TspProviderRequestType.ORIGINAL]: 'اصلی',
[TspProviderRequestType.CORRECTION]: 'اصلاح',
[TspProviderRequestType.REVOKE]: 'ابطال',
[TspProviderRequestType.RETURN]: 'برگشت از فروش',
},
TspProviderCustomerType: {
Unknown: 'ناشناس',