|
|
|
@@ -27,20 +27,21 @@ export type AggregateSalesInvoiceItem = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAvgAggregateOutputType = {
|
|
|
|
|
count: runtime.Decimal | null
|
|
|
|
|
quantity: runtime.Decimal | null
|
|
|
|
|
unit_price: runtime.Decimal | null
|
|
|
|
|
total_amount: runtime.Decimal | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSumAggregateOutputType = {
|
|
|
|
|
count: runtime.Decimal | null
|
|
|
|
|
quantity: runtime.Decimal | null
|
|
|
|
|
unit_price: runtime.Decimal | null
|
|
|
|
|
total_amount: runtime.Decimal | null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMinAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
count: runtime.Decimal | null
|
|
|
|
|
quantity: runtime.Decimal | null
|
|
|
|
|
unit_type: $Enums.UnitType | null
|
|
|
|
|
unit_price: runtime.Decimal | null
|
|
|
|
|
total_amount: runtime.Decimal | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
@@ -51,7 +52,8 @@ export type SalesInvoiceItemMinAggregateOutputType = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMaxAggregateOutputType = {
|
|
|
|
|
id: string | null
|
|
|
|
|
count: runtime.Decimal | null
|
|
|
|
|
quantity: runtime.Decimal | null
|
|
|
|
|
unit_type: $Enums.UnitType | null
|
|
|
|
|
unit_price: runtime.Decimal | null
|
|
|
|
|
total_amount: runtime.Decimal | null
|
|
|
|
|
created_at: Date | null
|
|
|
|
@@ -62,32 +64,35 @@ export type SalesInvoiceItemMaxAggregateOutputType = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountAggregateOutputType = {
|
|
|
|
|
id: number
|
|
|
|
|
count: number
|
|
|
|
|
quantity: number
|
|
|
|
|
unit_type: number
|
|
|
|
|
unit_price: number
|
|
|
|
|
total_amount: number
|
|
|
|
|
created_at: number
|
|
|
|
|
invoice_id: number
|
|
|
|
|
good_id: number
|
|
|
|
|
service_id: number
|
|
|
|
|
payload: number
|
|
|
|
|
_all: number
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAvgAggregateInputType = {
|
|
|
|
|
count?: true
|
|
|
|
|
quantity?: true
|
|
|
|
|
unit_price?: true
|
|
|
|
|
total_amount?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSumAggregateInputType = {
|
|
|
|
|
count?: true
|
|
|
|
|
quantity?: true
|
|
|
|
|
unit_price?: true
|
|
|
|
|
total_amount?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMinAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
|
|
|
|
quantity?: true
|
|
|
|
|
unit_type?: true
|
|
|
|
|
unit_price?: true
|
|
|
|
|
total_amount?: true
|
|
|
|
|
created_at?: true
|
|
|
|
@@ -98,7 +103,8 @@ export type SalesInvoiceItemMinAggregateInputType = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMaxAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
|
|
|
|
quantity?: true
|
|
|
|
|
unit_type?: true
|
|
|
|
|
unit_price?: true
|
|
|
|
|
total_amount?: true
|
|
|
|
|
created_at?: true
|
|
|
|
@@ -109,13 +115,15 @@ export type SalesInvoiceItemMaxAggregateInputType = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountAggregateInputType = {
|
|
|
|
|
id?: true
|
|
|
|
|
count?: true
|
|
|
|
|
quantity?: true
|
|
|
|
|
unit_type?: true
|
|
|
|
|
unit_price?: true
|
|
|
|
|
total_amount?: true
|
|
|
|
|
created_at?: true
|
|
|
|
|
invoice_id?: true
|
|
|
|
|
good_id?: true
|
|
|
|
|
service_id?: true
|
|
|
|
|
payload?: true
|
|
|
|
|
_all?: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -207,13 +215,15 @@ export type SalesInvoiceItemGroupByArgs<ExtArgs extends runtime.Types.Extensions
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemGroupByOutputType = {
|
|
|
|
|
id: string
|
|
|
|
|
count: runtime.Decimal
|
|
|
|
|
quantity: runtime.Decimal
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price: runtime.Decimal
|
|
|
|
|
total_amount: runtime.Decimal
|
|
|
|
|
created_at: Date
|
|
|
|
|
invoice_id: string
|
|
|
|
|
good_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
good_id: string | null
|
|
|
|
|
service_id: string | null
|
|
|
|
|
payload: runtime.JsonValue | null
|
|
|
|
|
_count: SalesInvoiceItemCountAggregateOutputType | null
|
|
|
|
|
_avg: SalesInvoiceItemAvgAggregateOutputType | null
|
|
|
|
|
_sum: SalesInvoiceItemSumAggregateOutputType | null
|
|
|
|
@@ -241,13 +251,15 @@ export type SalesInvoiceItemWhereInput = {
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFilter<"SalesInvoiceItem"> | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
service_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
|
|
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
|
|
|
|
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
|
|
|
|
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
|
|
|
@@ -255,13 +267,15 @@ export type SalesInvoiceItemWhereInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemOrderByWithRelationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
invoice_id?: Prisma.SortOrder
|
|
|
|
|
good_id?: Prisma.SortOrder
|
|
|
|
|
service_id?: Prisma.SortOrder
|
|
|
|
|
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
|
|
|
|
good?: Prisma.GoodOrderByWithRelationInput
|
|
|
|
|
service?: Prisma.ServiceOrderByWithRelationInput
|
|
|
|
@@ -273,13 +287,15 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
AND?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
|
|
|
|
|
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFilter<"SalesInvoiceItem"> | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
service_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
|
|
|
|
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
|
|
|
|
good?: Prisma.XOR<Prisma.GoodNullableScalarRelationFilter, Prisma.GoodWhereInput> | null
|
|
|
|
|
service?: Prisma.XOR<Prisma.ServiceNullableScalarRelationFilter, Prisma.ServiceWhereInput> | null
|
|
|
|
@@ -287,13 +303,15 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemOrderByWithAggregationInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
invoice_id?: Prisma.SortOrder
|
|
|
|
|
good_id?: Prisma.SortOrder
|
|
|
|
|
service_id?: Prisma.SortOrder
|
|
|
|
|
good_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
service_id?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
payload?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
|
|
|
_count?: Prisma.SalesInvoiceItemCountOrderByAggregateInput
|
|
|
|
|
_avg?: Prisma.SalesInvoiceItemAvgOrderByAggregateInput
|
|
|
|
|
_max?: Prisma.SalesInvoiceItemMaxOrderByAggregateInput
|
|
|
|
@@ -306,21 +324,25 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
|
|
|
|
|
id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
count?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeWithAggregatesFilter<"SalesInvoiceItem"> | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
service_id?: Prisma.StringWithAggregatesFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
service_id?: Prisma.StringNullableWithAggregatesFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
payload?: Prisma.JsonNullableWithAggregatesFilter<"SalesInvoiceItem">
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
|
|
|
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
|
|
|
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
|
|
|
@@ -328,21 +350,25 @@ export type SalesInvoiceItemCreateInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
invoice_id: string
|
|
|
|
|
good_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
good_id?: string | null
|
|
|
|
|
service_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
|
|
|
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
|
|
|
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
|
|
|
@@ -350,43 +376,51 @@ export type SalesInvoiceItemUpdateInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
invoice_id: string
|
|
|
|
|
good_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
good_id?: string | null
|
|
|
|
|
service_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateManyMutationInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemListRelationFilter = {
|
|
|
|
@@ -407,24 +441,27 @@ export type SalesInvoiceItemOrderByRelevanceInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCountOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
|
invoice_id?: Prisma.SortOrder
|
|
|
|
|
good_id?: Prisma.SortOrder
|
|
|
|
|
service_id?: Prisma.SortOrder
|
|
|
|
|
payload?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemAvgOrderByAggregateInput = {
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
@@ -435,7 +472,8 @@ export type SalesInvoiceItemMaxOrderByAggregateInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemMinOrderByAggregateInput = {
|
|
|
|
|
id?: Prisma.SortOrder
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_type?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
created_at?: Prisma.SortOrder
|
|
|
|
@@ -445,7 +483,7 @@ export type SalesInvoiceItemMinOrderByAggregateInput = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSumOrderByAggregateInput = {
|
|
|
|
|
count?: Prisma.SortOrder
|
|
|
|
|
quantity?: Prisma.SortOrder
|
|
|
|
|
unit_price?: Prisma.SortOrder
|
|
|
|
|
total_amount?: Prisma.SortOrder
|
|
|
|
|
}
|
|
|
|
@@ -534,6 +572,10 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
|
|
|
|
|
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EnumUnitTypeFieldUpdateOperationsInput = {
|
|
|
|
|
set?: $Enums.UnitType
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateNestedManyWithoutServiceInput = {
|
|
|
|
|
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutServiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput> | Prisma.SalesInvoiceItemCreateWithoutServiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutServiceInput[]
|
|
|
|
|
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutServiceInput[]
|
|
|
|
@@ -578,22 +620,26 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceNestedInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateWithoutGoodInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
|
|
|
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateWithoutGoodInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
invoice_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
service_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateOrConnectWithoutGoodInput = {
|
|
|
|
@@ -627,33 +673,39 @@ export type SalesInvoiceItemScalarWhereInput = {
|
|
|
|
|
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
|
|
|
|
|
id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFilter<"SalesInvoiceItem"> | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
service_id?: Prisma.StringFilter<"SalesInvoiceItem"> | string
|
|
|
|
|
good_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
service_id?: Prisma.StringNullableFilter<"SalesInvoiceItem"> | string | null
|
|
|
|
|
payload?: Prisma.JsonNullableFilter<"SalesInvoiceItem">
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
|
|
|
|
service?: Prisma.ServiceCreateNestedOneWithoutSales_invoice_itemsInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
good_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
good_id?: string | null
|
|
|
|
|
service_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
|
|
|
|
@@ -684,22 +736,26 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateWithoutServiceInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
|
|
|
|
|
good?: Prisma.GoodCreateNestedOneWithoutSales_invoice_itemsInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedCreateWithoutServiceInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
invoice_id: string
|
|
|
|
|
good_id: string
|
|
|
|
|
good_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateOrConnectWithoutServiceInput = {
|
|
|
|
@@ -730,135 +786,161 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutServiceInput = {
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyGoodInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
invoice_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
service_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateWithoutGoodInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
|
|
|
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateWithoutGoodInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutGoodInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyInvoiceInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
good_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
good_id?: string | null
|
|
|
|
|
service_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
|
|
|
|
service?: Prisma.ServiceUpdateOneWithoutSales_invoice_itemsNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
good_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
good_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
service_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
service_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemCreateManyServiceInput = {
|
|
|
|
|
id?: string
|
|
|
|
|
count: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Date | string
|
|
|
|
|
invoice_id: string
|
|
|
|
|
good_id: string
|
|
|
|
|
good_id?: string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUpdateWithoutServiceInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
|
|
|
|
|
good?: Prisma.GoodUpdateOneWithoutSales_invoice_itemsNestedInput
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateWithoutServiceInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemUncheckedUpdateManyWithoutServiceInput = {
|
|
|
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
unit_type?: Prisma.EnumUnitTypeFieldUpdateOperationsInput | $Enums.UnitType
|
|
|
|
|
unit_price?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
total_amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
|
|
|
|
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
|
|
|
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
|
|
|
good_id?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
|
|
|
payload?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
|
|
|
id?: boolean
|
|
|
|
|
count?: boolean
|
|
|
|
|
quantity?: boolean
|
|
|
|
|
unit_type?: boolean
|
|
|
|
|
unit_price?: boolean
|
|
|
|
|
total_amount?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
invoice_id?: boolean
|
|
|
|
|
good_id?: boolean
|
|
|
|
|
service_id?: boolean
|
|
|
|
|
payload?: boolean
|
|
|
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
|
|
|
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
|
|
|
|
service?: boolean | Prisma.SalesInvoiceItem$serviceArgs<ExtArgs>
|
|
|
|
@@ -868,16 +950,18 @@ export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.Inte
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemSelectScalar = {
|
|
|
|
|
id?: boolean
|
|
|
|
|
count?: boolean
|
|
|
|
|
quantity?: boolean
|
|
|
|
|
unit_type?: boolean
|
|
|
|
|
unit_price?: boolean
|
|
|
|
|
total_amount?: boolean
|
|
|
|
|
created_at?: boolean
|
|
|
|
|
invoice_id?: boolean
|
|
|
|
|
good_id?: boolean
|
|
|
|
|
service_id?: boolean
|
|
|
|
|
payload?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unit_price" | "total_amount" | "created_at" | "invoice_id" | "good_id" | "service_id", ExtArgs["result"]["salesInvoiceItem"]>
|
|
|
|
|
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "quantity" | "unit_type" | "unit_price" | "total_amount" | "created_at" | "invoice_id" | "good_id" | "service_id" | "payload", ExtArgs["result"]["salesInvoiceItem"]>
|
|
|
|
|
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
|
|
|
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
|
|
|
|
good?: boolean | Prisma.SalesInvoiceItem$goodArgs<ExtArgs>
|
|
|
|
@@ -893,13 +977,15 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
|
|
|
|
|
}
|
|
|
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
|
|
|
id: string
|
|
|
|
|
count: runtime.Decimal
|
|
|
|
|
quantity: runtime.Decimal
|
|
|
|
|
unit_type: $Enums.UnitType
|
|
|
|
|
unit_price: runtime.Decimal
|
|
|
|
|
total_amount: runtime.Decimal
|
|
|
|
|
created_at: Date
|
|
|
|
|
invoice_id: string
|
|
|
|
|
good_id: string
|
|
|
|
|
service_id: string
|
|
|
|
|
good_id: string | null
|
|
|
|
|
service_id: string | null
|
|
|
|
|
payload: runtime.JsonValue | null
|
|
|
|
|
}, ExtArgs["result"]["salesInvoiceItem"]>
|
|
|
|
|
composites: {}
|
|
|
|
|
}
|
|
|
|
@@ -1273,13 +1359,15 @@ export interface Prisma__SalesInvoiceItemClient<T, Null = never, ExtArgs extends
|
|
|
|
|
*/
|
|
|
|
|
export interface SalesInvoiceItemFieldRefs {
|
|
|
|
|
readonly id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
|
|
|
|
readonly count: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
|
|
|
|
readonly quantity: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
|
|
|
|
readonly unit_type: Prisma.FieldRef<"SalesInvoiceItem", 'UnitType'>
|
|
|
|
|
readonly unit_price: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
|
|
|
|
readonly total_amount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
|
|
|
|
|
readonly created_at: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
|
|
|
|
|
readonly invoice_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
|
|
|
|
readonly good_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
|
|
|
|
readonly service_id: Prisma.FieldRef<"SalesInvoiceItem", 'String'>
|
|
|
|
|
readonly payload: Prisma.FieldRef<"SalesInvoiceItem", 'Json'>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|