feat(customers): add DTOs for individual and legal customer creation
- Created CreateCustomerIndividualDto for individual customer data with fields: first_name, last_name, national_code, postal_code, is_favorite, and economic_code. - Created CreateCustomerLegalDto for legal customer data with fields: company_name, economic_code, registration_number, and postal_code.
This commit is contained in:
@@ -38,7 +38,8 @@ export type SalesInvoiceMinAggregateOutputType = {
|
||||
id: string | null
|
||||
code: string | null
|
||||
total_amount: runtime.Decimal | null
|
||||
description: string | null
|
||||
notes: string | null
|
||||
invoice_date: Date | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
customer_id: string | null
|
||||
@@ -50,7 +51,8 @@ export type SalesInvoiceMaxAggregateOutputType = {
|
||||
id: string | null
|
||||
code: string | null
|
||||
total_amount: runtime.Decimal | null
|
||||
description: string | null
|
||||
notes: string | null
|
||||
invoice_date: Date | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
customer_id: string | null
|
||||
@@ -62,7 +64,9 @@ export type SalesInvoiceCountAggregateOutputType = {
|
||||
id: number
|
||||
code: number
|
||||
total_amount: number
|
||||
description: number
|
||||
notes: number
|
||||
unknown_customer: number
|
||||
invoice_date: number
|
||||
created_at: number
|
||||
updated_at: number
|
||||
customer_id: number
|
||||
@@ -84,7 +88,8 @@ export type SalesInvoiceMinAggregateInputType = {
|
||||
id?: true
|
||||
code?: true
|
||||
total_amount?: true
|
||||
description?: true
|
||||
notes?: true
|
||||
invoice_date?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
customer_id?: true
|
||||
@@ -96,7 +101,8 @@ export type SalesInvoiceMaxAggregateInputType = {
|
||||
id?: true
|
||||
code?: true
|
||||
total_amount?: true
|
||||
description?: true
|
||||
notes?: true
|
||||
invoice_date?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
customer_id?: true
|
||||
@@ -108,7 +114,9 @@ export type SalesInvoiceCountAggregateInputType = {
|
||||
id?: true
|
||||
code?: true
|
||||
total_amount?: true
|
||||
description?: true
|
||||
notes?: true
|
||||
unknown_customer?: true
|
||||
invoice_date?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
customer_id?: true
|
||||
@@ -207,7 +215,9 @@ export type SalesInvoiceGroupByOutputType = {
|
||||
id: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal
|
||||
description: string | null
|
||||
notes: string | null
|
||||
unknown_customer: runtime.JsonValue | null
|
||||
invoice_date: Date | null
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
customer_id: string | null
|
||||
@@ -242,7 +252,9 @@ export type SalesInvoiceWhereInput = {
|
||||
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
notes?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
unknown_customer?: Prisma.JsonNullableFilter<"SalesInvoice">
|
||||
invoice_date?: Prisma.DateTimeNullableFilter<"SalesInvoice"> | Date | string | null
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
@@ -250,14 +262,16 @@ export type SalesInvoiceWhereInput = {
|
||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
}
|
||||
|
||||
export type SalesInvoiceOrderByWithRelationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
total_amount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
unknown_customer?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
invoice_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -265,7 +279,7 @@ export type SalesInvoiceOrderByWithRelationInput = {
|
||||
complex_id?: Prisma.SortOrder
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
|
||||
payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -276,7 +290,9 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
|
||||
OR?: Prisma.SalesInvoiceWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceWhereInput | Prisma.SalesInvoiceWhereInput[]
|
||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
notes?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
unknown_customer?: Prisma.JsonNullableFilter<"SalesInvoice">
|
||||
invoice_date?: Prisma.DateTimeNullableFilter<"SalesInvoice"> | Date | string | null
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
@@ -284,14 +300,16 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
|
||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
}, "id" | "code">
|
||||
|
||||
export type SalesInvoiceOrderByWithAggregationInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
total_amount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
notes?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
unknown_customer?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
invoice_date?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
@@ -311,7 +329,9 @@ export type SalesInvoiceScalarWhereWithAggregatesInput = {
|
||||
id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||
code?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
||||
notes?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
||||
unknown_customer?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoice">
|
||||
invoice_date?: Prisma.DateTimeNullableWithAggregatesFilter<"SalesInvoice"> | Date | string | null
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
||||
@@ -323,63 +343,73 @@ export type SalesInvoiceCreateInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
@@ -391,7 +421,9 @@ export type SalesInvoiceUpdateManyMutationInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -402,7 +434,9 @@ export type SalesInvoiceUncheckedUpdateManyInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -430,7 +464,9 @@ export type SalesInvoiceCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
total_amount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
unknown_customer?: Prisma.SortOrder
|
||||
invoice_date?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
@@ -446,7 +482,8 @@ export type SalesInvoiceMaxOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
total_amount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
invoice_date?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
@@ -458,7 +495,8 @@ export type SalesInvoiceMinOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
total_amount?: Prisma.SortOrder
|
||||
description?: Prisma.SortOrder
|
||||
notes?: Prisma.SortOrder
|
||||
invoice_date?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
@@ -531,44 +569,48 @@ export type SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutItemsInput, Prisma.SalesInvoiceUpdateWithoutItemsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedOneWithoutSales_invoice_paymentsInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput
|
||||
export type SalesInvoiceCreateNestedOneWithoutPaymentsInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPaymentsInput
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateOneRequiredWithoutSales_invoice_paymentsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithoutSales_invoice_paymentsInput
|
||||
export type SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPaymentsInput
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithoutPaymentsInput
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutPaymentsInput, Prisma.SalesInvoiceUpdateWithoutPaymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
|
||||
@@ -604,7 +646,9 @@ export type SalesInvoiceScalarWhereInput = {
|
||||
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
notes?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
unknown_customer?: Prisma.JsonNullableFilter<"SalesInvoice">
|
||||
invoice_date?: Prisma.DateTimeNullableFilter<"SalesInvoice"> | Date | string | null
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
@@ -616,26 +660,30 @@ export type SalesInvoiceCreateWithoutItemsInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutItemsInput = {
|
||||
@@ -658,33 +706,39 @@ export type SalesInvoiceUpdateWithoutItemsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
customer?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutSales_invoice_paymentsInput = {
|
||||
export type SalesInvoiceCreateWithoutPaymentsInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
@@ -693,11 +747,13 @@ export type SalesInvoiceCreateWithoutSales_invoice_paymentsInput = {
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput = {
|
||||
export type SalesInvoiceUncheckedCreateWithoutPaymentsInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
@@ -706,27 +762,29 @@ export type SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput = {
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutSales_invoice_paymentsInput = {
|
||||
export type SalesInvoiceCreateOrConnectWithoutPaymentsInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpsertWithoutSales_invoice_paymentsInput = {
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSales_invoice_paymentsInput>
|
||||
export type SalesInvoiceUpsertWithoutPaymentsInput = {
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutPaymentsInput>
|
||||
where?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateToOneWithWhereWithoutSales_invoice_paymentsInput = {
|
||||
export type SalesInvoiceUpdateToOneWithWhereWithoutPaymentsInput = {
|
||||
where?: Prisma.SalesInvoiceWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSales_invoice_paymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput>
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutSales_invoice_paymentsInput = {
|
||||
export type SalesInvoiceUpdateWithoutPaymentsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -735,11 +793,13 @@ export type SalesInvoiceUpdateWithoutSales_invoice_paymentsInput = {
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutSales_invoice_paymentsInput = {
|
||||
export type SalesInvoiceUncheckedUpdateWithoutPaymentsInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
@@ -752,7 +812,9 @@ export type SalesInvoiceCreateManyCustomerInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: string | null
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
@@ -763,33 +825,39 @@ export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
sales_invoice_payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
@@ -803,12 +871,12 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||
|
||||
export type SalesInvoiceCountOutputType = {
|
||||
items: number
|
||||
sales_invoice_payments: number
|
||||
payments: number
|
||||
}
|
||||
|
||||
export type SalesInvoiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
items?: boolean | SalesInvoiceCountOutputTypeCountItemsArgs
|
||||
sales_invoice_payments?: boolean | SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs
|
||||
payments?: boolean | SalesInvoiceCountOutputTypeCountPaymentsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -831,7 +899,7 @@ export type SalesInvoiceCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Ty
|
||||
/**
|
||||
* SalesInvoiceCountOutputType without action
|
||||
*/
|
||||
export type SalesInvoiceCountOutputTypeCountSales_invoice_paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
export type SalesInvoiceCountOutputTypeCountPaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.SalesInvoicePaymentWhereInput
|
||||
}
|
||||
|
||||
@@ -840,7 +908,9 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
id?: boolean
|
||||
code?: boolean
|
||||
total_amount?: boolean
|
||||
description?: boolean
|
||||
notes?: boolean
|
||||
unknown_customer?: boolean
|
||||
invoice_date?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
customer_id?: boolean
|
||||
@@ -848,7 +918,7 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
complex_id?: boolean
|
||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||
sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>
|
||||
payments?: boolean | Prisma.SalesInvoice$paymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["salesInvoice"]>
|
||||
|
||||
@@ -858,7 +928,9 @@ export type SalesInvoiceSelectScalar = {
|
||||
id?: boolean
|
||||
code?: boolean
|
||||
total_amount?: boolean
|
||||
description?: boolean
|
||||
notes?: boolean
|
||||
unknown_customer?: boolean
|
||||
invoice_date?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
customer_id?: boolean
|
||||
@@ -866,11 +938,11 @@ export type SalesInvoiceSelectScalar = {
|
||||
complex_id?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "total_amount" | "description" | "created_at" | "updated_at" | "customer_id" | "account_id" | "complex_id", ExtArgs["result"]["salesInvoice"]>
|
||||
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "total_amount" | "notes" | "unknown_customer" | "invoice_date" | "created_at" | "updated_at" | "customer_id" | "account_id" | "complex_id", ExtArgs["result"]["salesInvoice"]>
|
||||
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||
sales_invoice_payments?: boolean | Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>
|
||||
payments?: boolean | Prisma.SalesInvoice$paymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -879,13 +951,15 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
objects: {
|
||||
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
||||
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
||||
sales_invoice_payments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
|
||||
payments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal
|
||||
description: string | null
|
||||
notes: string | null
|
||||
unknown_customer: runtime.JsonValue | null
|
||||
invoice_date: Date | null
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
customer_id: string | null
|
||||
@@ -1233,7 +1307,7 @@ export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends run
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
customer<T extends Prisma.SalesInvoice$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
sales_invoice_payments<T extends Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$sales_invoice_paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
payments<T extends Prisma.SalesInvoice$paymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$paymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1266,7 +1340,9 @@ export interface SalesInvoiceFieldRefs {
|
||||
readonly id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly code: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly total_amount: Prisma.FieldRef<"SalesInvoice", 'Decimal'>
|
||||
readonly description: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly notes: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly unknown_customer: Prisma.FieldRef<"SalesInvoice", 'Json'>
|
||||
readonly invoice_date: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||
readonly created_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||
readonly updated_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||
readonly customer_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
@@ -1658,9 +1734,9 @@ export type SalesInvoice$itemsArgs<ExtArgs extends runtime.Types.Extensions.Inte
|
||||
}
|
||||
|
||||
/**
|
||||
* SalesInvoice.sales_invoice_payments
|
||||
* SalesInvoice.payments
|
||||
*/
|
||||
export type SalesInvoice$sales_invoice_paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
export type SalesInvoice$paymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the SalesInvoicePayment
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user