update pos consumer module
This commit is contained in:
@@ -44,7 +44,7 @@ export type SalesInvoiceMinAggregateOutputType = {
|
||||
updated_at: Date | null
|
||||
customer_id: string | null
|
||||
account_id: string | null
|
||||
complex_id: string | null
|
||||
pos_id: string | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceMaxAggregateOutputType = {
|
||||
@@ -57,7 +57,7 @@ export type SalesInvoiceMaxAggregateOutputType = {
|
||||
updated_at: Date | null
|
||||
customer_id: string | null
|
||||
account_id: string | null
|
||||
complex_id: string | null
|
||||
pos_id: string | null
|
||||
}
|
||||
|
||||
export type SalesInvoiceCountAggregateOutputType = {
|
||||
@@ -71,7 +71,7 @@ export type SalesInvoiceCountAggregateOutputType = {
|
||||
updated_at: number
|
||||
customer_id: number
|
||||
account_id: number
|
||||
complex_id: number
|
||||
pos_id: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ export type SalesInvoiceMinAggregateInputType = {
|
||||
updated_at?: true
|
||||
customer_id?: true
|
||||
account_id?: true
|
||||
complex_id?: true
|
||||
pos_id?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceMaxAggregateInputType = {
|
||||
@@ -107,7 +107,7 @@ export type SalesInvoiceMaxAggregateInputType = {
|
||||
updated_at?: true
|
||||
customer_id?: true
|
||||
account_id?: true
|
||||
complex_id?: true
|
||||
pos_id?: true
|
||||
}
|
||||
|
||||
export type SalesInvoiceCountAggregateInputType = {
|
||||
@@ -121,7 +121,7 @@ export type SalesInvoiceCountAggregateInputType = {
|
||||
updated_at?: true
|
||||
customer_id?: true
|
||||
account_id?: true
|
||||
complex_id?: true
|
||||
pos_id?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ export type SalesInvoiceGroupByOutputType = {
|
||||
updated_at: Date
|
||||
customer_id: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
_count: SalesInvoiceCountAggregateOutputType | null
|
||||
_avg: SalesInvoiceAvgAggregateOutputType | null
|
||||
_sum: SalesInvoiceSumAggregateOutputType | null
|
||||
@@ -259,8 +259,10 @@ export type SalesInvoiceWhereInput = {
|
||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
pos_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
pos?: Prisma.XOR<Prisma.PosScalarRelationFilter, Prisma.PosWhereInput>
|
||||
account?: Prisma.XOR<Prisma.ConsumerAccountScalarRelationFilter, Prisma.ConsumerAccountWhereInput>
|
||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
}
|
||||
@@ -276,8 +278,10 @@ export type SalesInvoiceOrderByWithRelationInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
pos_id?: Prisma.SortOrder
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
pos?: Prisma.PosOrderByWithRelationInput
|
||||
account?: Prisma.ConsumerAccountOrderByWithRelationInput
|
||||
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
|
||||
payments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
|
||||
@@ -297,8 +301,10 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
|
||||
updated_at?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableFilter<"SalesInvoice"> | string | null
|
||||
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
pos_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
pos?: Prisma.XOR<Prisma.PosScalarRelationFilter, Prisma.PosWhereInput>
|
||||
account?: Prisma.XOR<Prisma.ConsumerAccountScalarRelationFilter, Prisma.ConsumerAccountWhereInput>
|
||||
items?: Prisma.SalesInvoiceItemListRelationFilter
|
||||
payments?: Prisma.SalesInvoicePaymentListRelationFilter
|
||||
}, "id" | "code">
|
||||
@@ -314,7 +320,7 @@ export type SalesInvoiceOrderByWithAggregationInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
pos_id?: Prisma.SortOrder
|
||||
_count?: Prisma.SalesInvoiceCountOrderByAggregateInput
|
||||
_avg?: Prisma.SalesInvoiceAvgOrderByAggregateInput
|
||||
_max?: Prisma.SalesInvoiceMaxOrderByAggregateInput
|
||||
@@ -336,7 +342,7 @@ export type SalesInvoiceScalarWhereWithAggregatesInput = {
|
||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoice"> | Date | string
|
||||
customer_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoice"> | string | null
|
||||
account_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||
complex_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||
pos_id?: Prisma.StringWithAggregatesFilter<"SalesInvoice"> | string
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateInput = {
|
||||
@@ -348,9 +354,9 @@ export type SalesInvoiceCreateInput = {
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
pos: Prisma.PosCreateNestedOneWithoutSalesInvoicesInput
|
||||
account: Prisma.ConsumerAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -366,7 +372,7 @@ export type SalesInvoiceUncheckedCreateInput = {
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -380,9 +386,9 @@ export type SalesInvoiceUpdateInput = {
|
||||
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
|
||||
pos?: Prisma.PosUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -398,7 +404,7 @@ export type SalesInvoiceUncheckedUpdateInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -414,7 +420,7 @@ export type SalesInvoiceCreateManyInput = {
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyMutationInput = {
|
||||
@@ -426,8 +432,6 @@ export type SalesInvoiceUpdateManyMutationInput = {
|
||||
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
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyInput = {
|
||||
@@ -441,7 +445,7 @@ export type SalesInvoiceUncheckedUpdateManyInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type SalesInvoiceListRelationFilter = {
|
||||
@@ -471,7 +475,7 @@ export type SalesInvoiceCountOrderByAggregateInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
pos_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceAvgOrderByAggregateInput = {
|
||||
@@ -488,7 +492,7 @@ export type SalesInvoiceMaxOrderByAggregateInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
pos_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceMinOrderByAggregateInput = {
|
||||
@@ -501,7 +505,7 @@ export type SalesInvoiceMinOrderByAggregateInput = {
|
||||
updated_at?: Prisma.SortOrder
|
||||
customer_id?: Prisma.SortOrder
|
||||
account_id?: Prisma.SortOrder
|
||||
complex_id?: Prisma.SortOrder
|
||||
pos_id?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoiceSumOrderByAggregateInput = {
|
||||
@@ -513,6 +517,90 @@ export type SalesInvoiceScalarRelationFilter = {
|
||||
isNot?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput> | Prisma.SalesInvoiceCreateWithoutAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyAccountInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateNestedManyWithoutAccountInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput> | Prisma.SalesInvoiceCreateWithoutAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyAccountInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithoutAccountNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput> | Prisma.SalesInvoiceCreateWithoutAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutAccountInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyAccountInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutAccountInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutAccountInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutAccountInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutAccountInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutAccountNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput> | Prisma.SalesInvoiceCreateWithoutAccountInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput | Prisma.SalesInvoiceCreateOrConnectWithoutAccountInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutAccountInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutAccountInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyAccountInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutAccountInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutAccountInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutAccountInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutAccountInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutPosInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosInput> | Prisma.SalesInvoiceCreateWithoutPosInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateNestedManyWithoutPosInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosInput> | Prisma.SalesInvoiceCreateWithoutPosInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosInputEnvelope
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithoutPosNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosInput> | Prisma.SalesInvoiceCreateWithoutPosInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutPosNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosInput> | Prisma.SalesInvoiceCreateWithoutPosInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutPosInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutPosInput | Prisma.SalesInvoiceCreateOrConnectWithoutPosInput[]
|
||||
upsert?: Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosInput | Prisma.SalesInvoiceUpsertWithWhereUniqueWithoutPosInput[]
|
||||
createMany?: Prisma.SalesInvoiceCreateManyPosInputEnvelope
|
||||
set?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
disconnect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
delete?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
connect?: Prisma.SalesInvoiceWhereUniqueInput | Prisma.SalesInvoiceWhereUniqueInput[]
|
||||
update?: Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosInput | Prisma.SalesInvoiceUpdateWithWhereUniqueWithoutPosInput[]
|
||||
updateMany?: Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosInput | Prisma.SalesInvoiceUpdateManyWithWhereWithoutPosInput[]
|
||||
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutCustomerInput, Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput> | Prisma.SalesInvoiceCreateWithoutCustomerInput[] | Prisma.SalesInvoiceUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput | Prisma.SalesInvoiceCreateOrConnectWithoutCustomerInput[]
|
||||
@@ -591,6 +679,135 @@ export type SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutPaymentsInput, Prisma.SalesInvoiceUpdateWithoutPaymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutPaymentsInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutAccountInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
pos: Prisma.PosCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutAccountInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
pos_id: string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutAccountInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyAccountInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceCreateManyAccountInput | Prisma.SalesInvoiceCreateManyAccountInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpsertWithWhereUniqueWithoutAccountInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutAccountInput, Prisma.SalesInvoiceUncheckedUpdateWithoutAccountInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutAccountInput, Prisma.SalesInvoiceUncheckedCreateWithoutAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithWhereUniqueWithoutAccountInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutAccountInput, Prisma.SalesInvoiceUncheckedUpdateWithoutAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithWhereWithoutAccountInput = {
|
||||
where: Prisma.SalesInvoiceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutAccountInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
pos_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutPosInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
notes?: string | null
|
||||
unknown_customer?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
account: Prisma.ConsumerAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedCreateWithoutPosInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateOrConnectWithoutPosInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyPosInputEnvelope = {
|
||||
data: Prisma.SalesInvoiceCreateManyPosInput | Prisma.SalesInvoiceCreateManyPosInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpsertWithWhereUniqueWithoutPosInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPosInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPosInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutPosInput, Prisma.SalesInvoiceUncheckedCreateWithoutPosInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithWhereUniqueWithoutPosInput = {
|
||||
where: Prisma.SalesInvoiceWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutPosInput, Prisma.SalesInvoiceUncheckedUpdateWithoutPosInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateManyWithWhereWithoutPosInput = {
|
||||
where: Prisma.SalesInvoiceScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutPosInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||
id?: string
|
||||
code: string
|
||||
@@ -600,8 +817,8 @@ export type SalesInvoiceCreateWithoutCustomerInput = {
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos: Prisma.PosCreateNestedOneWithoutSalesInvoicesInput
|
||||
account: Prisma.ConsumerAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -616,7 +833,7 @@ export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
@@ -647,23 +864,6 @@ export type SalesInvoiceUpdateManyWithWhereWithoutCustomerInput = {
|
||||
data: Prisma.XOR<Prisma.SalesInvoiceUpdateManyMutationInput, Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type SalesInvoiceScalarWhereInput = {
|
||||
AND?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
OR?: Prisma.SalesInvoiceScalarWhereInput[]
|
||||
NOT?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
|
||||
id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
code?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
total_amount?: Prisma.DecimalFilter<"SalesInvoice"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
account_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
complex_id?: Prisma.StringFilter<"SalesInvoice"> | string
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateWithoutItemsInput = {
|
||||
id?: string
|
||||
code: string
|
||||
@@ -673,9 +873,9 @@ export type SalesInvoiceCreateWithoutItemsInput = {
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
pos: Prisma.PosCreateNestedOneWithoutSalesInvoicesInput
|
||||
account: Prisma.ConsumerAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
payments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -690,7 +890,7 @@ export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -719,9 +919,9 @@ export type SalesInvoiceUpdateWithoutItemsInput = {
|
||||
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
|
||||
pos?: Prisma.PosUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
@@ -736,7 +936,7 @@ export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
@@ -749,9 +949,9 @@ export type SalesInvoiceCreateWithoutPaymentsInput = {
|
||||
invoice_date?: Date | string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutSales_invoicesInput
|
||||
pos: Prisma.PosCreateNestedOneWithoutSalesInvoicesInput
|
||||
account: Prisma.ConsumerAccountCreateNestedOneWithoutSalesInvoicesInput
|
||||
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -766,7 +966,7 @@ export type SalesInvoiceUncheckedCreateWithoutPaymentsInput = {
|
||||
updated_at?: Date | string
|
||||
customer_id?: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
|
||||
}
|
||||
|
||||
@@ -795,9 +995,9 @@ export type SalesInvoiceUpdateWithoutPaymentsInput = {
|
||||
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
|
||||
pos?: Prisma.PosUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
@@ -812,10 +1012,122 @@ export type SalesInvoiceUncheckedUpdateWithoutPaymentsInput = {
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
customer_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyAccountInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
pos_id: string
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutAccountInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
||||
pos?: Prisma.PosUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutAccountInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutAccountInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyPosInput = {
|
||||
id?: string
|
||||
code: string
|
||||
total_amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutPosInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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?: Prisma.CustomerUpdateOneWithoutSales_invoicesNestedInput
|
||||
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateWithoutPosInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoiceUncheckedUpdateManyWithoutPosInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
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
|
||||
}
|
||||
|
||||
export type SalesInvoiceCreateManyCustomerInput = {
|
||||
id?: string
|
||||
code: string
|
||||
@@ -826,7 +1138,7 @@ export type SalesInvoiceCreateManyCustomerInput = {
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
}
|
||||
|
||||
export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
@@ -838,8 +1150,8 @@ export type SalesInvoiceUpdateWithoutCustomerInput = {
|
||||
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
|
||||
pos?: Prisma.PosUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
account?: Prisma.ConsumerAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
|
||||
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -854,7 +1166,7 @@ export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
payments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
|
||||
}
|
||||
@@ -869,7 +1181,7 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
account_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
complex_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
pos_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
|
||||
@@ -923,8 +1235,10 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
|
||||
updated_at?: boolean
|
||||
customer_id?: boolean
|
||||
account_id?: boolean
|
||||
complex_id?: boolean
|
||||
pos_id?: boolean
|
||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||
pos?: boolean | Prisma.PosDefaultArgs<ExtArgs>
|
||||
account?: boolean | Prisma.ConsumerAccountDefaultArgs<ExtArgs>
|
||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||
payments?: boolean | Prisma.SalesInvoice$paymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -943,12 +1257,14 @@ export type SalesInvoiceSelectScalar = {
|
||||
updated_at?: boolean
|
||||
customer_id?: boolean
|
||||
account_id?: boolean
|
||||
complex_id?: boolean
|
||||
pos_id?: boolean
|
||||
}
|
||||
|
||||
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 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" | "pos_id", ExtArgs["result"]["salesInvoice"]>
|
||||
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
|
||||
pos?: boolean | Prisma.PosDefaultArgs<ExtArgs>
|
||||
account?: boolean | Prisma.ConsumerAccountDefaultArgs<ExtArgs>
|
||||
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
|
||||
payments?: boolean | Prisma.SalesInvoice$paymentsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -958,6 +1274,8 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
name: "SalesInvoice"
|
||||
objects: {
|
||||
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
||||
pos: Prisma.$PosPayload<ExtArgs>
|
||||
account: Prisma.$ConsumerAccountPayload<ExtArgs>
|
||||
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
|
||||
payments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
|
||||
}
|
||||
@@ -972,7 +1290,7 @@ export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.Intern
|
||||
updated_at: Date
|
||||
customer_id: string | null
|
||||
account_id: string
|
||||
complex_id: string
|
||||
pos_id: string
|
||||
}, ExtArgs["result"]["salesInvoice"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1314,6 +1632,8 @@ readonly fields: SalesInvoiceFieldRefs;
|
||||
export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
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>
|
||||
pos<T extends Prisma.PosDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosDefaultArgs<ExtArgs>>): Prisma.Prisma__PosClient<runtime.Types.Result.GetResult<Prisma.$PosPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
account<T extends Prisma.ConsumerAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ConsumerAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__ConsumerAccountClient<runtime.Types.Result.GetResult<Prisma.$ConsumerAccountPayload<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>
|
||||
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>
|
||||
/**
|
||||
@@ -1355,7 +1675,7 @@ export interface SalesInvoiceFieldRefs {
|
||||
readonly updated_at: Prisma.FieldRef<"SalesInvoice", 'DateTime'>
|
||||
readonly customer_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly account_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly complex_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
readonly pos_id: Prisma.FieldRef<"SalesInvoice", 'String'>
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user