feat: add stock keeping unit management with create, update, and retrieval functionalities

- Implemented CreateStockKeepingUnitDto for creating stock keeping units.
- Added StockKeepingUnitsService for handling business logic related to stock keeping units.
- Created StockKeepingUnitsController to manage HTTP requests for stock keeping units.
- Developed UpdateStockKeepingUnitDto for updating existing stock keeping units.
- Introduced StockKeepingUnitsServiceFindAllResponseDto for response structure.
- Established stock keeping units module for encapsulation of related components.

feat: enhance sales invoice fiscal management with new endpoints

- Created SalesInvoicesFilterDto for filtering sales invoices.
- Implemented PosSalesInvoiceFiscalController for managing fiscal operations on sales invoices.
- Developed PosSalesInvoiceFiscalService to handle fiscal logic and interactions.
- Added methods for sending, retrying, and checking the status of fiscal invoices.
- Integrated error handling and response mapping for fiscal operations.
This commit is contained in:
2026-05-01 19:43:59 +03:30
parent a68a7f594d
commit ad470d2166
91 changed files with 8973 additions and 2469 deletions
+40 -40
View File
@@ -25,7 +25,7 @@ export type AggregateCustomerLegal = {
}
export type CustomerLegalMinAggregateOutputType = {
company_name: string | null
name: string | null
economic_code: string | null
registration_number: string | null
postal_code: string | null
@@ -34,7 +34,7 @@ export type CustomerLegalMinAggregateOutputType = {
}
export type CustomerLegalMaxAggregateOutputType = {
company_name: string | null
name: string | null
economic_code: string | null
registration_number: string | null
postal_code: string | null
@@ -43,7 +43,7 @@ export type CustomerLegalMaxAggregateOutputType = {
}
export type CustomerLegalCountAggregateOutputType = {
company_name: number
name: number
economic_code: number
registration_number: number
postal_code: number
@@ -54,7 +54,7 @@ export type CustomerLegalCountAggregateOutputType = {
export type CustomerLegalMinAggregateInputType = {
company_name?: true
name?: true
economic_code?: true
registration_number?: true
postal_code?: true
@@ -63,7 +63,7 @@ export type CustomerLegalMinAggregateInputType = {
}
export type CustomerLegalMaxAggregateInputType = {
company_name?: true
name?: true
economic_code?: true
registration_number?: true
postal_code?: true
@@ -72,7 +72,7 @@ export type CustomerLegalMaxAggregateInputType = {
}
export type CustomerLegalCountAggregateInputType = {
company_name?: true
name?: true
economic_code?: true
registration_number?: true
postal_code?: true
@@ -154,7 +154,7 @@ export type CustomerLegalGroupByArgs<ExtArgs extends runtime.Types.Extensions.In
}
export type CustomerLegalGroupByOutputType = {
company_name: string
name: string
economic_code: string
registration_number: string | null
postal_code: string
@@ -184,7 +184,7 @@ export type CustomerLegalWhereInput = {
AND?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
OR?: Prisma.CustomerLegalWhereInput[]
NOT?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
name?: Prisma.StringFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
@@ -195,7 +195,7 @@ export type CustomerLegalWhereInput = {
}
export type CustomerLegalOrderByWithRelationInput = {
company_name?: Prisma.SortOrder
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrderInput | Prisma.SortOrder
postal_code?: Prisma.SortOrder
@@ -212,7 +212,7 @@ export type CustomerLegalWhereUniqueInput = Prisma.AtLeast<{
AND?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
OR?: Prisma.CustomerLegalWhereInput[]
NOT?: Prisma.CustomerLegalWhereInput | Prisma.CustomerLegalWhereInput[]
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
name?: Prisma.StringFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
@@ -222,7 +222,7 @@ export type CustomerLegalWhereUniqueInput = Prisma.AtLeast<{
}, "customer_id" | "business_activity_id_economic_code">
export type CustomerLegalOrderByWithAggregationInput = {
company_name?: Prisma.SortOrder
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrderInput | Prisma.SortOrder
postal_code?: Prisma.SortOrder
@@ -237,7 +237,7 @@ export type CustomerLegalScalarWhereWithAggregatesInput = {
AND?: Prisma.CustomerLegalScalarWhereWithAggregatesInput | Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
OR?: Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
NOT?: Prisma.CustomerLegalScalarWhereWithAggregatesInput | Prisma.CustomerLegalScalarWhereWithAggregatesInput[]
company_name?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
name?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableWithAggregatesFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringWithAggregatesFilter<"CustomerLegal"> | string
@@ -246,7 +246,7 @@ export type CustomerLegalScalarWhereWithAggregatesInput = {
}
export type CustomerLegalCreateInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -255,7 +255,7 @@ export type CustomerLegalCreateInput = {
}
export type CustomerLegalUncheckedCreateInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -264,7 +264,7 @@ export type CustomerLegalUncheckedCreateInput = {
}
export type CustomerLegalUpdateInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -273,7 +273,7 @@ export type CustomerLegalUpdateInput = {
}
export type CustomerLegalUncheckedUpdateInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -282,7 +282,7 @@ export type CustomerLegalUncheckedUpdateInput = {
}
export type CustomerLegalCreateManyInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -291,14 +291,14 @@ export type CustomerLegalCreateManyInput = {
}
export type CustomerLegalUpdateManyMutationInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
}
export type CustomerLegalUncheckedUpdateManyInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -333,7 +333,7 @@ export type CustomerLegalBusiness_activity_idEconomic_codeCompoundUniqueInput =
}
export type CustomerLegalCountOrderByAggregateInput = {
company_name?: Prisma.SortOrder
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrder
postal_code?: Prisma.SortOrder
@@ -342,7 +342,7 @@ export type CustomerLegalCountOrderByAggregateInput = {
}
export type CustomerLegalMaxOrderByAggregateInput = {
company_name?: Prisma.SortOrder
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrder
postal_code?: Prisma.SortOrder
@@ -351,7 +351,7 @@ export type CustomerLegalMaxOrderByAggregateInput = {
}
export type CustomerLegalMinOrderByAggregateInput = {
company_name?: Prisma.SortOrder
name?: Prisma.SortOrder
economic_code?: Prisma.SortOrder
registration_number?: Prisma.SortOrder
postal_code?: Prisma.SortOrder
@@ -434,7 +434,7 @@ export type CustomerLegalUncheckedUpdateOneWithoutCustomerNestedInput = {
}
export type CustomerLegalCreateWithoutBusiness_activityInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -442,7 +442,7 @@ export type CustomerLegalCreateWithoutBusiness_activityInput = {
}
export type CustomerLegalUncheckedCreateWithoutBusiness_activityInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -479,7 +479,7 @@ export type CustomerLegalScalarWhereInput = {
AND?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
OR?: Prisma.CustomerLegalScalarWhereInput[]
NOT?: Prisma.CustomerLegalScalarWhereInput | Prisma.CustomerLegalScalarWhereInput[]
company_name?: Prisma.StringFilter<"CustomerLegal"> | string
name?: Prisma.StringFilter<"CustomerLegal"> | string
economic_code?: Prisma.StringFilter<"CustomerLegal"> | string
registration_number?: Prisma.StringNullableFilter<"CustomerLegal"> | string | null
postal_code?: Prisma.StringFilter<"CustomerLegal"> | string
@@ -488,7 +488,7 @@ export type CustomerLegalScalarWhereInput = {
}
export type CustomerLegalCreateWithoutCustomerInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -496,7 +496,7 @@ export type CustomerLegalCreateWithoutCustomerInput = {
}
export type CustomerLegalUncheckedCreateWithoutCustomerInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -520,7 +520,7 @@ export type CustomerLegalUpdateToOneWithWhereWithoutCustomerInput = {
}
export type CustomerLegalUpdateWithoutCustomerInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -528,7 +528,7 @@ export type CustomerLegalUpdateWithoutCustomerInput = {
}
export type CustomerLegalUncheckedUpdateWithoutCustomerInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -536,7 +536,7 @@ export type CustomerLegalUncheckedUpdateWithoutCustomerInput = {
}
export type CustomerLegalCreateManyBusiness_activityInput = {
company_name: string
name: string
economic_code: string
registration_number?: string | null
postal_code: string
@@ -544,7 +544,7 @@ export type CustomerLegalCreateManyBusiness_activityInput = {
}
export type CustomerLegalUpdateWithoutBusiness_activityInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -552,7 +552,7 @@ export type CustomerLegalUpdateWithoutBusiness_activityInput = {
}
export type CustomerLegalUncheckedUpdateWithoutBusiness_activityInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -560,7 +560,7 @@ export type CustomerLegalUncheckedUpdateWithoutBusiness_activityInput = {
}
export type CustomerLegalUncheckedUpdateManyWithoutBusiness_activityInput = {
company_name?: Prisma.StringFieldUpdateOperationsInput | string
name?: Prisma.StringFieldUpdateOperationsInput | string
economic_code?: Prisma.StringFieldUpdateOperationsInput | string
registration_number?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
postal_code?: Prisma.StringFieldUpdateOperationsInput | string
@@ -570,7 +570,7 @@ export type CustomerLegalUncheckedUpdateManyWithoutBusiness_activityInput = {
export type CustomerLegalSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
company_name?: boolean
name?: boolean
economic_code?: boolean
registration_number?: boolean
postal_code?: boolean
@@ -583,7 +583,7 @@ export type CustomerLegalSelect<ExtArgs extends runtime.Types.Extensions.Interna
export type CustomerLegalSelectScalar = {
company_name?: boolean
name?: boolean
economic_code?: boolean
registration_number?: boolean
postal_code?: boolean
@@ -591,7 +591,7 @@ export type CustomerLegalSelectScalar = {
business_activity_id?: boolean
}
export type CustomerLegalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"company_name" | "economic_code" | "registration_number" | "postal_code" | "customer_id" | "business_activity_id", ExtArgs["result"]["customerLegal"]>
export type CustomerLegalOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"name" | "economic_code" | "registration_number" | "postal_code" | "customer_id" | "business_activity_id", ExtArgs["result"]["customerLegal"]>
export type CustomerLegalInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
business_activity?: boolean | Prisma.BusinessActivityDefaultArgs<ExtArgs>
@@ -604,7 +604,7 @@ export type $CustomerLegalPayload<ExtArgs extends runtime.Types.Extensions.Inter
business_activity: Prisma.$BusinessActivityPayload<ExtArgs>
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
company_name: string
name: string
economic_code: string
registration_number: string | null
postal_code: string
@@ -693,8 +693,8 @@ export interface CustomerLegalDelegate<ExtArgs extends runtime.Types.Extensions.
* // Get first 10 CustomerLegals
* const customerLegals = await prisma.customerLegal.findMany({ take: 10 })
*
* // Only select the `company_name`
* const customerLegalWithCompany_nameOnly = await prisma.customerLegal.findMany({ select: { company_name: true } })
* // Only select the `name`
* const customerLegalWithNameOnly = await prisma.customerLegal.findMany({ select: { name: true } })
*
*/
findMany<T extends CustomerLegalFindManyArgs>(args?: Prisma.SelectSubset<T, CustomerLegalFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CustomerLegalPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
@@ -981,7 +981,7 @@ export interface Prisma__CustomerLegalClient<T, Null = never, ExtArgs extends ru
* Fields of the CustomerLegal model
*/
export interface CustomerLegalFieldRefs {
readonly company_name: Prisma.FieldRef<"CustomerLegal", 'String'>
readonly name: Prisma.FieldRef<"CustomerLegal", 'String'>
readonly economic_code: Prisma.FieldRef<"CustomerLegal", 'String'>
readonly registration_number: Prisma.FieldRef<"CustomerLegal", 'String'>
readonly postal_code: Prisma.FieldRef<"CustomerLegal", 'String'>