feat(cardex): enhance stock movement retrieval with additional fields and optimized mapping
refactor(migration): update Stock_Movements table to include counterInventoryId and customerId, add foreign key constraints, and implement triggers for inventory management
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -2403,7 +2403,9 @@ export const StockMovementScalarFieldEnum = {
|
||||
inventoryId: 'inventoryId',
|
||||
avgCost: 'avgCost',
|
||||
remainedInStock: 'remainedInStock',
|
||||
supplierId: 'supplierId'
|
||||
supplierId: 'supplierId',
|
||||
customerId: 'customerId',
|
||||
counterInventoryId: 'counterInventoryId'
|
||||
} as const
|
||||
|
||||
export type StockMovementScalarFieldEnum = (typeof StockMovementScalarFieldEnum)[keyof typeof StockMovementScalarFieldEnum]
|
||||
|
||||
@@ -356,7 +356,9 @@ export const StockMovementScalarFieldEnum = {
|
||||
inventoryId: 'inventoryId',
|
||||
avgCost: 'avgCost',
|
||||
remainedInStock: 'remainedInStock',
|
||||
supplierId: 'supplierId'
|
||||
supplierId: 'supplierId',
|
||||
customerId: 'customerId',
|
||||
counterInventoryId: 'counterInventoryId'
|
||||
} as const
|
||||
|
||||
export type StockMovementScalarFieldEnum = (typeof StockMovementScalarFieldEnum)[keyof typeof StockMovementScalarFieldEnum]
|
||||
|
||||
@@ -282,6 +282,7 @@ export type CustomerWhereInput = {
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
}
|
||||
|
||||
export type CustomerOrderByWithRelationInput = {
|
||||
@@ -300,6 +301,7 @@ export type CustomerOrderByWithRelationInput = {
|
||||
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
orders?: Prisma.OrderOrderByRelationAggregateInput
|
||||
salesInvoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.CustomerOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -322,6 +324,7 @@ export type CustomerWhereUniqueInput = Prisma.AtLeast<{
|
||||
deletedAt?: Prisma.DateTimeNullableFilter<"Customer"> | Date | string | null
|
||||
orders?: Prisma.OrderListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
}, "id" | "mobileNumber">
|
||||
|
||||
export type CustomerOrderByWithAggregationInput = {
|
||||
@@ -379,6 +382,7 @@ export type CustomerCreateInput = {
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateInput = {
|
||||
@@ -397,6 +401,7 @@ export type CustomerUncheckedCreateInput = {
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateInput = {
|
||||
@@ -414,6 +419,7 @@ export type CustomerUpdateInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateInput = {
|
||||
@@ -432,6 +438,7 @@ export type CustomerUncheckedUpdateInput = {
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateManyInput = {
|
||||
@@ -583,6 +590,22 @@ export type CustomerUpdateOneWithoutSalesInvoicesNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutSalesInvoicesInput, Prisma.CustomerUpdateWithoutSalesInvoicesInput>, Prisma.CustomerUncheckedUpdateWithoutSalesInvoicesInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateNestedOneWithoutStockMovementsInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutStockMovementsInput
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateOneWithoutStockMovementsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutStockMovementsInput
|
||||
upsert?: Prisma.CustomerUpsertWithoutStockMovementsInput
|
||||
disconnect?: Prisma.CustomerWhereInput | boolean
|
||||
delete?: Prisma.CustomerWhereInput | boolean
|
||||
connect?: Prisma.CustomerWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.CustomerUpdateWithoutStockMovementsInput>, Prisma.CustomerUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutOrdersInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
@@ -597,6 +620,7 @@ export type CustomerCreateWithoutOrdersInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutOrdersInput = {
|
||||
@@ -614,6 +638,7 @@ export type CustomerUncheckedCreateWithoutOrdersInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutOrdersInput = {
|
||||
@@ -646,6 +671,7 @@ export type CustomerUpdateWithoutOrdersInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutOrdersInput = {
|
||||
@@ -663,6 +689,7 @@ export type CustomerUncheckedUpdateWithoutOrdersInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutSalesInvoicesInput = {
|
||||
@@ -679,6 +706,7 @@ export type CustomerCreateWithoutSalesInvoicesInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
@@ -696,6 +724,7 @@ export type CustomerUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutSalesInvoicesInput = {
|
||||
@@ -728,6 +757,7 @@ export type CustomerUpdateWithoutSalesInvoicesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
@@ -745,6 +775,93 @@ export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerCreateWithoutStockMovementsInput = {
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedCreateWithoutStockMovementsInput = {
|
||||
id?: number
|
||||
firstName: string
|
||||
lastName: string
|
||||
email?: string | null
|
||||
mobileNumber: string
|
||||
address?: string | null
|
||||
city?: string | null
|
||||
state?: string | null
|
||||
country?: string | null
|
||||
isActive?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
orders?: Prisma.OrderUncheckedCreateNestedManyWithoutCustomerInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutCustomerInput
|
||||
}
|
||||
|
||||
export type CustomerCreateOrConnectWithoutStockMovementsInput = {
|
||||
where: Prisma.CustomerWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpsertWithoutStockMovementsInput = {
|
||||
update: Prisma.XOR<Prisma.CustomerUpdateWithoutStockMovementsInput, Prisma.CustomerUncheckedUpdateWithoutStockMovementsInput>
|
||||
create: Prisma.XOR<Prisma.CustomerCreateWithoutStockMovementsInput, Prisma.CustomerUncheckedCreateWithoutStockMovementsInput>
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
export type CustomerUpdateToOneWithWhereWithoutStockMovementsInput = {
|
||||
where?: Prisma.CustomerWhereInput
|
||||
data: Prisma.XOR<Prisma.CustomerUpdateWithoutStockMovementsInput, Prisma.CustomerUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type CustomerUpdateWithoutStockMovementsInput = {
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
export type CustomerUncheckedUpdateWithoutStockMovementsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
firstName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
lastName?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
email?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
mobileNumber?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
city?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
orders?: Prisma.OrderUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput
|
||||
}
|
||||
|
||||
|
||||
@@ -755,11 +872,13 @@ export type CustomerUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
export type CustomerCountOutputType = {
|
||||
orders: number
|
||||
salesInvoices: number
|
||||
stockMovements: number
|
||||
}
|
||||
|
||||
export type CustomerCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orders?: boolean | CustomerCountOutputTypeCountOrdersArgs
|
||||
salesInvoices?: boolean | CustomerCountOutputTypeCountSalesInvoicesArgs
|
||||
stockMovements?: boolean | CustomerCountOutputTypeCountStockMovementsArgs
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -786,6 +905,13 @@ export type CustomerCountOutputTypeCountSalesInvoicesArgs<ExtArgs extends runtim
|
||||
where?: Prisma.SalesInvoiceWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* CustomerCountOutputType without action
|
||||
*/
|
||||
export type CustomerCountOutputTypeCountStockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
|
||||
export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
@@ -803,6 +929,7 @@ export type CustomerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
deletedAt?: boolean
|
||||
orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Customer$stockMovementsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["customer"]>
|
||||
|
||||
@@ -828,6 +955,7 @@ export type CustomerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs =
|
||||
export type CustomerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
orders?: boolean | Prisma.Customer$ordersArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Customer$salesInvoicesArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Customer$stockMovementsArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.CustomerCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
@@ -836,6 +964,7 @@ export type $CustomerPayload<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
objects: {
|
||||
orders: Prisma.$OrderPayload<ExtArgs>[]
|
||||
salesInvoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1193,6 +1322,7 @@ export interface Prisma__CustomerClient<T, Null = never, ExtArgs extends runtime
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
orders<T extends Prisma.Customer$ordersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$ordersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
salesInvoices<T extends Prisma.Customer$salesInvoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$salesInvoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Customer$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Customer$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<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.
|
||||
@@ -1625,6 +1755,30 @@ export type Customer$salesInvoicesArgs<ExtArgs extends runtime.Types.Extensions.
|
||||
distinct?: Prisma.SalesInvoiceScalarFieldEnum | Prisma.SalesInvoiceScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer.stockMovements
|
||||
*/
|
||||
export type Customer$stockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockMovement
|
||||
*/
|
||||
select?: Prisma.StockMovementSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockMovement
|
||||
*/
|
||||
omit?: Prisma.StockMovementOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockMovementInclude<ExtArgs> | null
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockMovementWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Customer without action
|
||||
*/
|
||||
|
||||
@@ -246,6 +246,7 @@ export type InventoryWhereInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
counterStockMovements?: Prisma.StockMovementListRelationFilter
|
||||
stockBalances?: Prisma.StockBalanceListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}
|
||||
@@ -265,6 +266,7 @@ export type InventoryOrderByWithRelationInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptOrderByRelationAggregateInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentOrderByRelationAggregateInput
|
||||
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
counterStockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
|
||||
stockBalances?: Prisma.StockBalanceOrderByRelationAggregateInput
|
||||
salesInvoices?: Prisma.SalesInvoiceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.InventoryOrderByRelevanceInput
|
||||
@@ -288,6 +290,7 @@ export type InventoryWhereUniqueInput = Prisma.AtLeast<{
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptListRelationFilter
|
||||
stockAdjustments?: Prisma.StockAdjustmentListRelationFilter
|
||||
stockMovements?: Prisma.StockMovementListRelationFilter
|
||||
counterStockMovements?: Prisma.StockMovementListRelationFilter
|
||||
stockBalances?: Prisma.StockBalanceListRelationFilter
|
||||
salesInvoices?: Prisma.SalesInvoiceListRelationFilter
|
||||
}, "id">
|
||||
@@ -336,6 +339,7 @@ export type InventoryCreateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -355,6 +359,7 @@ export type InventoryUncheckedCreateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -373,6 +378,7 @@ export type InventoryUpdateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -392,6 +398,7 @@ export type InventoryUncheckedUpdateInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -480,6 +487,11 @@ export type InventoryScalarRelationFilter = {
|
||||
isNot?: Prisma.InventoryWhereInput
|
||||
}
|
||||
|
||||
export type InventoryNullableScalarRelationFilter = {
|
||||
is?: Prisma.InventoryWhereInput | null
|
||||
isNot?: Prisma.InventoryWhereInput | null
|
||||
}
|
||||
|
||||
export type InventoryCreateNestedOneWithoutProductChargesInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutProductChargesInput, Prisma.InventoryUncheckedCreateWithoutProductChargesInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutProductChargesInput
|
||||
@@ -528,6 +540,12 @@ export type InventoryCreateNestedOneWithoutStockMovementsInput = {
|
||||
connect?: Prisma.InventoryWhereUniqueInput
|
||||
}
|
||||
|
||||
export type InventoryCreateNestedOneWithoutCounterStockMovementsInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutCounterStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutCounterStockMovementsInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutCounterStockMovementsInput
|
||||
connect?: Prisma.InventoryWhereUniqueInput
|
||||
}
|
||||
|
||||
export type InventoryUpdateOneRequiredWithoutStockMovementsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockMovementsInput
|
||||
@@ -536,6 +554,16 @@ export type InventoryUpdateOneRequiredWithoutStockMovementsNestedInput = {
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockMovementsInput, Prisma.InventoryUpdateWithoutStockMovementsInput>, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type InventoryUpdateOneWithoutCounterStockMovementsNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutCounterStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutCounterStockMovementsInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutCounterStockMovementsInput
|
||||
upsert?: Prisma.InventoryUpsertWithoutCounterStockMovementsInput
|
||||
disconnect?: Prisma.InventoryWhereInput | boolean
|
||||
delete?: Prisma.InventoryWhereInput | boolean
|
||||
connect?: Prisma.InventoryWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutCounterStockMovementsInput, Prisma.InventoryUpdateWithoutCounterStockMovementsInput>, Prisma.InventoryUncheckedUpdateWithoutCounterStockMovementsInput>
|
||||
}
|
||||
|
||||
export type InventoryCreateNestedOneWithoutStockBalancesInput = {
|
||||
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockBalancesInput, Prisma.InventoryUncheckedCreateWithoutStockBalancesInput>
|
||||
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockBalancesInput
|
||||
@@ -605,6 +633,7 @@ export type InventoryCreateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -623,6 +652,7 @@ export type InventoryUncheckedCreateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -656,6 +686,7 @@ export type InventoryUpdateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -674,6 +705,7 @@ export type InventoryUncheckedUpdateWithoutProductChargesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -691,6 +723,7 @@ export type InventoryCreateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -709,6 +742,7 @@ export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -742,6 +776,7 @@ export type InventoryUpdateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -760,6 +795,7 @@ export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -778,6 +814,7 @@ export type InventoryCreateWithoutSalesInvoicesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
@@ -796,6 +833,7 @@ export type InventoryUncheckedCreateWithoutSalesInvoicesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
@@ -829,6 +867,7 @@ export type InventoryUpdateWithoutSalesInvoicesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
@@ -847,6 +886,7 @@ export type InventoryUncheckedUpdateWithoutSalesInvoicesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
@@ -863,6 +903,7 @@ export type InventoryCreateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -881,6 +922,7 @@ export type InventoryUncheckedCreateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -890,6 +932,48 @@ export type InventoryCreateOrConnectWithoutStockMovementsInput = {
|
||||
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
|
||||
}
|
||||
|
||||
export type InventoryCreateWithoutCounterStockMovementsInput = {
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
|
||||
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedCreateWithoutCounterStockMovementsInput = {
|
||||
id?: number
|
||||
name: string
|
||||
location?: string | null
|
||||
isActive?: boolean
|
||||
isPointOfSale?: boolean
|
||||
createdAt?: Date | string
|
||||
updatedAt?: Date | string
|
||||
deletedAt?: Date | string | null
|
||||
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
|
||||
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
export type InventoryCreateOrConnectWithoutCounterStockMovementsInput = {
|
||||
where: Prisma.InventoryWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.InventoryCreateWithoutCounterStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutCounterStockMovementsInput>
|
||||
}
|
||||
|
||||
export type InventoryUpsertWithoutStockMovementsInput = {
|
||||
update: Prisma.XOR<Prisma.InventoryUpdateWithoutStockMovementsInput, Prisma.InventoryUncheckedUpdateWithoutStockMovementsInput>
|
||||
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutStockMovementsInput>
|
||||
@@ -914,6 +998,7 @@ export type InventoryUpdateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -932,6 +1017,55 @@ export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUpsertWithoutCounterStockMovementsInput = {
|
||||
update: Prisma.XOR<Prisma.InventoryUpdateWithoutCounterStockMovementsInput, Prisma.InventoryUncheckedUpdateWithoutCounterStockMovementsInput>
|
||||
create: Prisma.XOR<Prisma.InventoryCreateWithoutCounterStockMovementsInput, Prisma.InventoryUncheckedCreateWithoutCounterStockMovementsInput>
|
||||
where?: Prisma.InventoryWhereInput
|
||||
}
|
||||
|
||||
export type InventoryUpdateToOneWithWhereWithoutCounterStockMovementsInput = {
|
||||
where?: Prisma.InventoryWhereInput
|
||||
data: Prisma.XOR<Prisma.InventoryUpdateWithoutCounterStockMovementsInput, Prisma.InventoryUncheckedUpdateWithoutCounterStockMovementsInput>
|
||||
}
|
||||
|
||||
export type InventoryUpdateWithoutCounterStockMovementsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
|
||||
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
export type InventoryUncheckedUpdateWithoutCounterStockMovementsInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
||||
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
|
||||
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -950,6 +1084,7 @@ export type InventoryCreateWithoutStockBalancesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
@@ -968,6 +1103,7 @@ export type InventoryUncheckedCreateWithoutStockBalancesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
|
||||
@@ -1001,6 +1137,7 @@ export type InventoryUpdateWithoutStockBalancesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
@@ -1019,6 +1156,7 @@ export type InventoryUncheckedUpdateWithoutStockBalancesInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
|
||||
@@ -1035,6 +1173,7 @@ export type InventoryCreateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -1053,6 +1192,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -1075,6 +1215,7 @@ export type InventoryCreateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -1093,6 +1234,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -1126,6 +1268,7 @@ export type InventoryUpdateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -1144,6 +1287,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -1172,6 +1316,7 @@ export type InventoryUpdateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -1190,6 +1335,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -1207,6 +1353,7 @@ export type InventoryCreateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -1225,6 +1372,7 @@ export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedCreateNestedManyWithoutInventoryInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedCreateNestedManyWithoutInventoryInput
|
||||
}
|
||||
@@ -1258,6 +1406,7 @@ export type InventoryUpdateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -1276,6 +1425,7 @@ export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
|
||||
productCharges?: Prisma.ProductChargeUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
|
||||
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
salesInvoices?: Prisma.SalesInvoiceUncheckedUpdateManyWithoutInventoryNestedInput
|
||||
}
|
||||
@@ -1292,6 +1442,7 @@ export type InventoryCountOutputType = {
|
||||
purchaseReceipts: number
|
||||
stockAdjustments: number
|
||||
stockMovements: number
|
||||
counterStockMovements: number
|
||||
stockBalances: number
|
||||
salesInvoices: number
|
||||
}
|
||||
@@ -1303,6 +1454,7 @@ export type InventoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensi
|
||||
purchaseReceipts?: boolean | InventoryCountOutputTypeCountPurchaseReceiptsArgs
|
||||
stockAdjustments?: boolean | InventoryCountOutputTypeCountStockAdjustmentsArgs
|
||||
stockMovements?: boolean | InventoryCountOutputTypeCountStockMovementsArgs
|
||||
counterStockMovements?: boolean | InventoryCountOutputTypeCountCounterStockMovementsArgs
|
||||
stockBalances?: boolean | InventoryCountOutputTypeCountStockBalancesArgs
|
||||
salesInvoices?: boolean | InventoryCountOutputTypeCountSalesInvoicesArgs
|
||||
}
|
||||
@@ -1359,6 +1511,13 @@ export type InventoryCountOutputTypeCountStockMovementsArgs<ExtArgs extends runt
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* InventoryCountOutputType without action
|
||||
*/
|
||||
export type InventoryCountOutputTypeCountCounterStockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* InventoryCountOutputType without action
|
||||
*/
|
||||
@@ -1389,6 +1548,7 @@ export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>
|
||||
stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
|
||||
counterStockMovements?: boolean | Prisma.Inventory$counterStockMovementsArgs<ExtArgs>
|
||||
stockBalances?: boolean | Prisma.Inventory$stockBalancesArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Inventory$salesInvoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -1415,6 +1575,7 @@ export type InventoryInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
purchaseReceipts?: boolean | Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>
|
||||
stockAdjustments?: boolean | Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>
|
||||
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
|
||||
counterStockMovements?: boolean | Prisma.Inventory$counterStockMovementsArgs<ExtArgs>
|
||||
stockBalances?: boolean | Prisma.Inventory$stockBalancesArgs<ExtArgs>
|
||||
salesInvoices?: boolean | Prisma.Inventory$salesInvoicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
|
||||
@@ -1429,6 +1590,7 @@ export type $InventoryPayload<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
purchaseReceipts: Prisma.$PurchaseReceiptPayload<ExtArgs>[]
|
||||
stockAdjustments: Prisma.$StockAdjustmentPayload<ExtArgs>[]
|
||||
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
counterStockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
|
||||
stockBalances: Prisma.$StockBalancePayload<ExtArgs>[]
|
||||
salesInvoices: Prisma.$SalesInvoicePayload<ExtArgs>[]
|
||||
}
|
||||
@@ -1787,6 +1949,7 @@ export interface Prisma__InventoryClient<T, Null = never, ExtArgs extends runtim
|
||||
purchaseReceipts<T extends Prisma.Inventory$purchaseReceiptsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$purchaseReceiptsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockAdjustments<T extends Prisma.Inventory$stockAdjustmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockAdjustmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockAdjustmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockMovements<T extends Prisma.Inventory$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
counterStockMovements<T extends Prisma.Inventory$counterStockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$counterStockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
stockBalances<T extends Prisma.Inventory$stockBalancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockBalancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
salesInvoices<T extends Prisma.Inventory$salesInvoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$salesInvoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
||||
/**
|
||||
@@ -2312,6 +2475,30 @@ export type Inventory$stockMovementsArgs<ExtArgs extends runtime.Types.Extension
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Inventory.counterStockMovements
|
||||
*/
|
||||
export type Inventory$counterStockMovementsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the StockMovement
|
||||
*/
|
||||
select?: Prisma.StockMovementSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the StockMovement
|
||||
*/
|
||||
omit?: Prisma.StockMovementOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.StockMovementInclude<ExtArgs> | null
|
||||
where?: Prisma.StockMovementWhereInput
|
||||
orderBy?: Prisma.StockMovementOrderByWithRelationInput | Prisma.StockMovementOrderByWithRelationInput[]
|
||||
cursor?: Prisma.StockMovementWhereUniqueInput
|
||||
take?: number
|
||||
skip?: number
|
||||
distinct?: Prisma.StockMovementScalarFieldEnum | Prisma.StockMovementScalarFieldEnum[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Inventory.stockBalances
|
||||
*/
|
||||
|
||||
@@ -36,6 +36,8 @@ export type StockMovementAvgAggregateOutputType = {
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
customerId: number | null
|
||||
counterInventoryId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementSumAggregateOutputType = {
|
||||
@@ -48,6 +50,8 @@ export type StockMovementSumAggregateOutputType = {
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
customerId: number | null
|
||||
counterInventoryId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementMinAggregateOutputType = {
|
||||
@@ -64,6 +68,8 @@ export type StockMovementMinAggregateOutputType = {
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
customerId: number | null
|
||||
counterInventoryId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementMaxAggregateOutputType = {
|
||||
@@ -80,6 +86,8 @@ export type StockMovementMaxAggregateOutputType = {
|
||||
avgCost: runtime.Decimal | null
|
||||
remainedInStock: runtime.Decimal | null
|
||||
supplierId: number | null
|
||||
customerId: number | null
|
||||
counterInventoryId: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCountAggregateOutputType = {
|
||||
@@ -96,6 +104,8 @@ export type StockMovementCountAggregateOutputType = {
|
||||
avgCost: number
|
||||
remainedInStock: number
|
||||
supplierId: number
|
||||
customerId: number
|
||||
counterInventoryId: number
|
||||
_all: number
|
||||
}
|
||||
|
||||
@@ -110,6 +120,8 @@ export type StockMovementAvgAggregateInputType = {
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
customerId?: true
|
||||
counterInventoryId?: true
|
||||
}
|
||||
|
||||
export type StockMovementSumAggregateInputType = {
|
||||
@@ -122,6 +134,8 @@ export type StockMovementSumAggregateInputType = {
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
customerId?: true
|
||||
counterInventoryId?: true
|
||||
}
|
||||
|
||||
export type StockMovementMinAggregateInputType = {
|
||||
@@ -138,6 +152,8 @@ export type StockMovementMinAggregateInputType = {
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
customerId?: true
|
||||
counterInventoryId?: true
|
||||
}
|
||||
|
||||
export type StockMovementMaxAggregateInputType = {
|
||||
@@ -154,6 +170,8 @@ export type StockMovementMaxAggregateInputType = {
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
customerId?: true
|
||||
counterInventoryId?: true
|
||||
}
|
||||
|
||||
export type StockMovementCountAggregateInputType = {
|
||||
@@ -170,6 +188,8 @@ export type StockMovementCountAggregateInputType = {
|
||||
avgCost?: true
|
||||
remainedInStock?: true
|
||||
supplierId?: true
|
||||
customerId?: true
|
||||
counterInventoryId?: true
|
||||
_all?: true
|
||||
}
|
||||
|
||||
@@ -273,6 +293,8 @@ export type StockMovementGroupByOutputType = {
|
||||
avgCost: runtime.Decimal
|
||||
remainedInStock: runtime.Decimal
|
||||
supplierId: number | null
|
||||
customerId: number | null
|
||||
counterInventoryId: number | null
|
||||
_count: StockMovementCountAggregateOutputType | null
|
||||
_avg: StockMovementAvgAggregateOutputType | null
|
||||
_sum: StockMovementSumAggregateOutputType | null
|
||||
@@ -312,9 +334,13 @@ export type StockMovementWhereInput = {
|
||||
avgCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
customerId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
counterInventoryId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
supplier?: Prisma.XOR<Prisma.SupplierNullableScalarRelationFilter, Prisma.SupplierWhereInput> | null
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
counterInventory?: Prisma.XOR<Prisma.InventoryNullableScalarRelationFilter, Prisma.InventoryWhereInput> | null
|
||||
}
|
||||
|
||||
export type StockMovementOrderByWithRelationInput = {
|
||||
@@ -331,9 +357,13 @@ export type StockMovementOrderByWithRelationInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
inventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
product?: Prisma.ProductOrderByWithRelationInput
|
||||
supplier?: Prisma.SupplierOrderByWithRelationInput
|
||||
customer?: Prisma.CustomerOrderByWithRelationInput
|
||||
counterInventory?: Prisma.InventoryOrderByWithRelationInput
|
||||
_relevance?: Prisma.StockMovementOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -354,9 +384,13 @@ export type StockMovementWhereUniqueInput = Prisma.AtLeast<{
|
||||
avgCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
customerId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
counterInventoryId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
inventory?: Prisma.XOR<Prisma.InventoryScalarRelationFilter, Prisma.InventoryWhereInput>
|
||||
product?: Prisma.XOR<Prisma.ProductScalarRelationFilter, Prisma.ProductWhereInput>
|
||||
supplier?: Prisma.XOR<Prisma.SupplierNullableScalarRelationFilter, Prisma.SupplierWhereInput> | null
|
||||
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
|
||||
counterInventory?: Prisma.XOR<Prisma.InventoryNullableScalarRelationFilter, Prisma.InventoryWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
export type StockMovementOrderByWithAggregationInput = {
|
||||
@@ -373,6 +407,8 @@ export type StockMovementOrderByWithAggregationInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
_count?: Prisma.StockMovementCountOrderByAggregateInput
|
||||
_avg?: Prisma.StockMovementAvgOrderByAggregateInput
|
||||
_max?: Prisma.StockMovementMaxOrderByAggregateInput
|
||||
@@ -397,6 +433,8 @@ export type StockMovementScalarWhereWithAggregatesInput = {
|
||||
avgCost?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableWithAggregatesFilter<"StockMovement"> | number | null
|
||||
customerId?: Prisma.IntNullableWithAggregatesFilter<"StockMovement"> | number | null
|
||||
counterInventoryId?: Prisma.IntNullableWithAggregatesFilter<"StockMovement"> | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateInput = {
|
||||
@@ -412,6 +450,8 @@ export type StockMovementCreateInput = {
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutStockMovementsInput
|
||||
counterInventory?: Prisma.InventoryCreateNestedOneWithoutCounterStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateInput = {
|
||||
@@ -428,6 +468,8 @@ export type StockMovementUncheckedCreateInput = {
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateInput = {
|
||||
@@ -443,6 +485,8 @@ export type StockMovementUpdateInput = {
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneWithoutStockMovementsNestedInput
|
||||
counterInventory?: Prisma.InventoryUpdateOneWithoutCounterStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateInput = {
|
||||
@@ -459,6 +503,8 @@ export type StockMovementUncheckedUpdateInput = {
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyInput = {
|
||||
@@ -475,6 +521,8 @@ export type StockMovementCreateManyInput = {
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyMutationInput = {
|
||||
@@ -503,6 +551,8 @@ export type StockMovementUncheckedUpdateManyInput = {
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementListRelationFilter = {
|
||||
@@ -535,6 +585,8 @@ export type StockMovementCountOrderByAggregateInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementAvgOrderByAggregateInput = {
|
||||
@@ -547,6 +599,8 @@ export type StockMovementAvgOrderByAggregateInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementMaxOrderByAggregateInput = {
|
||||
@@ -563,6 +617,8 @@ export type StockMovementMaxOrderByAggregateInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementMinOrderByAggregateInput = {
|
||||
@@ -579,6 +635,8 @@ export type StockMovementMinOrderByAggregateInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementSumOrderByAggregateInput = {
|
||||
@@ -591,6 +649,8 @@ export type StockMovementSumOrderByAggregateInput = {
|
||||
avgCost?: Prisma.SortOrder
|
||||
remainedInStock?: Prisma.SortOrder
|
||||
supplierId?: Prisma.SortOrder
|
||||
customerId?: Prisma.SortOrder
|
||||
counterInventoryId?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutProductInput = {
|
||||
@@ -677,6 +737,48 @@ export type StockMovementUncheckedUpdateManyWithoutSupplierNestedInput = {
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCustomerInput, Prisma.StockMovementUncheckedCreateWithoutCustomerInput> | Prisma.StockMovementCreateWithoutCustomerInput[] | Prisma.StockMovementUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCustomerInput | Prisma.StockMovementCreateOrConnectWithoutCustomerInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCustomerInputEnvelope
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateNestedManyWithoutCustomerInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCustomerInput, Prisma.StockMovementUncheckedCreateWithoutCustomerInput> | Prisma.StockMovementCreateWithoutCustomerInput[] | Prisma.StockMovementUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCustomerInput | Prisma.StockMovementCreateOrConnectWithoutCustomerInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCustomerInputEnvelope
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithoutCustomerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCustomerInput, Prisma.StockMovementUncheckedCreateWithoutCustomerInput> | Prisma.StockMovementCreateWithoutCustomerInput[] | Prisma.StockMovementUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCustomerInput | Prisma.StockMovementCreateOrConnectWithoutCustomerInput[]
|
||||
upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutCustomerInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutCustomerInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCustomerInputEnvelope
|
||||
set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutCustomerInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutCustomerInput[]
|
||||
updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutCustomerInput | Prisma.StockMovementUpdateManyWithWhereWithoutCustomerInput[]
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutCustomerNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCustomerInput, Prisma.StockMovementUncheckedCreateWithoutCustomerInput> | Prisma.StockMovementCreateWithoutCustomerInput[] | Prisma.StockMovementUncheckedCreateWithoutCustomerInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCustomerInput | Prisma.StockMovementCreateOrConnectWithoutCustomerInput[]
|
||||
upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutCustomerInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutCustomerInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCustomerInputEnvelope
|
||||
set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutCustomerInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutCustomerInput[]
|
||||
updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutCustomerInput | Prisma.StockMovementUpdateManyWithWhereWithoutCustomerInput[]
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutInventoryInput, Prisma.StockMovementUncheckedCreateWithoutInventoryInput> | Prisma.StockMovementCreateWithoutInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutInventoryInput | Prisma.StockMovementCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -684,6 +786,13 @@ export type StockMovementCreateNestedManyWithoutInventoryInput = {
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementCreateNestedManyWithoutCounterInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput> | Prisma.StockMovementCreateWithoutCounterInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput | Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCounterInventoryInputEnvelope
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateNestedManyWithoutInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutInventoryInput, Prisma.StockMovementUncheckedCreateWithoutInventoryInput> | Prisma.StockMovementCreateWithoutInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutInventoryInput | Prisma.StockMovementCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -691,6 +800,13 @@ export type StockMovementUncheckedCreateNestedManyWithoutInventoryInput = {
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput> | Prisma.StockMovementCreateWithoutCounterInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput | Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCounterInventoryInputEnvelope
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithoutInventoryNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutInventoryInput, Prisma.StockMovementUncheckedCreateWithoutInventoryInput> | Prisma.StockMovementCreateWithoutInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutInventoryInput | Prisma.StockMovementCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -705,6 +821,20 @@ export type StockMovementUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithoutCounterInventoryNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput> | Prisma.StockMovementCreateWithoutCounterInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput | Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput[]
|
||||
upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutCounterInventoryInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutCounterInventoryInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCounterInventoryInputEnvelope
|
||||
set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutCounterInventoryInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutCounterInventoryInput[]
|
||||
updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutCounterInventoryInput | Prisma.StockMovementUpdateManyWithWhereWithoutCounterInventoryInput[]
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutInventoryInput, Prisma.StockMovementUncheckedCreateWithoutInventoryInput> | Prisma.StockMovementCreateWithoutInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutInventoryInput | Prisma.StockMovementCreateOrConnectWithoutInventoryInput[]
|
||||
@@ -719,6 +849,20 @@ export type StockMovementUncheckedUpdateManyWithoutInventoryNestedInput = {
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.StockMovementCreateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput> | Prisma.StockMovementCreateWithoutCounterInventoryInput[] | Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput[]
|
||||
connectOrCreate?: Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput | Prisma.StockMovementCreateOrConnectWithoutCounterInventoryInput[]
|
||||
upsert?: Prisma.StockMovementUpsertWithWhereUniqueWithoutCounterInventoryInput | Prisma.StockMovementUpsertWithWhereUniqueWithoutCounterInventoryInput[]
|
||||
createMany?: Prisma.StockMovementCreateManyCounterInventoryInputEnvelope
|
||||
set?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
disconnect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
delete?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
connect?: Prisma.StockMovementWhereUniqueInput | Prisma.StockMovementWhereUniqueInput[]
|
||||
update?: Prisma.StockMovementUpdateWithWhereUniqueWithoutCounterInventoryInput | Prisma.StockMovementUpdateWithWhereUniqueWithoutCounterInventoryInput[]
|
||||
updateMany?: Prisma.StockMovementUpdateManyWithWhereWithoutCounterInventoryInput | Prisma.StockMovementUpdateManyWithWhereWithoutCounterInventoryInput[]
|
||||
deleteMany?: Prisma.StockMovementScalarWhereInput | Prisma.StockMovementScalarWhereInput[]
|
||||
}
|
||||
|
||||
export type EnumMovementTypeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.MovementType
|
||||
}
|
||||
@@ -739,6 +883,8 @@ export type StockMovementCreateWithoutProductInput = {
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutStockMovementsInput
|
||||
counterInventory?: Prisma.InventoryCreateNestedOneWithoutCounterStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutProductInput = {
|
||||
@@ -754,6 +900,8 @@ export type StockMovementUncheckedCreateWithoutProductInput = {
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutProductInput = {
|
||||
@@ -799,6 +947,8 @@ export type StockMovementScalarWhereInput = {
|
||||
avgCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
customerId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
counterInventoryId?: Prisma.IntNullableFilter<"StockMovement"> | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateWithoutSupplierInput = {
|
||||
@@ -813,6 +963,8 @@ export type StockMovementCreateWithoutSupplierInput = {
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutStockMovementsInput
|
||||
counterInventory?: Prisma.InventoryCreateNestedOneWithoutCounterStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutSupplierInput = {
|
||||
@@ -828,6 +980,8 @@ export type StockMovementUncheckedCreateWithoutSupplierInput = {
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutSupplierInput = {
|
||||
@@ -856,6 +1010,65 @@ export type StockMovementUpdateManyWithWhereWithoutSupplierInput = {
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutSupplierInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateWithoutCustomerInput = {
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
counterInventory?: Prisma.InventoryCreateNestedOneWithoutCounterStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutCustomerInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutCustomerInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockMovementCreateWithoutCustomerInput, Prisma.StockMovementUncheckedCreateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyCustomerInputEnvelope = {
|
||||
data: Prisma.StockMovementCreateManyCustomerInput | Prisma.StockMovementCreateManyCustomerInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockMovementUpsertWithWhereUniqueWithoutCustomerInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockMovementUpdateWithoutCustomerInput, Prisma.StockMovementUncheckedUpdateWithoutCustomerInput>
|
||||
create: Prisma.XOR<Prisma.StockMovementCreateWithoutCustomerInput, Prisma.StockMovementUncheckedCreateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithWhereUniqueWithoutCustomerInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateWithoutCustomerInput, Prisma.StockMovementUncheckedUpdateWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithWhereWithoutCustomerInput = {
|
||||
where: Prisma.StockMovementScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutCustomerInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateWithoutInventoryInput = {
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -868,6 +1081,8 @@ export type StockMovementCreateWithoutInventoryInput = {
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutStockMovementsInput
|
||||
counterInventory?: Prisma.InventoryCreateNestedOneWithoutCounterStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutInventoryInput = {
|
||||
@@ -883,6 +1098,8 @@ export type StockMovementUncheckedCreateWithoutInventoryInput = {
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutInventoryInput = {
|
||||
@@ -895,6 +1112,49 @@ export type StockMovementCreateManyInventoryInputEnvelope = {
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockMovementCreateWithoutCounterInventoryInput = {
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory: Prisma.InventoryCreateNestedOneWithoutStockMovementsInput
|
||||
product: Prisma.ProductCreateNestedOneWithoutStockMovementsInput
|
||||
supplier?: Prisma.SupplierCreateNestedOneWithoutStockMovementsInput
|
||||
customer?: Prisma.CustomerCreateNestedOneWithoutStockMovementsInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedCreateWithoutCounterInventoryInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateOrConnectWithoutCounterInventoryInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.StockMovementCreateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyCounterInventoryInputEnvelope = {
|
||||
data: Prisma.StockMovementCreateManyCounterInventoryInput | Prisma.StockMovementCreateManyCounterInventoryInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
export type StockMovementUpsertWithWhereUniqueWithoutInventoryInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockMovementUpdateWithoutInventoryInput, Prisma.StockMovementUncheckedUpdateWithoutInventoryInput>
|
||||
@@ -911,6 +1171,22 @@ export type StockMovementUpdateManyWithWhereWithoutInventoryInput = {
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutInventoryInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpsertWithWhereUniqueWithoutCounterInventoryInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
update: Prisma.XOR<Prisma.StockMovementUpdateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedUpdateWithoutCounterInventoryInput>
|
||||
create: Prisma.XOR<Prisma.StockMovementCreateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedCreateWithoutCounterInventoryInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithWhereUniqueWithoutCounterInventoryInput = {
|
||||
where: Prisma.StockMovementWhereUniqueInput
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateWithoutCounterInventoryInput, Prisma.StockMovementUncheckedUpdateWithoutCounterInventoryInput>
|
||||
}
|
||||
|
||||
export type StockMovementUpdateManyWithWhereWithoutCounterInventoryInput = {
|
||||
where: Prisma.StockMovementScalarWhereInput
|
||||
data: Prisma.XOR<Prisma.StockMovementUpdateManyMutationInput, Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryInput>
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyProductInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
@@ -924,6 +1200,8 @@ export type StockMovementCreateManyProductInput = {
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutProductInput = {
|
||||
@@ -938,6 +1216,8 @@ export type StockMovementUpdateWithoutProductInput = {
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneWithoutStockMovementsNestedInput
|
||||
counterInventory?: Prisma.InventoryUpdateOneWithoutCounterStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutProductInput = {
|
||||
@@ -953,6 +1233,8 @@ export type StockMovementUncheckedUpdateWithoutProductInput = {
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutProductInput = {
|
||||
@@ -968,6 +1250,8 @@ export type StockMovementUncheckedUpdateManyWithoutProductInput = {
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManySupplierInput = {
|
||||
@@ -983,6 +1267,8 @@ export type StockMovementCreateManySupplierInput = {
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutSupplierInput = {
|
||||
@@ -997,6 +1283,8 @@ export type StockMovementUpdateWithoutSupplierInput = {
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneWithoutStockMovementsNestedInput
|
||||
counterInventory?: Prisma.InventoryUpdateOneWithoutCounterStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutSupplierInput = {
|
||||
@@ -1012,6 +1300,8 @@ export type StockMovementUncheckedUpdateWithoutSupplierInput = {
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutSupplierInput = {
|
||||
@@ -1027,6 +1317,75 @@ export type StockMovementUncheckedUpdateManyWithoutSupplierInput = {
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyCustomerInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutCustomerInput = {
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
counterInventory?: Prisma.InventoryUpdateOneWithoutCounterStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutCustomerInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyInventoryInput = {
|
||||
@@ -1042,6 +1401,25 @@ export type StockMovementCreateManyInventoryInput = {
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
counterInventoryId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementCreateManyCounterInventoryInput = {
|
||||
id?: number
|
||||
type: $Enums.MovementType
|
||||
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType: $Enums.MovementReferenceType
|
||||
referenceId: string
|
||||
createdAt?: Date | string
|
||||
productId: number
|
||||
inventoryId: number
|
||||
avgCost: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: number | null
|
||||
customerId?: number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutInventoryInput = {
|
||||
@@ -1056,6 +1434,8 @@ export type StockMovementUpdateWithoutInventoryInput = {
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneWithoutStockMovementsNestedInput
|
||||
counterInventory?: Prisma.InventoryUpdateOneWithoutCounterStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutInventoryInput = {
|
||||
@@ -1071,6 +1451,8 @@ export type StockMovementUncheckedUpdateWithoutInventoryInput = {
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutInventoryInput = {
|
||||
@@ -1086,6 +1468,58 @@ export type StockMovementUncheckedUpdateManyWithoutInventoryInput = {
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
counterInventoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUpdateWithoutCounterInventoryInput = {
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
inventory?: Prisma.InventoryUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
product?: Prisma.ProductUpdateOneRequiredWithoutStockMovementsNestedInput
|
||||
supplier?: Prisma.SupplierUpdateOneWithoutStockMovementsNestedInput
|
||||
customer?: Prisma.CustomerUpdateOneWithoutStockMovementsNestedInput
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateWithoutCounterInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
export type StockMovementUncheckedUpdateManyWithoutCounterInventoryInput = {
|
||||
id?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
|
||||
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
totalCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
referenceType?: Prisma.EnumMovementReferenceTypeFieldUpdateOperationsInput | $Enums.MovementReferenceType
|
||||
referenceId?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
productId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
inventoryId?: Prisma.IntFieldUpdateOperationsInput | number
|
||||
avgCost?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
remainedInStock?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
supplierId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
||||
}
|
||||
|
||||
|
||||
@@ -1104,9 +1538,13 @@ export type StockMovementSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
avgCost?: boolean
|
||||
remainedInStock?: boolean
|
||||
supplierId?: boolean
|
||||
customerId?: boolean
|
||||
counterInventoryId?: boolean
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
supplier?: boolean | Prisma.StockMovement$supplierArgs<ExtArgs>
|
||||
customer?: boolean | Prisma.StockMovement$customerArgs<ExtArgs>
|
||||
counterInventory?: boolean | Prisma.StockMovement$counterInventoryArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["stockMovement"]>
|
||||
|
||||
|
||||
@@ -1125,13 +1563,17 @@ export type StockMovementSelectScalar = {
|
||||
avgCost?: boolean
|
||||
remainedInStock?: boolean
|
||||
supplierId?: boolean
|
||||
customerId?: boolean
|
||||
counterInventoryId?: boolean
|
||||
}
|
||||
|
||||
export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "quantity" | "fee" | "totalCost" | "referenceType" | "referenceId" | "createdAt" | "productId" | "inventoryId" | "avgCost" | "remainedInStock" | "supplierId", ExtArgs["result"]["stockMovement"]>
|
||||
export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "quantity" | "fee" | "totalCost" | "referenceType" | "referenceId" | "createdAt" | "productId" | "inventoryId" | "avgCost" | "remainedInStock" | "supplierId" | "customerId" | "counterInventoryId", ExtArgs["result"]["stockMovement"]>
|
||||
export type StockMovementInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
inventory?: boolean | Prisma.InventoryDefaultArgs<ExtArgs>
|
||||
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
|
||||
supplier?: boolean | Prisma.StockMovement$supplierArgs<ExtArgs>
|
||||
customer?: boolean | Prisma.StockMovement$customerArgs<ExtArgs>
|
||||
counterInventory?: boolean | Prisma.StockMovement$counterInventoryArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
@@ -1140,6 +1582,8 @@ export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
inventory: Prisma.$InventoryPayload<ExtArgs>
|
||||
product: Prisma.$ProductPayload<ExtArgs>
|
||||
supplier: Prisma.$SupplierPayload<ExtArgs> | null
|
||||
customer: Prisma.$CustomerPayload<ExtArgs> | null
|
||||
counterInventory: Prisma.$InventoryPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: number
|
||||
@@ -1155,6 +1599,8 @@ export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
avgCost: runtime.Decimal
|
||||
remainedInStock: runtime.Decimal
|
||||
supplierId: number | null
|
||||
customerId: number | null
|
||||
counterInventoryId: number | null
|
||||
}, ExtArgs["result"]["stockMovement"]>
|
||||
composites: {}
|
||||
}
|
||||
@@ -1498,6 +1944,8 @@ export interface Prisma__StockMovementClient<T, Null = never, ExtArgs extends ru
|
||||
inventory<T extends Prisma.InventoryDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InventoryDefaultArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
product<T extends Prisma.ProductDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ProductDefaultArgs<ExtArgs>>): Prisma.Prisma__ProductClient<runtime.Types.Result.GetResult<Prisma.$ProductPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
supplier<T extends Prisma.StockMovement$supplierArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockMovement$supplierArgs<ExtArgs>>): Prisma.Prisma__SupplierClient<runtime.Types.Result.GetResult<Prisma.$SupplierPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
customer<T extends Prisma.StockMovement$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockMovement$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
counterInventory<T extends Prisma.StockMovement$counterInventoryArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.StockMovement$counterInventoryArgs<ExtArgs>>): Prisma.Prisma__InventoryClient<runtime.Types.Result.GetResult<Prisma.$InventoryPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1540,6 +1988,8 @@ export interface StockMovementFieldRefs {
|
||||
readonly avgCost: Prisma.FieldRef<"StockMovement", 'Decimal'>
|
||||
readonly remainedInStock: Prisma.FieldRef<"StockMovement", 'Decimal'>
|
||||
readonly supplierId: Prisma.FieldRef<"StockMovement", 'Int'>
|
||||
readonly customerId: Prisma.FieldRef<"StockMovement", 'Int'>
|
||||
readonly counterInventoryId: Prisma.FieldRef<"StockMovement", 'Int'>
|
||||
}
|
||||
|
||||
|
||||
@@ -1901,6 +2351,44 @@ export type StockMovement$supplierArgs<ExtArgs extends runtime.Types.Extensions.
|
||||
where?: Prisma.SupplierWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* StockMovement.customer
|
||||
*/
|
||||
export type StockMovement$customerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Customer
|
||||
*/
|
||||
select?: Prisma.CustomerSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Customer
|
||||
*/
|
||||
omit?: Prisma.CustomerOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CustomerInclude<ExtArgs> | null
|
||||
where?: Prisma.CustomerWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* StockMovement.counterInventory
|
||||
*/
|
||||
export type StockMovement$counterInventoryArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the Inventory
|
||||
*/
|
||||
select?: Prisma.InventorySelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the Inventory
|
||||
*/
|
||||
omit?: Prisma.InventoryOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.InventoryInclude<ExtArgs> | null
|
||||
where?: Prisma.InventoryWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* StockMovement without action
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user