feat(statistics): implement top alert stocks, top last sales, top supplier debts, and top selling products endpoints with SQL queries

This commit is contained in:
2026-01-04 13:45:26 +03:30
parent eb6e0e7a0d
commit a2db2daa70
72 changed files with 11934 additions and 2559 deletions
+34 -9
View File
@@ -47,6 +47,16 @@ export type BankBranch = Prisma.BankBranchModel
*
*/
export type BankAccount = Prisma.BankAccountModel
/**
* Model BankAccountTransaction
*
*/
export type BankAccountTransaction = Prisma.BankAccountTransactionModel
/**
* Model BankAccountBalance
*
*/
export type BankAccountBalance = Prisma.BankAccountBalanceModel
/**
* Model Inventory
*
@@ -77,26 +87,21 @@ export type InventoryTransferItem = Prisma.InventoryTransferItemModel
*
*/
export type Bank = Prisma.BankModel
/**
* Model Customer
*
*/
export type Customer = Prisma.CustomerModel
/**
* Model Order
*
*/
export type Order = Prisma.OrderModel
/**
* Model SalesInvoice
* Model OrderItem
*
*/
export type SalesInvoice = Prisma.SalesInvoiceModel
export type OrderItem = Prisma.OrderItemModel
/**
* Model SalesInvoiceItem
* Model Customer
*
*/
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
export type Customer = Prisma.CustomerModel
/**
* Model TriggerLog
*
@@ -137,6 +142,21 @@ export type PurchaseReceiptItem = Prisma.PurchaseReceiptItemModel
*
*/
export type PurchaseReceiptPayments = Prisma.PurchaseReceiptPaymentsModel
/**
* Model SalesInvoice
*
*/
export type SalesInvoice = Prisma.SalesInvoiceModel
/**
* Model SalesInvoiceItem
*
*/
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
/**
* Model SalesInvoicePayment
*
*/
export type SalesInvoicePayment = Prisma.SalesInvoicePaymentModel
/**
* Model StockMovement
*
@@ -152,6 +172,11 @@ export type StockBalance = Prisma.StockBalanceModel
*
*/
export type StockAdjustment = Prisma.StockAdjustmentModel
/**
* Model StockReservation
*
*/
export type StockReservation = Prisma.StockReservationModel
/**
* Model Supplier
*
+34 -9
View File
@@ -67,6 +67,16 @@ export type BankBranch = Prisma.BankBranchModel
*
*/
export type BankAccount = Prisma.BankAccountModel
/**
* Model BankAccountTransaction
*
*/
export type BankAccountTransaction = Prisma.BankAccountTransactionModel
/**
* Model BankAccountBalance
*
*/
export type BankAccountBalance = Prisma.BankAccountBalanceModel
/**
* Model Inventory
*
@@ -97,26 +107,21 @@ export type InventoryTransferItem = Prisma.InventoryTransferItemModel
*
*/
export type Bank = Prisma.BankModel
/**
* Model Customer
*
*/
export type Customer = Prisma.CustomerModel
/**
* Model Order
*
*/
export type Order = Prisma.OrderModel
/**
* Model SalesInvoice
* Model OrderItem
*
*/
export type SalesInvoice = Prisma.SalesInvoiceModel
export type OrderItem = Prisma.OrderItemModel
/**
* Model SalesInvoiceItem
* Model Customer
*
*/
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
export type Customer = Prisma.CustomerModel
/**
* Model TriggerLog
*
@@ -157,6 +162,21 @@ export type PurchaseReceiptItem = Prisma.PurchaseReceiptItemModel
*
*/
export type PurchaseReceiptPayments = Prisma.PurchaseReceiptPaymentsModel
/**
* Model SalesInvoice
*
*/
export type SalesInvoice = Prisma.SalesInvoiceModel
/**
* Model SalesInvoiceItem
*
*/
export type SalesInvoiceItem = Prisma.SalesInvoiceItemModel
/**
* Model SalesInvoicePayment
*
*/
export type SalesInvoicePayment = Prisma.SalesInvoicePaymentModel
/**
* Model StockMovement
*
@@ -172,6 +192,11 @@ export type StockBalance = Prisma.StockBalanceModel
*
*/
export type StockAdjustment = Prisma.StockAdjustmentModel
/**
* Model StockReservation
*
*/
export type StockReservation = Prisma.StockReservationModel
/**
* Model Supplier
*
+112 -44
View File
@@ -226,6 +226,13 @@ export type BoolWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedBoolFilter<$PrismaModel>
}
export type EnumBankAccountTransactionTypeFilter<$PrismaModel = never> = {
equals?: $Enums.BankAccountTransactionType | Prisma.EnumBankAccountTransactionTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankAccountTransactionType[]
notIn?: $Enums.BankAccountTransactionType[]
not?: Prisma.NestedEnumBankAccountTransactionTypeFilter<$PrismaModel> | $Enums.BankAccountTransactionType
}
export type DecimalFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -237,6 +244,23 @@ export type DecimalFilter<$PrismaModel = never> = {
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type EnumBankTransactionRefTypeFilter<$PrismaModel = never> = {
equals?: $Enums.BankTransactionRefType | Prisma.EnumBankTransactionRefTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankTransactionRefType[]
notIn?: $Enums.BankTransactionRefType[]
not?: Prisma.NestedEnumBankTransactionRefTypeFilter<$PrismaModel> | $Enums.BankTransactionRefType
}
export type EnumBankAccountTransactionTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.BankAccountTransactionType | Prisma.EnumBankAccountTransactionTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankAccountTransactionType[]
notIn?: $Enums.BankAccountTransactionType[]
not?: Prisma.NestedEnumBankAccountTransactionTypeWithAggregatesFilter<$PrismaModel> | $Enums.BankAccountTransactionType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumBankAccountTransactionTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumBankAccountTransactionTypeFilter<$PrismaModel>
}
export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -253,6 +277,16 @@ export type DecimalWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
}
export type EnumBankTransactionRefTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.BankTransactionRefType | Prisma.EnumBankTransactionRefTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankTransactionRefType[]
notIn?: $Enums.BankTransactionRefType[]
not?: Prisma.NestedEnumBankTransactionRefTypeWithAggregatesFilter<$PrismaModel> | $Enums.BankTransactionRefType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumBankTransactionRefTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumBankTransactionRefTypeFilter<$PrismaModel>
}
export type EnumOrderStatusFilter<$PrismaModel = never> = {
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
in?: $Enums.OrderStatus[]
@@ -260,33 +294,6 @@ export type EnumOrderStatusFilter<$PrismaModel = never> = {
not?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel> | $Enums.OrderStatus
}
export type EnumPaymentMethodTypeFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> | $Enums.PaymentMethodType
}
export type EnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
in?: $Enums.OrderStatus[]
notIn?: $Enums.OrderStatus[]
not?: Prisma.NestedEnumOrderStatusWithAggregatesFilter<$PrismaModel> | $Enums.OrderStatus
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
_max?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
}
export type EnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethodType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
}
export type IntNullableFilter<$PrismaModel = never> = {
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
@@ -298,6 +305,16 @@ export type IntNullableFilter<$PrismaModel = never> = {
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null
}
export type EnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
in?: $Enums.OrderStatus[]
notIn?: $Enums.OrderStatus[]
not?: Prisma.NestedEnumOrderStatusWithAggregatesFilter<$PrismaModel> | $Enums.OrderStatus
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
_max?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
}
export type IntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
@@ -358,6 +375,13 @@ export type EnumPurchaseReceiptStatusWithAggregatesFilter<$PrismaModel = never>
_max?: Prisma.NestedEnumPurchaseReceiptStatusFilter<$PrismaModel>
}
export type EnumPaymentMethodTypeFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> | $Enums.PaymentMethodType
}
export type EnumPaymentTypeFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentType | Prisma.EnumPaymentTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentType[]
@@ -365,6 +389,16 @@ export type EnumPaymentTypeFilter<$PrismaModel = never> = {
not?: Prisma.NestedEnumPaymentTypeFilter<$PrismaModel> | $Enums.PaymentType
}
export type EnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethodType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
}
export type EnumPaymentTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentType | Prisma.EnumPaymentTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentType[]
@@ -628,6 +662,13 @@ export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedBoolFilter<$PrismaModel>
}
export type NestedEnumBankAccountTransactionTypeFilter<$PrismaModel = never> = {
equals?: $Enums.BankAccountTransactionType | Prisma.EnumBankAccountTransactionTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankAccountTransactionType[]
notIn?: $Enums.BankAccountTransactionType[]
not?: Prisma.NestedEnumBankAccountTransactionTypeFilter<$PrismaModel> | $Enums.BankAccountTransactionType
}
export type NestedDecimalFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -639,6 +680,23 @@ export type NestedDecimalFilter<$PrismaModel = never> = {
not?: Prisma.NestedDecimalFilter<$PrismaModel> | runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type NestedEnumBankTransactionRefTypeFilter<$PrismaModel = never> = {
equals?: $Enums.BankTransactionRefType | Prisma.EnumBankTransactionRefTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankTransactionRefType[]
notIn?: $Enums.BankTransactionRefType[]
not?: Prisma.NestedEnumBankTransactionRefTypeFilter<$PrismaModel> | $Enums.BankTransactionRefType
}
export type NestedEnumBankAccountTransactionTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.BankAccountTransactionType | Prisma.EnumBankAccountTransactionTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankAccountTransactionType[]
notIn?: $Enums.BankAccountTransactionType[]
not?: Prisma.NestedEnumBankAccountTransactionTypeWithAggregatesFilter<$PrismaModel> | $Enums.BankAccountTransactionType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumBankAccountTransactionTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumBankAccountTransactionTypeFilter<$PrismaModel>
}
export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
equals?: runtime.Decimal | runtime.DecimalJsLike | number | string | Prisma.DecimalFieldRefInput<$PrismaModel>
in?: runtime.Decimal[] | runtime.DecimalJsLike[] | number[] | string[]
@@ -655,6 +713,16 @@ export type NestedDecimalWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedDecimalFilter<$PrismaModel>
}
export type NestedEnumBankTransactionRefTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.BankTransactionRefType | Prisma.EnumBankTransactionRefTypeFieldRefInput<$PrismaModel>
in?: $Enums.BankTransactionRefType[]
notIn?: $Enums.BankTransactionRefType[]
not?: Prisma.NestedEnumBankTransactionRefTypeWithAggregatesFilter<$PrismaModel> | $Enums.BankTransactionRefType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumBankTransactionRefTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumBankTransactionRefTypeFilter<$PrismaModel>
}
export type NestedEnumOrderStatusFilter<$PrismaModel = never> = {
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
in?: $Enums.OrderStatus[]
@@ -662,13 +730,6 @@ export type NestedEnumOrderStatusFilter<$PrismaModel = never> = {
not?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel> | $Enums.OrderStatus
}
export type NestedEnumPaymentMethodTypeFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> | $Enums.PaymentMethodType
}
export type NestedEnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.OrderStatus | Prisma.EnumOrderStatusFieldRefInput<$PrismaModel>
in?: $Enums.OrderStatus[]
@@ -679,16 +740,6 @@ export type NestedEnumOrderStatusWithAggregatesFilter<$PrismaModel = never> = {
_max?: Prisma.NestedEnumOrderStatusFilter<$PrismaModel>
}
export type NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethodType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
}
export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = {
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
in?: number[] | null
@@ -760,6 +811,13 @@ export type NestedEnumPurchaseReceiptStatusWithAggregatesFilter<$PrismaModel = n
_max?: Prisma.NestedEnumPurchaseReceiptStatusFilter<$PrismaModel>
}
export type NestedEnumPaymentMethodTypeFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel> | $Enums.PaymentMethodType
}
export type NestedEnumPaymentTypeFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentType | Prisma.EnumPaymentTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentType[]
@@ -767,6 +825,16 @@ export type NestedEnumPaymentTypeFilter<$PrismaModel = never> = {
not?: Prisma.NestedEnumPaymentTypeFilter<$PrismaModel> | $Enums.PaymentType
}
export type NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentMethodType | Prisma.EnumPaymentMethodTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentMethodType[]
notIn?: $Enums.PaymentMethodType[]
not?: Prisma.NestedEnumPaymentMethodTypeWithAggregatesFilter<$PrismaModel> | $Enums.PaymentMethodType
_count?: Prisma.NestedIntFilter<$PrismaModel>
_min?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
_max?: Prisma.NestedEnumPaymentMethodTypeFilter<$PrismaModel>
}
export type NestedEnumPaymentTypeWithAggregatesFilter<$PrismaModel = never> = {
equals?: $Enums.PaymentType | Prisma.EnumPaymentTypeFieldRefInput<$PrismaModel>
in?: $Enums.PaymentType[]
+22 -1
View File
@@ -11,7 +11,8 @@
export const OrderStatus = {
PENDING: 'PENDING',
REJECT: 'REJECT',
REJECTED: 'REJECTED',
CANCELED: 'CANCELED',
DONE: 'DONE'
} as const
@@ -73,3 +74,23 @@ export const PurchaseReceiptStatus = {
} as const
export type PurchaseReceiptStatus = (typeof PurchaseReceiptStatus)[keyof typeof PurchaseReceiptStatus]
export const BankAccountTransactionType = {
DEPOSIT: 'DEPOSIT',
WITHDRAWAL: 'WITHDRAWAL'
} as const
export type BankAccountTransactionType = (typeof BankAccountTransactionType)[keyof typeof BankAccountTransactionType]
export const BankTransactionRefType = {
PURCHASE_PAYMENT: 'PURCHASE_PAYMENT',
PURCHASE_REFUND: 'PURCHASE_REFUND',
POS_SALE: 'POS_SALE',
POS_REFUND: 'POS_REFUND',
BANK_TRANSFER: 'BANK_TRANSFER',
MANUAL_ADJUSTMENT: 'MANUAL_ADJUSTMENT'
} as const
export type BankTransactionRefType = (typeof BankTransactionRefType)[keyof typeof BankTransactionRefType]
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -57,16 +57,17 @@ export const ModelName = {
RefreshToken: 'RefreshToken',
BankBranch: 'BankBranch',
BankAccount: 'BankAccount',
BankAccountTransaction: 'BankAccountTransaction',
BankAccountBalance: 'BankAccountBalance',
Inventory: 'Inventory',
InventoryBankAccount: 'InventoryBankAccount',
PosAccount: 'PosAccount',
InventoryTransfer: 'InventoryTransfer',
InventoryTransferItem: 'InventoryTransferItem',
Bank: 'Bank',
Customer: 'Customer',
Order: 'Order',
SalesInvoice: 'SalesInvoice',
SalesInvoiceItem: 'SalesInvoiceItem',
OrderItem: 'OrderItem',
Customer: 'Customer',
TriggerLog: 'TriggerLog',
ProductVariant: 'ProductVariant',
Product: 'Product',
@@ -75,9 +76,13 @@ export const ModelName = {
PurchaseReceipt: 'PurchaseReceipt',
PurchaseReceiptItem: 'PurchaseReceiptItem',
PurchaseReceiptPayments: 'PurchaseReceiptPayments',
SalesInvoice: 'SalesInvoice',
SalesInvoiceItem: 'SalesInvoiceItem',
SalesInvoicePayment: 'SalesInvoicePayment',
StockMovement: 'StockMovement',
StockBalance: 'StockBalance',
StockAdjustment: 'StockAdjustment',
StockReservation: 'StockReservation',
Supplier: 'Supplier',
SupplierLedger: 'SupplierLedger'
} as const
@@ -179,6 +184,30 @@ export const BankAccountScalarFieldEnum = {
export type BankAccountScalarFieldEnum = (typeof BankAccountScalarFieldEnum)[keyof typeof BankAccountScalarFieldEnum]
export const BankAccountTransactionScalarFieldEnum = {
id: 'id',
bankAccountId: 'bankAccountId',
type: 'type',
amount: 'amount',
balanceAfter: 'balanceAfter',
referenceId: 'referenceId',
referenceType: 'referenceType',
description: 'description',
createdAt: 'createdAt'
} as const
export type BankAccountTransactionScalarFieldEnum = (typeof BankAccountTransactionScalarFieldEnum)[keyof typeof BankAccountTransactionScalarFieldEnum]
export const BankAccountBalanceScalarFieldEnum = {
bankAccountId: 'bankAccountId',
balance: 'balance',
updatedAt: 'updatedAt'
} as const
export type BankAccountBalanceScalarFieldEnum = (typeof BankAccountBalanceScalarFieldEnum)[keyof typeof BankAccountBalanceScalarFieldEnum]
export const InventoryScalarFieldEnum = {
id: 'id',
name: 'name',
@@ -250,6 +279,34 @@ export const BankScalarFieldEnum = {
export type BankScalarFieldEnum = (typeof BankScalarFieldEnum)[keyof typeof BankScalarFieldEnum]
export const OrderScalarFieldEnum = {
id: 'id',
orderNumber: 'orderNumber',
status: 'status',
totalAmount: 'totalAmount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
customerId: 'customerId'
} as const
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
export const OrderItemScalarFieldEnum = {
id: 'id',
quantity: 'quantity',
unitPrice: 'unitPrice',
totalAmount: 'totalAmount',
createdAt: 'createdAt',
orderId: 'orderId',
productId: 'productId'
} as const
export type OrderItemScalarFieldEnum = (typeof OrderItemScalarFieldEnum)[keyof typeof OrderItemScalarFieldEnum]
export const CustomerScalarFieldEnum = {
id: 'id',
firstName: 'firstName',
@@ -269,49 +326,6 @@ export const CustomerScalarFieldEnum = {
export type CustomerScalarFieldEnum = (typeof CustomerScalarFieldEnum)[keyof typeof CustomerScalarFieldEnum]
export const OrderScalarFieldEnum = {
id: 'id',
orderNumber: 'orderNumber',
status: 'status',
paymentMethod: 'paymentMethod',
totalAmount: 'totalAmount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
deletedAt: 'deletedAt',
customerId: 'customerId'
} as const
export type OrderScalarFieldEnum = (typeof OrderScalarFieldEnum)[keyof typeof OrderScalarFieldEnum]
export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
totalAmount: 'totalAmount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
customerId: 'customerId',
posAccountId: 'posAccountId'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
export const SalesInvoiceItemScalarFieldEnum = {
id: 'id',
count: 'count',
fee: 'fee',
total: 'total',
createdAt: 'createdAt',
invoiceId: 'invoiceId',
productId: 'productId'
} as const
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
export const TriggerLogScalarFieldEnum = {
id: 'id',
message: 'message',
@@ -407,8 +421,8 @@ export type PurchaseReceiptScalarFieldEnum = (typeof PurchaseReceiptScalarFieldE
export const PurchaseReceiptItemScalarFieldEnum = {
id: 'id',
count: 'count',
fee: 'fee',
total: 'total',
unitPrice: 'unitPrice',
totalAmount: 'totalAmount',
receiptId: 'receiptId',
productId: 'productId',
description: 'description',
@@ -435,11 +449,50 @@ export const PurchaseReceiptPaymentsScalarFieldEnum = {
export type PurchaseReceiptPaymentsScalarFieldEnum = (typeof PurchaseReceiptPaymentsScalarFieldEnum)[keyof typeof PurchaseReceiptPaymentsScalarFieldEnum]
export const SalesInvoiceScalarFieldEnum = {
id: 'id',
code: 'code',
totalAmount: 'totalAmount',
description: 'description',
createdAt: 'createdAt',
updatedAt: 'updatedAt',
customerId: 'customerId',
posAccountId: 'posAccountId'
} as const
export type SalesInvoiceScalarFieldEnum = (typeof SalesInvoiceScalarFieldEnum)[keyof typeof SalesInvoiceScalarFieldEnum]
export const SalesInvoiceItemScalarFieldEnum = {
id: 'id',
count: 'count',
unitPrice: 'unitPrice',
totalAmount: 'totalAmount',
createdAt: 'createdAt',
invoiceId: 'invoiceId',
productId: 'productId'
} as const
export type SalesInvoiceItemScalarFieldEnum = (typeof SalesInvoiceItemScalarFieldEnum)[keyof typeof SalesInvoiceItemScalarFieldEnum]
export const SalesInvoicePaymentScalarFieldEnum = {
id: 'id',
invoiceId: 'invoiceId',
amount: 'amount',
paymentMethod: 'paymentMethod',
paidAt: 'paidAt',
createdAt: 'createdAt'
} as const
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
export const StockMovementScalarFieldEnum = {
id: 'id',
type: 'type',
quantity: 'quantity',
fee: 'fee',
unitPrice: 'unitPrice',
totalCost: 'totalCost',
referenceType: 'referenceType',
referenceId: 'referenceId',
@@ -481,6 +534,19 @@ export const StockAdjustmentScalarFieldEnum = {
export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldEnum)[keyof typeof StockAdjustmentScalarFieldEnum]
export const StockReservationScalarFieldEnum = {
id: 'id',
quantity: 'quantity',
expiresAt: 'expiresAt',
createdAt: 'createdAt',
productId: 'productId',
inventoryId: 'inventoryId',
orderId: 'orderId'
} as const
export type StockReservationScalarFieldEnum = (typeof StockReservationScalarFieldEnum)[keyof typeof StockReservationScalarFieldEnum]
export const SupplierScalarFieldEnum = {
id: 'id',
firstName: 'firstName',
@@ -608,6 +674,13 @@ export const BankAccountOrderByRelevanceFieldEnum = {
export type BankAccountOrderByRelevanceFieldEnum = (typeof BankAccountOrderByRelevanceFieldEnum)[keyof typeof BankAccountOrderByRelevanceFieldEnum]
export const BankAccountTransactionOrderByRelevanceFieldEnum = {
description: 'description'
} as const
export type BankAccountTransactionOrderByRelevanceFieldEnum = (typeof BankAccountTransactionOrderByRelevanceFieldEnum)[keyof typeof BankAccountTransactionOrderByRelevanceFieldEnum]
export const InventoryOrderByRelevanceFieldEnum = {
name: 'name',
location: 'location'
@@ -641,6 +714,14 @@ export const BankOrderByRelevanceFieldEnum = {
export type BankOrderByRelevanceFieldEnum = (typeof BankOrderByRelevanceFieldEnum)[keyof typeof BankOrderByRelevanceFieldEnum]
export const OrderOrderByRelevanceFieldEnum = {
orderNumber: 'orderNumber',
description: 'description'
} as const
export type OrderOrderByRelevanceFieldEnum = (typeof OrderOrderByRelevanceFieldEnum)[keyof typeof OrderOrderByRelevanceFieldEnum]
export const CustomerOrderByRelevanceFieldEnum = {
firstName: 'firstName',
lastName: 'lastName',
@@ -655,22 +736,6 @@ export const CustomerOrderByRelevanceFieldEnum = {
export type CustomerOrderByRelevanceFieldEnum = (typeof CustomerOrderByRelevanceFieldEnum)[keyof typeof CustomerOrderByRelevanceFieldEnum]
export const OrderOrderByRelevanceFieldEnum = {
orderNumber: 'orderNumber',
description: 'description'
} as const
export type OrderOrderByRelevanceFieldEnum = (typeof OrderOrderByRelevanceFieldEnum)[keyof typeof OrderOrderByRelevanceFieldEnum]
export const SalesInvoiceOrderByRelevanceFieldEnum = {
code: 'code',
description: 'description'
} as const
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
export const TriggerLogOrderByRelevanceFieldEnum = {
message: 'message',
name: 'name'
@@ -740,6 +805,14 @@ export const PurchaseReceiptPaymentsOrderByRelevanceFieldEnum = {
export type PurchaseReceiptPaymentsOrderByRelevanceFieldEnum = (typeof PurchaseReceiptPaymentsOrderByRelevanceFieldEnum)[keyof typeof PurchaseReceiptPaymentsOrderByRelevanceFieldEnum]
export const SalesInvoiceOrderByRelevanceFieldEnum = {
code: 'code',
description: 'description'
} as const
export type SalesInvoiceOrderByRelevanceFieldEnum = (typeof SalesInvoiceOrderByRelevanceFieldEnum)[keyof typeof SalesInvoiceOrderByRelevanceFieldEnum]
export const StockMovementOrderByRelevanceFieldEnum = {
referenceId: 'referenceId'
} as const
+8 -3
View File
@@ -14,16 +14,17 @@ export type * from './models/OtpCode.js'
export type * from './models/RefreshToken.js'
export type * from './models/BankBranch.js'
export type * from './models/BankAccount.js'
export type * from './models/BankAccountTransaction.js'
export type * from './models/BankAccountBalance.js'
export type * from './models/Inventory.js'
export type * from './models/InventoryBankAccount.js'
export type * from './models/PosAccount.js'
export type * from './models/InventoryTransfer.js'
export type * from './models/InventoryTransferItem.js'
export type * from './models/Bank.js'
export type * from './models/Customer.js'
export type * from './models/Order.js'
export type * from './models/SalesInvoice.js'
export type * from './models/SalesInvoiceItem.js'
export type * from './models/OrderItem.js'
export type * from './models/Customer.js'
export type * from './models/TriggerLog.js'
export type * from './models/ProductVariant.js'
export type * from './models/Product.js'
@@ -32,9 +33,13 @@ export type * from './models/ProductCategory.js'
export type * from './models/PurchaseReceipt.js'
export type * from './models/PurchaseReceiptItem.js'
export type * from './models/PurchaseReceiptPayments.js'
export type * from './models/SalesInvoice.js'
export type * from './models/SalesInvoiceItem.js'
export type * from './models/SalesInvoicePayment.js'
export type * from './models/StockMovement.js'
export type * from './models/StockBalance.js'
export type * from './models/StockAdjustment.js'
export type * from './models/StockReservation.js'
export type * from './models/Supplier.js'
export type * from './models/SupplierLedger.js'
export type * from './commonInputTypes.js'
+288
View File
@@ -255,6 +255,8 @@ export type BankAccountWhereInput = {
branch?: Prisma.XOR<Prisma.BankBranchScalarRelationFilter, Prisma.BankBranchWhereInput>
inventoryBankAccounts?: Prisma.InventoryBankAccountListRelationFilter
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsListRelationFilter
bankAccountTransactions?: Prisma.BankAccountTransactionListRelationFilter
bankAccountBalances?: Prisma.BankAccountBalanceListRelationFilter
}
export type BankAccountOrderByWithRelationInput = {
@@ -270,6 +272,8 @@ export type BankAccountOrderByWithRelationInput = {
branch?: Prisma.BankBranchOrderByWithRelationInput
inventoryBankAccounts?: Prisma.InventoryBankAccountOrderByRelationAggregateInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsOrderByRelationAggregateInput
bankAccountTransactions?: Prisma.BankAccountTransactionOrderByRelationAggregateInput
bankAccountBalances?: Prisma.BankAccountBalanceOrderByRelationAggregateInput
_relevance?: Prisma.BankAccountOrderByRelevanceInput
}
@@ -289,6 +293,8 @@ export type BankAccountWhereUniqueInput = Prisma.AtLeast<{
branch?: Prisma.XOR<Prisma.BankBranchScalarRelationFilter, Prisma.BankBranchWhereInput>
inventoryBankAccounts?: Prisma.InventoryBankAccountListRelationFilter
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsListRelationFilter
bankAccountTransactions?: Prisma.BankAccountTransactionListRelationFilter
bankAccountBalances?: Prisma.BankAccountBalanceListRelationFilter
}, "id" | "accountNumber" | "cardNumber" | "iban">
export type BankAccountOrderByWithAggregationInput = {
@@ -334,6 +340,8 @@ export type BankAccountCreateInput = {
branch: Prisma.BankBranchCreateNestedOneWithoutBankAccountsInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUncheckedCreateInput = {
@@ -348,6 +356,8 @@ export type BankAccountUncheckedCreateInput = {
deletedAt?: Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUpdateInput = {
@@ -361,6 +371,8 @@ export type BankAccountUpdateInput = {
branch?: Prisma.BankBranchUpdateOneRequiredWithoutBankAccountsNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateInput = {
@@ -375,6 +387,8 @@ export type BankAccountUncheckedUpdateInput = {
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountCreateManyInput = {
@@ -520,6 +534,34 @@ export type BankAccountUncheckedUpdateManyWithoutBranchNestedInput = {
deleteMany?: Prisma.BankAccountScalarWhereInput | Prisma.BankAccountScalarWhereInput[]
}
export type BankAccountCreateNestedOneWithoutBankAccountTransactionsInput = {
create?: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountTransactionsInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountTransactionsInput>
connectOrCreate?: Prisma.BankAccountCreateOrConnectWithoutBankAccountTransactionsInput
connect?: Prisma.BankAccountWhereUniqueInput
}
export type BankAccountUpdateOneRequiredWithoutBankAccountTransactionsNestedInput = {
create?: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountTransactionsInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountTransactionsInput>
connectOrCreate?: Prisma.BankAccountCreateOrConnectWithoutBankAccountTransactionsInput
upsert?: Prisma.BankAccountUpsertWithoutBankAccountTransactionsInput
connect?: Prisma.BankAccountWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.BankAccountUpdateToOneWithWhereWithoutBankAccountTransactionsInput, Prisma.BankAccountUpdateWithoutBankAccountTransactionsInput>, Prisma.BankAccountUncheckedUpdateWithoutBankAccountTransactionsInput>
}
export type BankAccountCreateNestedOneWithoutBankAccountBalancesInput = {
create?: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountBalancesInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountBalancesInput>
connectOrCreate?: Prisma.BankAccountCreateOrConnectWithoutBankAccountBalancesInput
connect?: Prisma.BankAccountWhereUniqueInput
}
export type BankAccountUpdateOneRequiredWithoutBankAccountBalancesNestedInput = {
create?: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountBalancesInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountBalancesInput>
connectOrCreate?: Prisma.BankAccountCreateOrConnectWithoutBankAccountBalancesInput
upsert?: Prisma.BankAccountUpsertWithoutBankAccountBalancesInput
connect?: Prisma.BankAccountWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.BankAccountUpdateToOneWithWhereWithoutBankAccountBalancesInput, Prisma.BankAccountUpdateWithoutBankAccountBalancesInput>, Prisma.BankAccountUncheckedUpdateWithoutBankAccountBalancesInput>
}
export type BankAccountCreateNestedOneWithoutInventoryBankAccountsInput = {
create?: Prisma.XOR<Prisma.BankAccountCreateWithoutInventoryBankAccountsInput, Prisma.BankAccountUncheckedCreateWithoutInventoryBankAccountsInput>
connectOrCreate?: Prisma.BankAccountCreateOrConnectWithoutInventoryBankAccountsInput
@@ -558,6 +600,8 @@ export type BankAccountCreateWithoutBranchInput = {
deletedAt?: Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUncheckedCreateWithoutBranchInput = {
@@ -571,6 +615,8 @@ export type BankAccountUncheckedCreateWithoutBranchInput = {
deletedAt?: Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedCreateNestedManyWithoutBankAccountInput
}
export type BankAccountCreateOrConnectWithoutBranchInput = {
@@ -614,6 +660,154 @@ export type BankAccountScalarWhereInput = {
deletedAt?: Prisma.DateTimeNullableFilter<"BankAccount"> | Date | string | null
}
export type BankAccountCreateWithoutBankAccountTransactionsInput = {
accountNumber?: string | null
cardNumber?: string | null
name: string
iban?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
branch: Prisma.BankBranchCreateNestedOneWithoutBankAccountsInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUncheckedCreateWithoutBankAccountTransactionsInput = {
id?: number
accountNumber?: string | null
cardNumber?: string | null
name: string
iban?: string | null
branchId: number
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedCreateNestedManyWithoutBankAccountInput
}
export type BankAccountCreateOrConnectWithoutBankAccountTransactionsInput = {
where: Prisma.BankAccountWhereUniqueInput
create: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountTransactionsInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountTransactionsInput>
}
export type BankAccountUpsertWithoutBankAccountTransactionsInput = {
update: Prisma.XOR<Prisma.BankAccountUpdateWithoutBankAccountTransactionsInput, Prisma.BankAccountUncheckedUpdateWithoutBankAccountTransactionsInput>
create: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountTransactionsInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountTransactionsInput>
where?: Prisma.BankAccountWhereInput
}
export type BankAccountUpdateToOneWithWhereWithoutBankAccountTransactionsInput = {
where?: Prisma.BankAccountWhereInput
data: Prisma.XOR<Prisma.BankAccountUpdateWithoutBankAccountTransactionsInput, Prisma.BankAccountUncheckedUpdateWithoutBankAccountTransactionsInput>
}
export type BankAccountUpdateWithoutBankAccountTransactionsInput = {
accountNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cardNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
iban?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
branch?: Prisma.BankBranchUpdateOneRequiredWithoutBankAccountsNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateWithoutBankAccountTransactionsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
accountNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cardNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
iban?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
branchId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountCreateWithoutBankAccountBalancesInput = {
accountNumber?: string | null
cardNumber?: string | null
name: string
iban?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
branch: Prisma.BankBranchCreateNestedOneWithoutBankAccountsInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUncheckedCreateWithoutBankAccountBalancesInput = {
id?: number
accountNumber?: string | null
cardNumber?: string | null
name: string
iban?: string | null
branchId: number
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutBankAccountInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedCreateNestedManyWithoutBankAccountInput
}
export type BankAccountCreateOrConnectWithoutBankAccountBalancesInput = {
where: Prisma.BankAccountWhereUniqueInput
create: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountBalancesInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountBalancesInput>
}
export type BankAccountUpsertWithoutBankAccountBalancesInput = {
update: Prisma.XOR<Prisma.BankAccountUpdateWithoutBankAccountBalancesInput, Prisma.BankAccountUncheckedUpdateWithoutBankAccountBalancesInput>
create: Prisma.XOR<Prisma.BankAccountCreateWithoutBankAccountBalancesInput, Prisma.BankAccountUncheckedCreateWithoutBankAccountBalancesInput>
where?: Prisma.BankAccountWhereInput
}
export type BankAccountUpdateToOneWithWhereWithoutBankAccountBalancesInput = {
where?: Prisma.BankAccountWhereInput
data: Prisma.XOR<Prisma.BankAccountUpdateWithoutBankAccountBalancesInput, Prisma.BankAccountUncheckedUpdateWithoutBankAccountBalancesInput>
}
export type BankAccountUpdateWithoutBankAccountBalancesInput = {
accountNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cardNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
iban?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
branch?: Prisma.BankBranchUpdateOneRequiredWithoutBankAccountsNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateWithoutBankAccountBalancesInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
accountNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
cardNumber?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
name?: Prisma.StringFieldUpdateOperationsInput | string
iban?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
branchId?: Prisma.IntFieldUpdateOperationsInput | number
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountCreateWithoutInventoryBankAccountsInput = {
accountNumber?: string | null
cardNumber?: string | null
@@ -624,6 +818,8 @@ export type BankAccountCreateWithoutInventoryBankAccountsInput = {
deletedAt?: Date | string | null
branch: Prisma.BankBranchCreateNestedOneWithoutBankAccountsInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUncheckedCreateWithoutInventoryBankAccountsInput = {
@@ -637,6 +833,8 @@ export type BankAccountUncheckedCreateWithoutInventoryBankAccountsInput = {
updatedAt?: Date | string
deletedAt?: Date | string | null
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedCreateNestedManyWithoutBankAccountInput
}
export type BankAccountCreateOrConnectWithoutInventoryBankAccountsInput = {
@@ -665,6 +863,8 @@ export type BankAccountUpdateWithoutInventoryBankAccountsInput = {
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
branch?: Prisma.BankBranchUpdateOneRequiredWithoutBankAccountsNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateWithoutInventoryBankAccountsInput = {
@@ -678,6 +878,8 @@ export type BankAccountUncheckedUpdateWithoutInventoryBankAccountsInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountCreateWithoutPurchaseReceiptPaymentsInput = {
@@ -690,6 +892,8 @@ export type BankAccountCreateWithoutPurchaseReceiptPaymentsInput = {
deletedAt?: Date | string | null
branch: Prisma.BankBranchCreateNestedOneWithoutBankAccountsInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceCreateNestedManyWithoutBankAccountInput
}
export type BankAccountUncheckedCreateWithoutPurchaseReceiptPaymentsInput = {
@@ -703,6 +907,8 @@ export type BankAccountUncheckedCreateWithoutPurchaseReceiptPaymentsInput = {
updatedAt?: Date | string
deletedAt?: Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedCreateNestedManyWithoutBankAccountInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedCreateNestedManyWithoutBankAccountInput
}
export type BankAccountCreateOrConnectWithoutPurchaseReceiptPaymentsInput = {
@@ -731,6 +937,8 @@ export type BankAccountUpdateWithoutPurchaseReceiptPaymentsInput = {
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
branch?: Prisma.BankBranchUpdateOneRequiredWithoutBankAccountsNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateWithoutPurchaseReceiptPaymentsInput = {
@@ -744,6 +952,8 @@ export type BankAccountUncheckedUpdateWithoutPurchaseReceiptPaymentsInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountCreateManyBranchInput = {
@@ -767,6 +977,8 @@ export type BankAccountUpdateWithoutBranchInput = {
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateWithoutBranchInput = {
@@ -780,6 +992,8 @@ export type BankAccountUncheckedUpdateWithoutBranchInput = {
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutBankAccountNestedInput
purchaseReceiptPayments?: Prisma.PurchaseReceiptPaymentsUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountTransactions?: Prisma.BankAccountTransactionUncheckedUpdateManyWithoutBankAccountNestedInput
bankAccountBalances?: Prisma.BankAccountBalanceUncheckedUpdateManyWithoutBankAccountNestedInput
}
export type BankAccountUncheckedUpdateManyWithoutBranchInput = {
@@ -801,11 +1015,15 @@ export type BankAccountUncheckedUpdateManyWithoutBranchInput = {
export type BankAccountCountOutputType = {
inventoryBankAccounts: number
purchaseReceiptPayments: number
bankAccountTransactions: number
bankAccountBalances: number
}
export type BankAccountCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
inventoryBankAccounts?: boolean | BankAccountCountOutputTypeCountInventoryBankAccountsArgs
purchaseReceiptPayments?: boolean | BankAccountCountOutputTypeCountPurchaseReceiptPaymentsArgs
bankAccountTransactions?: boolean | BankAccountCountOutputTypeCountBankAccountTransactionsArgs
bankAccountBalances?: boolean | BankAccountCountOutputTypeCountBankAccountBalancesArgs
}
/**
@@ -832,6 +1050,20 @@ export type BankAccountCountOutputTypeCountPurchaseReceiptPaymentsArgs<ExtArgs e
where?: Prisma.PurchaseReceiptPaymentsWhereInput
}
/**
* BankAccountCountOutputType without action
*/
export type BankAccountCountOutputTypeCountBankAccountTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.BankAccountTransactionWhereInput
}
/**
* BankAccountCountOutputType without action
*/
export type BankAccountCountOutputTypeCountBankAccountBalancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.BankAccountBalanceWhereInput
}
export type BankAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
@@ -846,6 +1078,8 @@ export type BankAccountSelect<ExtArgs extends runtime.Types.Extensions.InternalA
branch?: boolean | Prisma.BankBranchDefaultArgs<ExtArgs>
inventoryBankAccounts?: boolean | Prisma.BankAccount$inventoryBankAccountsArgs<ExtArgs>
purchaseReceiptPayments?: boolean | Prisma.BankAccount$purchaseReceiptPaymentsArgs<ExtArgs>
bankAccountTransactions?: boolean | Prisma.BankAccount$bankAccountTransactionsArgs<ExtArgs>
bankAccountBalances?: boolean | Prisma.BankAccount$bankAccountBalancesArgs<ExtArgs>
_count?: boolean | Prisma.BankAccountCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["bankAccount"]>
@@ -868,6 +1102,8 @@ export type BankAccountInclude<ExtArgs extends runtime.Types.Extensions.Internal
branch?: boolean | Prisma.BankBranchDefaultArgs<ExtArgs>
inventoryBankAccounts?: boolean | Prisma.BankAccount$inventoryBankAccountsArgs<ExtArgs>
purchaseReceiptPayments?: boolean | Prisma.BankAccount$purchaseReceiptPaymentsArgs<ExtArgs>
bankAccountTransactions?: boolean | Prisma.BankAccount$bankAccountTransactionsArgs<ExtArgs>
bankAccountBalances?: boolean | Prisma.BankAccount$bankAccountBalancesArgs<ExtArgs>
_count?: boolean | Prisma.BankAccountCountOutputTypeDefaultArgs<ExtArgs>
}
@@ -877,6 +1113,8 @@ export type $BankAccountPayload<ExtArgs extends runtime.Types.Extensions.Interna
branch: Prisma.$BankBranchPayload<ExtArgs>
inventoryBankAccounts: Prisma.$InventoryBankAccountPayload<ExtArgs>[]
purchaseReceiptPayments: Prisma.$PurchaseReceiptPaymentsPayload<ExtArgs>[]
bankAccountTransactions: Prisma.$BankAccountTransactionPayload<ExtArgs>[]
bankAccountBalances: Prisma.$BankAccountBalancePayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
@@ -1231,6 +1469,8 @@ export interface Prisma__BankAccountClient<T, Null = never, ExtArgs extends runt
branch<T extends Prisma.BankBranchDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankBranchDefaultArgs<ExtArgs>>): Prisma.Prisma__BankBranchClient<runtime.Types.Result.GetResult<Prisma.$BankBranchPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
inventoryBankAccounts<T extends Prisma.BankAccount$inventoryBankAccountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankAccount$inventoryBankAccountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryBankAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
purchaseReceiptPayments<T extends Prisma.BankAccount$purchaseReceiptPaymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankAccount$purchaseReceiptPaymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PurchaseReceiptPaymentsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
bankAccountTransactions<T extends Prisma.BankAccount$bankAccountTransactionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankAccount$bankAccountTransactionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BankAccountTransactionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
bankAccountBalances<T extends Prisma.BankAccount$bankAccountBalancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BankAccount$bankAccountBalancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BankAccountBalancePayload<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.
@@ -1659,6 +1899,54 @@ export type BankAccount$purchaseReceiptPaymentsArgs<ExtArgs extends runtime.Type
distinct?: Prisma.PurchaseReceiptPaymentsScalarFieldEnum | Prisma.PurchaseReceiptPaymentsScalarFieldEnum[]
}
/**
* BankAccount.bankAccountTransactions
*/
export type BankAccount$bankAccountTransactionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BankAccountTransaction
*/
select?: Prisma.BankAccountTransactionSelect<ExtArgs> | null
/**
* Omit specific fields from the BankAccountTransaction
*/
omit?: Prisma.BankAccountTransactionOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BankAccountTransactionInclude<ExtArgs> | null
where?: Prisma.BankAccountTransactionWhereInput
orderBy?: Prisma.BankAccountTransactionOrderByWithRelationInput | Prisma.BankAccountTransactionOrderByWithRelationInput[]
cursor?: Prisma.BankAccountTransactionWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.BankAccountTransactionScalarFieldEnum | Prisma.BankAccountTransactionScalarFieldEnum[]
}
/**
* BankAccount.bankAccountBalances
*/
export type BankAccount$bankAccountBalancesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BankAccountBalance
*/
select?: Prisma.BankAccountBalanceSelect<ExtArgs> | null
/**
* Omit specific fields from the BankAccountBalance
*/
omit?: Prisma.BankAccountBalanceOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BankAccountBalanceInclude<ExtArgs> | null
where?: Prisma.BankAccountBalanceWhereInput
orderBy?: Prisma.BankAccountBalanceOrderByWithRelationInput | Prisma.BankAccountBalanceOrderByWithRelationInput[]
cursor?: Prisma.BankAccountBalanceWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.BankAccountBalanceScalarFieldEnum | Prisma.BankAccountBalanceScalarFieldEnum[]
}
/**
* BankAccount without action
*/
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+8 -11
View File
@@ -488,6 +488,11 @@ export type CustomerUncheckedUpdateManyInput = {
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
}
export type CustomerNullableScalarRelationFilter = {
is?: Prisma.CustomerWhereInput | null
isNot?: Prisma.CustomerWhereInput | null
}
export type CustomerOrderByRelevanceInput = {
fields: Prisma.CustomerOrderByRelevanceFieldEnum | Prisma.CustomerOrderByRelevanceFieldEnum[]
sort: Prisma.SortOrder
@@ -550,26 +555,18 @@ export type CustomerSumOrderByAggregateInput = {
id?: Prisma.SortOrder
}
export type CustomerScalarRelationFilter = {
is?: Prisma.CustomerWhereInput
isNot?: Prisma.CustomerWhereInput
}
export type CustomerNullableScalarRelationFilter = {
is?: Prisma.CustomerWhereInput | null
isNot?: Prisma.CustomerWhereInput | null
}
export type CustomerCreateNestedOneWithoutOrdersInput = {
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
connect?: Prisma.CustomerWhereUniqueInput
}
export type CustomerUpdateOneRequiredWithoutOrdersNestedInput = {
export type CustomerUpdateOneWithoutOrdersNestedInput = {
create?: Prisma.XOR<Prisma.CustomerCreateWithoutOrdersInput, Prisma.CustomerUncheckedCreateWithoutOrdersInput>
connectOrCreate?: Prisma.CustomerCreateOrConnectWithoutOrdersInput
upsert?: Prisma.CustomerUpsertWithoutOrdersInput
disconnect?: Prisma.CustomerWhereInput | boolean
delete?: Prisma.CustomerWhereInput | boolean
connect?: Prisma.CustomerWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.CustomerUpdateToOneWithWhereWithoutOrdersInput, Prisma.CustomerUpdateWithoutOrdersInput>, Prisma.CustomerUncheckedUpdateWithoutOrdersInput>
}
+180
View File
@@ -248,6 +248,7 @@ export type InventoryWhereInput = {
counterStockMovements?: Prisma.StockMovementListRelationFilter
stockMovements?: Prisma.StockMovementListRelationFilter
inventoryBankAccounts?: Prisma.InventoryBankAccountListRelationFilter
stockReservations?: Prisma.StockReservationListRelationFilter
}
export type InventoryOrderByWithRelationInput = {
@@ -267,6 +268,7 @@ export type InventoryOrderByWithRelationInput = {
counterStockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
inventoryBankAccounts?: Prisma.InventoryBankAccountOrderByRelationAggregateInput
stockReservations?: Prisma.StockReservationOrderByRelationAggregateInput
_relevance?: Prisma.InventoryOrderByRelevanceInput
}
@@ -290,6 +292,7 @@ export type InventoryWhereUniqueInput = Prisma.AtLeast<{
counterStockMovements?: Prisma.StockMovementListRelationFilter
stockMovements?: Prisma.StockMovementListRelationFilter
inventoryBankAccounts?: Prisma.InventoryBankAccountListRelationFilter
stockReservations?: Prisma.StockReservationListRelationFilter
}, "id">
export type InventoryOrderByWithAggregationInput = {
@@ -338,6 +341,7 @@ export type InventoryCreateInput = {
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateInput = {
@@ -357,6 +361,7 @@ export type InventoryUncheckedCreateInput = {
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryUpdateInput = {
@@ -375,6 +380,7 @@ export type InventoryUpdateInput = {
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateInput = {
@@ -394,6 +400,7 @@ export type InventoryUncheckedUpdateInput = {
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateManyInput = {
@@ -599,6 +606,20 @@ export type InventoryUpdateOneRequiredWithoutStockAdjustmentsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockAdjustmentsInput, Prisma.InventoryUpdateWithoutStockAdjustmentsInput>, Prisma.InventoryUncheckedUpdateWithoutStockAdjustmentsInput>
}
export type InventoryCreateNestedOneWithoutStockReservationsInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockReservationsInput, Prisma.InventoryUncheckedCreateWithoutStockReservationsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockReservationsInput
connect?: Prisma.InventoryWhereUniqueInput
}
export type InventoryUpdateOneRequiredWithoutStockReservationsNestedInput = {
create?: Prisma.XOR<Prisma.InventoryCreateWithoutStockReservationsInput, Prisma.InventoryUncheckedCreateWithoutStockReservationsInput>
connectOrCreate?: Prisma.InventoryCreateOrConnectWithoutStockReservationsInput
upsert?: Prisma.InventoryUpsertWithoutStockReservationsInput
connect?: Prisma.InventoryWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.InventoryUpdateToOneWithWhereWithoutStockReservationsInput, Prisma.InventoryUpdateWithoutStockReservationsInput>, Prisma.InventoryUncheckedUpdateWithoutStockReservationsInput>
}
export type InventoryCreateWithoutInventoryBankAccountsInput = {
name: string
location?: string | null
@@ -614,6 +635,7 @@ export type InventoryCreateWithoutInventoryBankAccountsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutInventoryBankAccountsInput = {
@@ -632,6 +654,7 @@ export type InventoryUncheckedCreateWithoutInventoryBankAccountsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutInventoryBankAccountsInput = {
@@ -665,6 +688,7 @@ export type InventoryUpdateWithoutInventoryBankAccountsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutInventoryBankAccountsInput = {
@@ -683,6 +707,7 @@ export type InventoryUncheckedUpdateWithoutInventoryBankAccountsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutInventoryTransfersFromInput = {
@@ -700,6 +725,7 @@ export type InventoryCreateWithoutInventoryTransfersFromInput = {
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
@@ -718,6 +744,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersFromInput = {
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutInventoryTransfersFromInput = {
@@ -740,6 +767,7 @@ export type InventoryCreateWithoutInventoryTransfersToInput = {
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
@@ -758,6 +786,7 @@ export type InventoryUncheckedCreateWithoutInventoryTransfersToInput = {
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutInventoryTransfersToInput = {
@@ -791,6 +820,7 @@ export type InventoryUpdateWithoutInventoryTransfersFromInput = {
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
@@ -809,6 +839,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersFromInput = {
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryUpsertWithoutInventoryTransfersToInput = {
@@ -837,6 +868,7 @@ export type InventoryUpdateWithoutInventoryTransfersToInput = {
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
@@ -855,6 +887,7 @@ export type InventoryUncheckedUpdateWithoutInventoryTransfersToInput = {
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutPurchaseReceiptsInput = {
@@ -872,6 +905,7 @@ export type InventoryCreateWithoutPurchaseReceiptsInput = {
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
@@ -890,6 +924,7 @@ export type InventoryUncheckedCreateWithoutPurchaseReceiptsInput = {
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutPurchaseReceiptsInput = {
@@ -923,6 +958,7 @@ export type InventoryUpdateWithoutPurchaseReceiptsInput = {
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
@@ -941,6 +977,7 @@ export type InventoryUncheckedUpdateWithoutPurchaseReceiptsInput = {
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutCounterStockMovementsInput = {
@@ -958,6 +995,7 @@ export type InventoryCreateWithoutCounterStockMovementsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutCounterStockMovementsInput = {
@@ -976,6 +1014,7 @@ export type InventoryUncheckedCreateWithoutCounterStockMovementsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutCounterStockMovementsInput = {
@@ -998,6 +1037,7 @@ export type InventoryCreateWithoutStockMovementsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutStockMovementsInput = {
@@ -1016,6 +1056,7 @@ export type InventoryUncheckedCreateWithoutStockMovementsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutStockMovementsInput = {
@@ -1049,6 +1090,7 @@ export type InventoryUpdateWithoutCounterStockMovementsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutCounterStockMovementsInput = {
@@ -1067,6 +1109,7 @@ export type InventoryUncheckedUpdateWithoutCounterStockMovementsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryUpsertWithoutStockMovementsInput = {
@@ -1095,6 +1138,7 @@ export type InventoryUpdateWithoutStockMovementsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
@@ -1113,6 +1157,7 @@ export type InventoryUncheckedUpdateWithoutStockMovementsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutStockBalancesInput = {
@@ -1130,6 +1175,7 @@ export type InventoryCreateWithoutStockBalancesInput = {
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutStockBalancesInput = {
@@ -1148,6 +1194,7 @@ export type InventoryUncheckedCreateWithoutStockBalancesInput = {
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutStockBalancesInput = {
@@ -1181,6 +1228,7 @@ export type InventoryUpdateWithoutStockBalancesInput = {
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutStockBalancesInput = {
@@ -1199,6 +1247,7 @@ export type InventoryUncheckedUpdateWithoutStockBalancesInput = {
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutStockAdjustmentsInput = {
@@ -1216,6 +1265,7 @@ export type InventoryCreateWithoutStockAdjustmentsInput = {
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
@@ -1234,6 +1284,7 @@ export type InventoryUncheckedCreateWithoutStockAdjustmentsInput = {
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutStockAdjustmentsInput = {
@@ -1267,6 +1318,7 @@ export type InventoryUpdateWithoutStockAdjustmentsInput = {
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
@@ -1285,6 +1337,97 @@ export type InventoryUncheckedUpdateWithoutStockAdjustmentsInput = {
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutInventoryNestedInput
}
export type InventoryCreateWithoutStockReservationsInput = {
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
isPointOfSale?: boolean
inventoryTransfersFrom?: Prisma.InventoryTransferCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferCreateNestedManyWithoutToInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutInventoryInput
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutInventoryInput
counterStockMovements?: Prisma.StockMovementCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountCreateNestedManyWithoutInventoryInput
}
export type InventoryUncheckedCreateWithoutStockReservationsInput = {
id?: number
name: string
location?: string | null
isActive?: boolean
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
isPointOfSale?: boolean
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutFromInventoryInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedCreateNestedManyWithoutToInventoryInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedCreateNestedManyWithoutInventoryInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutInventoryInput
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutInventoryInput
counterStockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutCounterInventoryInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutInventoryInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedCreateNestedManyWithoutInventoryInput
}
export type InventoryCreateOrConnectWithoutStockReservationsInput = {
where: Prisma.InventoryWhereUniqueInput
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockReservationsInput, Prisma.InventoryUncheckedCreateWithoutStockReservationsInput>
}
export type InventoryUpsertWithoutStockReservationsInput = {
update: Prisma.XOR<Prisma.InventoryUpdateWithoutStockReservationsInput, Prisma.InventoryUncheckedUpdateWithoutStockReservationsInput>
create: Prisma.XOR<Prisma.InventoryCreateWithoutStockReservationsInput, Prisma.InventoryUncheckedCreateWithoutStockReservationsInput>
where?: Prisma.InventoryWhereInput
}
export type InventoryUpdateToOneWithWhereWithoutStockReservationsInput = {
where?: Prisma.InventoryWhereInput
data: Prisma.XOR<Prisma.InventoryUpdateWithoutStockReservationsInput, Prisma.InventoryUncheckedUpdateWithoutStockReservationsInput>
}
export type InventoryUpdateWithoutStockReservationsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
inventoryTransfersFrom?: Prisma.InventoryTransferUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUpdateManyWithoutToInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutInventoryNestedInput
stockBalances?: Prisma.StockBalanceUpdateManyWithoutInventoryNestedInput
counterStockMovements?: Prisma.StockMovementUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUpdateManyWithoutInventoryNestedInput
}
export type InventoryUncheckedUpdateWithoutStockReservationsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
location?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
isActive?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
isPointOfSale?: Prisma.BoolFieldUpdateOperationsInput | boolean
inventoryTransfersFrom?: Prisma.InventoryTransferUncheckedUpdateManyWithoutFromInventoryNestedInput
inventoryTransfersTo?: Prisma.InventoryTransferUncheckedUpdateManyWithoutToInventoryNestedInput
purchaseReceipts?: Prisma.PurchaseReceiptUncheckedUpdateManyWithoutInventoryNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutInventoryNestedInput
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutInventoryNestedInput
counterStockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutCounterInventoryNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutInventoryNestedInput
inventoryBankAccounts?: Prisma.InventoryBankAccountUncheckedUpdateManyWithoutInventoryNestedInput
}
@@ -1301,6 +1444,7 @@ export type InventoryCountOutputType = {
counterStockMovements: number
stockMovements: number
inventoryBankAccounts: number
stockReservations: number
}
export type InventoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1312,6 +1456,7 @@ export type InventoryCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensi
counterStockMovements?: boolean | InventoryCountOutputTypeCountCounterStockMovementsArgs
stockMovements?: boolean | InventoryCountOutputTypeCountStockMovementsArgs
inventoryBankAccounts?: boolean | InventoryCountOutputTypeCountInventoryBankAccountsArgs
stockReservations?: boolean | InventoryCountOutputTypeCountStockReservationsArgs
}
/**
@@ -1380,6 +1525,13 @@ export type InventoryCountOutputTypeCountInventoryBankAccountsArgs<ExtArgs exten
where?: Prisma.InventoryBankAccountWhereInput
}
/**
* InventoryCountOutputType without action
*/
export type InventoryCountOutputTypeCountStockReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.StockReservationWhereInput
}
export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
@@ -1398,6 +1550,7 @@ export type InventorySelect<ExtArgs extends runtime.Types.Extensions.InternalArg
counterStockMovements?: boolean | Prisma.Inventory$counterStockMovementsArgs<ExtArgs>
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
inventoryBankAccounts?: boolean | Prisma.Inventory$inventoryBankAccountsArgs<ExtArgs>
stockReservations?: boolean | Prisma.Inventory$stockReservationsArgs<ExtArgs>
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["inventory"]>
@@ -1424,6 +1577,7 @@ export type InventoryInclude<ExtArgs extends runtime.Types.Extensions.InternalAr
counterStockMovements?: boolean | Prisma.Inventory$counterStockMovementsArgs<ExtArgs>
stockMovements?: boolean | Prisma.Inventory$stockMovementsArgs<ExtArgs>
inventoryBankAccounts?: boolean | Prisma.Inventory$inventoryBankAccountsArgs<ExtArgs>
stockReservations?: boolean | Prisma.Inventory$stockReservationsArgs<ExtArgs>
_count?: boolean | Prisma.InventoryCountOutputTypeDefaultArgs<ExtArgs>
}
@@ -1438,6 +1592,7 @@ export type $InventoryPayload<ExtArgs extends runtime.Types.Extensions.InternalA
counterStockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
inventoryBankAccounts: Prisma.$InventoryBankAccountPayload<ExtArgs>[]
stockReservations: Prisma.$StockReservationPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
@@ -1796,6 +1951,7 @@ export interface Prisma__InventoryClient<T, Null = never, ExtArgs extends runtim
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>
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>
inventoryBankAccounts<T extends Prisma.Inventory$inventoryBankAccountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$inventoryBankAccountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InventoryBankAccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
stockReservations<T extends Prisma.Inventory$stockReservationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Inventory$stockReservationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockReservationPayload<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.
@@ -2367,6 +2523,30 @@ export type Inventory$inventoryBankAccountsArgs<ExtArgs extends runtime.Types.Ex
distinct?: Prisma.InventoryBankAccountScalarFieldEnum | Prisma.InventoryBankAccountScalarFieldEnum[]
}
/**
* Inventory.stockReservations
*/
export type Inventory$stockReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StockReservation
*/
select?: Prisma.StockReservationSelect<ExtArgs> | null
/**
* Omit specific fields from the StockReservation
*/
omit?: Prisma.StockReservationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.StockReservationInclude<ExtArgs> | null
where?: Prisma.StockReservationWhereInput
orderBy?: Prisma.StockReservationOrderByWithRelationInput | Prisma.StockReservationOrderByWithRelationInput[]
cursor?: Prisma.StockReservationWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.StockReservationScalarFieldEnum | Prisma.StockReservationScalarFieldEnum[]
}
/**
* Inventory without action
*/
@@ -398,14 +398,6 @@ export type InventoryTransferItemUncheckedUpdateManyWithoutTransferNestedInput =
deleteMany?: Prisma.InventoryTransferItemScalarWhereInput | Prisma.InventoryTransferItemScalarWhereInput[]
}
export type DecimalFieldUpdateOperationsInput = {
set?: runtime.Decimal | runtime.DecimalJsLike | number | string
increment?: runtime.Decimal | runtime.DecimalJsLike | number | string
decrement?: runtime.Decimal | runtime.DecimalJsLike | number | string
multiply?: runtime.Decimal | runtime.DecimalJsLike | number | string
divide?: runtime.Decimal | runtime.DecimalJsLike | number | string
}
export type InventoryTransferItemCreateNestedManyWithoutProductInput = {
create?: Prisma.XOR<Prisma.InventoryTransferItemCreateWithoutProductInput, Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput> | Prisma.InventoryTransferItemCreateWithoutProductInput[] | Prisma.InventoryTransferItemUncheckedCreateWithoutProductInput[]
connectOrCreate?: Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput | Prisma.InventoryTransferItemCreateOrConnectWithoutProductInput[]
+214 -73
View File
@@ -42,7 +42,6 @@ export type OrderMinAggregateOutputType = {
id: number | null
orderNumber: string | null
status: $Enums.OrderStatus | null
paymentMethod: $Enums.PaymentMethodType | null
totalAmount: runtime.Decimal | null
description: string | null
createdAt: Date | null
@@ -55,7 +54,6 @@ export type OrderMaxAggregateOutputType = {
id: number | null
orderNumber: string | null
status: $Enums.OrderStatus | null
paymentMethod: $Enums.PaymentMethodType | null
totalAmount: runtime.Decimal | null
description: string | null
createdAt: Date | null
@@ -68,7 +66,6 @@ export type OrderCountAggregateOutputType = {
id: number
orderNumber: number
status: number
paymentMethod: number
totalAmount: number
description: number
createdAt: number
@@ -95,7 +92,6 @@ export type OrderMinAggregateInputType = {
id?: true
orderNumber?: true
status?: true
paymentMethod?: true
totalAmount?: true
description?: true
createdAt?: true
@@ -108,7 +104,6 @@ export type OrderMaxAggregateInputType = {
id?: true
orderNumber?: true
status?: true
paymentMethod?: true
totalAmount?: true
description?: true
createdAt?: true
@@ -121,7 +116,6 @@ export type OrderCountAggregateInputType = {
id?: true
orderNumber?: true
status?: true
paymentMethod?: true
totalAmount?: true
description?: true
createdAt?: true
@@ -221,13 +215,12 @@ export type OrderGroupByOutputType = {
id: number
orderNumber: string
status: $Enums.OrderStatus
paymentMethod: $Enums.PaymentMethodType
totalAmount: runtime.Decimal
description: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
customerId: number
customerId: number | null
_count: OrderCountAggregateOutputType | null
_avg: OrderAvgAggregateOutputType | null
_sum: OrderSumAggregateOutputType | null
@@ -257,28 +250,28 @@ export type OrderWhereInput = {
id?: Prisma.IntFilter<"Order"> | number
orderNumber?: Prisma.StringFilter<"Order"> | string
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFilter<"Order"> | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableFilter<"Order"> | string | null
createdAt?: Prisma.DateTimeFilter<"Order"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
customerId?: Prisma.IntFilter<"Order"> | number
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
orderItems?: Prisma.OrderItemListRelationFilter
}
export type OrderOrderByWithRelationInput = {
id?: Prisma.SortOrder
orderNumber?: Prisma.SortOrder
status?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
customerId?: Prisma.SortOrder
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
customer?: Prisma.CustomerOrderByWithRelationInput
orderItems?: Prisma.OrderItemOrderByRelationAggregateInput
_relevance?: Prisma.OrderOrderByRelevanceInput
}
@@ -289,27 +282,26 @@ export type OrderWhereUniqueInput = Prisma.AtLeast<{
OR?: Prisma.OrderWhereInput[]
NOT?: Prisma.OrderWhereInput | Prisma.OrderWhereInput[]
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFilter<"Order"> | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableFilter<"Order"> | string | null
createdAt?: Prisma.DateTimeFilter<"Order"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
customerId?: Prisma.IntFilter<"Order"> | number
customer?: Prisma.XOR<Prisma.CustomerScalarRelationFilter, Prisma.CustomerWhereInput>
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
orderItems?: Prisma.OrderItemListRelationFilter
}, "id" | "orderNumber">
export type OrderOrderByWithAggregationInput = {
id?: Prisma.SortOrder
orderNumber?: Prisma.SortOrder
status?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
customerId?: Prisma.SortOrder
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.OrderCountOrderByAggregateInput
_avg?: Prisma.OrderAvgOrderByAggregateInput
_max?: Prisma.OrderMaxOrderByAggregateInput
@@ -324,82 +316,79 @@ export type OrderScalarWhereWithAggregatesInput = {
id?: Prisma.IntWithAggregatesFilter<"Order"> | number
orderNumber?: Prisma.StringWithAggregatesFilter<"Order"> | string
status?: Prisma.EnumOrderStatusWithAggregatesFilter<"Order"> | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeWithAggregatesFilter<"Order"> | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalWithAggregatesFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableWithAggregatesFilter<"Order"> | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Order"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Order"> | Date | string
deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Order"> | Date | string | null
customerId?: Prisma.IntWithAggregatesFilter<"Order"> | number
customerId?: Prisma.IntNullableWithAggregatesFilter<"Order"> | number | null
}
export type OrderCreateInput = {
orderNumber: string
status?: $Enums.OrderStatus
paymentMethod?: $Enums.PaymentMethodType
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
customer: Prisma.CustomerCreateNestedOneWithoutOrdersInput
customer?: Prisma.CustomerCreateNestedOneWithoutOrdersInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutOrderInput
}
export type OrderUncheckedCreateInput = {
id?: number
orderNumber: string
status?: $Enums.OrderStatus
paymentMethod?: $Enums.PaymentMethodType
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
customerId: number
customerId?: number | null
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutOrderInput
}
export type OrderUpdateInput = {
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
customer?: Prisma.CustomerUpdateOneRequiredWithoutOrdersNestedInput
customer?: Prisma.CustomerUpdateOneWithoutOrdersNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutOrderNestedInput
}
export type OrderUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
customerId?: Prisma.IntFieldUpdateOperationsInput | number
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutOrderNestedInput
}
export type OrderCreateManyInput = {
id?: number
orderNumber: string
status?: $Enums.OrderStatus
paymentMethod?: $Enums.PaymentMethodType
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
customerId: number
customerId?: number | null
}
export type OrderUpdateManyMutationInput = {
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -411,23 +400,12 @@ export type OrderUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
customerId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type OrderListRelationFilter = {
every?: Prisma.OrderWhereInput
some?: Prisma.OrderWhereInput
none?: Prisma.OrderWhereInput
}
export type OrderOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type OrderOrderByRelevanceInput = {
@@ -440,7 +418,6 @@ export type OrderCountOrderByAggregateInput = {
id?: Prisma.SortOrder
orderNumber?: Prisma.SortOrder
status?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
description?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
@@ -459,7 +436,6 @@ export type OrderMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
orderNumber?: Prisma.SortOrder
status?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
description?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
@@ -472,7 +448,6 @@ export type OrderMinOrderByAggregateInput = {
id?: Prisma.SortOrder
orderNumber?: Prisma.SortOrder
status?: Prisma.SortOrder
paymentMethod?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
description?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
@@ -487,6 +462,47 @@ export type OrderSumOrderByAggregateInput = {
customerId?: Prisma.SortOrder
}
export type OrderScalarRelationFilter = {
is?: Prisma.OrderWhereInput
isNot?: Prisma.OrderWhereInput
}
export type OrderListRelationFilter = {
every?: Prisma.OrderWhereInput
some?: Prisma.OrderWhereInput
none?: Prisma.OrderWhereInput
}
export type OrderOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type EnumOrderStatusFieldUpdateOperationsInput = {
set?: $Enums.OrderStatus
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type OrderCreateNestedOneWithoutOrderItemsInput = {
create?: Prisma.XOR<Prisma.OrderCreateWithoutOrderItemsInput, Prisma.OrderUncheckedCreateWithoutOrderItemsInput>
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutOrderItemsInput
connect?: Prisma.OrderWhereUniqueInput
}
export type OrderUpdateOneRequiredWithoutOrderItemsNestedInput = {
create?: Prisma.XOR<Prisma.OrderCreateWithoutOrderItemsInput, Prisma.OrderUncheckedCreateWithoutOrderItemsInput>
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutOrderItemsInput
upsert?: Prisma.OrderUpsertWithoutOrderItemsInput
connect?: Prisma.OrderWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.OrderUpdateToOneWithWhereWithoutOrderItemsInput, Prisma.OrderUpdateWithoutOrderItemsInput>, Prisma.OrderUncheckedUpdateWithoutOrderItemsInput>
}
export type OrderCreateNestedManyWithoutCustomerInput = {
create?: Prisma.XOR<Prisma.OrderCreateWithoutCustomerInput, Prisma.OrderUncheckedCreateWithoutCustomerInput> | Prisma.OrderCreateWithoutCustomerInput[] | Prisma.OrderUncheckedCreateWithoutCustomerInput[]
connectOrCreate?: Prisma.OrderCreateOrConnectWithoutCustomerInput | Prisma.OrderCreateOrConnectWithoutCustomerInput[]
@@ -529,35 +545,89 @@ export type OrderUncheckedUpdateManyWithoutCustomerNestedInput = {
deleteMany?: Prisma.OrderScalarWhereInput | Prisma.OrderScalarWhereInput[]
}
export type EnumOrderStatusFieldUpdateOperationsInput = {
set?: $Enums.OrderStatus
}
export type EnumPaymentMethodTypeFieldUpdateOperationsInput = {
set?: $Enums.PaymentMethodType
}
export type OrderCreateWithoutCustomerInput = {
export type OrderCreateWithoutOrderItemsInput = {
orderNumber: string
status?: $Enums.OrderStatus
paymentMethod?: $Enums.PaymentMethodType
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
customer?: Prisma.CustomerCreateNestedOneWithoutOrdersInput
}
export type OrderUncheckedCreateWithoutOrderItemsInput = {
id?: number
orderNumber: string
status?: $Enums.OrderStatus
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
customerId?: number | null
}
export type OrderCreateOrConnectWithoutOrderItemsInput = {
where: Prisma.OrderWhereUniqueInput
create: Prisma.XOR<Prisma.OrderCreateWithoutOrderItemsInput, Prisma.OrderUncheckedCreateWithoutOrderItemsInput>
}
export type OrderUpsertWithoutOrderItemsInput = {
update: Prisma.XOR<Prisma.OrderUpdateWithoutOrderItemsInput, Prisma.OrderUncheckedUpdateWithoutOrderItemsInput>
create: Prisma.XOR<Prisma.OrderCreateWithoutOrderItemsInput, Prisma.OrderUncheckedCreateWithoutOrderItemsInput>
where?: Prisma.OrderWhereInput
}
export type OrderUpdateToOneWithWhereWithoutOrderItemsInput = {
where?: Prisma.OrderWhereInput
data: Prisma.XOR<Prisma.OrderUpdateWithoutOrderItemsInput, Prisma.OrderUncheckedUpdateWithoutOrderItemsInput>
}
export type OrderUpdateWithoutOrderItemsInput = {
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
customer?: Prisma.CustomerUpdateOneWithoutOrdersNestedInput
}
export type OrderUncheckedUpdateWithoutOrderItemsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
}
export type OrderCreateWithoutCustomerInput = {
orderNumber: string
status?: $Enums.OrderStatus
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
orderItems?: Prisma.OrderItemCreateNestedManyWithoutOrderInput
}
export type OrderUncheckedCreateWithoutCustomerInput = {
id?: number
orderNumber: string
status?: $Enums.OrderStatus
paymentMethod?: $Enums.PaymentMethodType
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutOrderInput
}
export type OrderCreateOrConnectWithoutCustomerInput = {
@@ -593,20 +663,18 @@ export type OrderScalarWhereInput = {
id?: Prisma.IntFilter<"Order"> | number
orderNumber?: Prisma.StringFilter<"Order"> | string
status?: Prisma.EnumOrderStatusFilter<"Order"> | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFilter<"Order"> | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFilter<"Order"> | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.StringNullableFilter<"Order"> | string | null
createdAt?: Prisma.DateTimeFilter<"Order"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Order"> | Date | string
deletedAt?: Prisma.DateTimeNullableFilter<"Order"> | Date | string | null
customerId?: Prisma.IntFilter<"Order"> | number
customerId?: Prisma.IntNullableFilter<"Order"> | number | null
}
export type OrderCreateManyCustomerInput = {
id?: number
orderNumber: string
status?: $Enums.OrderStatus
paymentMethod?: $Enums.PaymentMethodType
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
@@ -617,31 +685,30 @@ export type OrderCreateManyCustomerInput = {
export type OrderUpdateWithoutCustomerInput = {
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
orderItems?: Prisma.OrderItemUpdateManyWithoutOrderNestedInput
}
export type OrderUncheckedUpdateWithoutCustomerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutOrderNestedInput
}
export type OrderUncheckedUpdateManyWithoutCustomerInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
orderNumber?: Prisma.StringFieldUpdateOperationsInput | string
status?: Prisma.EnumOrderStatusFieldUpdateOperationsInput | $Enums.OrderStatus
paymentMethod?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -650,19 +717,49 @@ export type OrderUncheckedUpdateManyWithoutCustomerInput = {
}
/**
* Count Type OrderCountOutputType
*/
export type OrderCountOutputType = {
orderItems: number
}
export type OrderCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
orderItems?: boolean | OrderCountOutputTypeCountOrderItemsArgs
}
/**
* OrderCountOutputType without action
*/
export type OrderCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OrderCountOutputType
*/
select?: Prisma.OrderCountOutputTypeSelect<ExtArgs> | null
}
/**
* OrderCountOutputType without action
*/
export type OrderCountOutputTypeCountOrderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.OrderItemWhereInput
}
export type OrderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
orderNumber?: boolean
status?: boolean
paymentMethod?: boolean
totalAmount?: boolean
description?: boolean
createdAt?: boolean
updatedAt?: boolean
deletedAt?: boolean
customerId?: boolean
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
customer?: boolean | Prisma.Order$customerArgs<ExtArgs>
orderItems?: boolean | Prisma.Order$orderItemsArgs<ExtArgs>
_count?: boolean | Prisma.OrderCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["order"]>
@@ -671,7 +768,6 @@ export type OrderSelectScalar = {
id?: boolean
orderNumber?: boolean
status?: boolean
paymentMethod?: boolean
totalAmount?: boolean
description?: boolean
createdAt?: boolean
@@ -680,27 +776,29 @@ export type OrderSelectScalar = {
customerId?: boolean
}
export type OrderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderNumber" | "status" | "paymentMethod" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "customerId", ExtArgs["result"]["order"]>
export type OrderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderNumber" | "status" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "deletedAt" | "customerId", ExtArgs["result"]["order"]>
export type OrderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
customer?: boolean | Prisma.CustomerDefaultArgs<ExtArgs>
customer?: boolean | Prisma.Order$customerArgs<ExtArgs>
orderItems?: boolean | Prisma.Order$orderItemsArgs<ExtArgs>
_count?: boolean | Prisma.OrderCountOutputTypeDefaultArgs<ExtArgs>
}
export type $OrderPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Order"
objects: {
customer: Prisma.$CustomerPayload<ExtArgs>
customer: Prisma.$CustomerPayload<ExtArgs> | null
orderItems: Prisma.$OrderItemPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
orderNumber: string
status: $Enums.OrderStatus
paymentMethod: $Enums.PaymentMethodType
totalAmount: runtime.Decimal
description: string | null
createdAt: Date
updatedAt: Date
deletedAt: Date | null
customerId: number
customerId: number | null
}, ExtArgs["result"]["order"]>
composites: {}
}
@@ -1041,7 +1139,8 @@ readonly fields: OrderFieldRefs;
*/
export interface Prisma__OrderClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
customer<T extends Prisma.CustomerDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.CustomerDefaultArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
customer<T extends Prisma.Order$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Order$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
orderItems<T extends Prisma.Order$orderItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Order$orderItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<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.
@@ -1074,7 +1173,6 @@ export interface OrderFieldRefs {
readonly id: Prisma.FieldRef<"Order", 'Int'>
readonly orderNumber: Prisma.FieldRef<"Order", 'String'>
readonly status: Prisma.FieldRef<"Order", 'OrderStatus'>
readonly paymentMethod: Prisma.FieldRef<"Order", 'PaymentMethodType'>
readonly totalAmount: Prisma.FieldRef<"Order", 'Decimal'>
readonly description: Prisma.FieldRef<"Order", 'String'>
readonly createdAt: Prisma.FieldRef<"Order", 'DateTime'>
@@ -1423,6 +1521,49 @@ export type OrderDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.Interna
limit?: number
}
/**
* Order.customer
*/
export type Order$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
}
/**
* Order.orderItems
*/
export type Order$orderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OrderItem
*/
select?: Prisma.OrderItemSelect<ExtArgs> | null
/**
* Omit specific fields from the OrderItem
*/
omit?: Prisma.OrderItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OrderItemInclude<ExtArgs> | null
where?: Prisma.OrderItemWhereInput
orderBy?: Prisma.OrderItemOrderByWithRelationInput | Prisma.OrderItemOrderByWithRelationInput[]
cursor?: Prisma.OrderItemWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.OrderItemScalarFieldEnum | Prisma.OrderItemScalarFieldEnum[]
}
/**
* Order without action
*/
File diff suppressed because it is too large Load Diff
+419 -19
View File
@@ -297,6 +297,8 @@ export type ProductWhereInput = {
stockBalances?: Prisma.StockBalanceListRelationFilter
stockMovements?: Prisma.StockMovementListRelationFilter
salesInvoiceItems?: Prisma.SalesInvoiceItemListRelationFilter
stockReservations?: Prisma.StockReservationListRelationFilter
orderItems?: Prisma.OrderItemListRelationFilter
}
export type ProductOrderByWithRelationInput = {
@@ -321,6 +323,8 @@ export type ProductOrderByWithRelationInput = {
stockBalances?: Prisma.StockBalanceOrderByRelationAggregateInput
stockMovements?: Prisma.StockMovementOrderByRelationAggregateInput
salesInvoiceItems?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
stockReservations?: Prisma.StockReservationOrderByRelationAggregateInput
orderItems?: Prisma.OrderItemOrderByRelationAggregateInput
_relevance?: Prisma.ProductOrderByRelevanceInput
}
@@ -349,6 +353,8 @@ export type ProductWhereUniqueInput = Prisma.AtLeast<{
stockBalances?: Prisma.StockBalanceListRelationFilter
stockMovements?: Prisma.StockMovementListRelationFilter
salesInvoiceItems?: Prisma.SalesInvoiceItemListRelationFilter
stockReservations?: Prisma.StockReservationListRelationFilter
orderItems?: Prisma.OrderItemListRelationFilter
}, "id" | "sku" | "barcode">
export type ProductOrderByWithAggregationInput = {
@@ -408,6 +414,8 @@ export type ProductCreateInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateInput = {
@@ -430,6 +438,8 @@ export type ProductUncheckedCreateInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductUpdateInput = {
@@ -451,6 +461,8 @@ export type ProductUpdateInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateInput = {
@@ -473,6 +485,8 @@ export type ProductUncheckedUpdateInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateManyInput = {
@@ -613,18 +627,18 @@ export type ProductUpdateOneRequiredWithoutInventoryTransferItemsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutInventoryTransferItemsInput, Prisma.ProductUpdateWithoutInventoryTransferItemsInput>, Prisma.ProductUncheckedUpdateWithoutInventoryTransferItemsInput>
}
export type ProductCreateNestedOneWithoutSalesInvoiceItemsInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutSalesInvoiceItemsInput
export type ProductCreateNestedOneWithoutOrderItemsInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrderItemsInput
connect?: Prisma.ProductWhereUniqueInput
}
export type ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutSalesInvoiceItemsInput
upsert?: Prisma.ProductUpsertWithoutSalesInvoiceItemsInput
export type ProductUpdateOneRequiredWithoutOrderItemsNestedInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutOrderItemsInput
upsert?: Prisma.ProductUpsertWithoutOrderItemsInput
connect?: Prisma.ProductWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutSalesInvoiceItemsInput, Prisma.ProductUpdateWithoutSalesInvoiceItemsInput>, Prisma.ProductUncheckedUpdateWithoutSalesInvoiceItemsInput>
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutOrderItemsInput, Prisma.ProductUpdateWithoutOrderItemsInput>, Prisma.ProductUncheckedUpdateWithoutOrderItemsInput>
}
export type ProductCreateNestedOneWithoutVariantsInput = {
@@ -739,6 +753,20 @@ export type ProductUpdateOneRequiredWithoutPurchaseReceiptItemsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutPurchaseReceiptItemsInput, Prisma.ProductUpdateWithoutPurchaseReceiptItemsInput>, Prisma.ProductUncheckedUpdateWithoutPurchaseReceiptItemsInput>
}
export type ProductCreateNestedOneWithoutSalesInvoiceItemsInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutSalesInvoiceItemsInput
connect?: Prisma.ProductWhereUniqueInput
}
export type ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutSalesInvoiceItemsInput
upsert?: Prisma.ProductUpsertWithoutSalesInvoiceItemsInput
connect?: Prisma.ProductWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutSalesInvoiceItemsInput, Prisma.ProductUpdateWithoutSalesInvoiceItemsInput>, Prisma.ProductUncheckedUpdateWithoutSalesInvoiceItemsInput>
}
export type ProductCreateNestedOneWithoutStockMovementsInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutStockMovementsInput, Prisma.ProductUncheckedCreateWithoutStockMovementsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutStockMovementsInput
@@ -781,6 +809,20 @@ export type ProductUpdateOneRequiredWithoutStockAdjustmentsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutStockAdjustmentsInput, Prisma.ProductUpdateWithoutStockAdjustmentsInput>, Prisma.ProductUncheckedUpdateWithoutStockAdjustmentsInput>
}
export type ProductCreateNestedOneWithoutStockReservationsInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutStockReservationsInput, Prisma.ProductUncheckedCreateWithoutStockReservationsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutStockReservationsInput
connect?: Prisma.ProductWhereUniqueInput
}
export type ProductUpdateOneRequiredWithoutStockReservationsNestedInput = {
create?: Prisma.XOR<Prisma.ProductCreateWithoutStockReservationsInput, Prisma.ProductUncheckedCreateWithoutStockReservationsInput>
connectOrCreate?: Prisma.ProductCreateOrConnectWithoutStockReservationsInput
upsert?: Prisma.ProductUpsertWithoutStockReservationsInput
connect?: Prisma.ProductWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.ProductUpdateToOneWithWhereWithoutStockReservationsInput, Prisma.ProductUpdateWithoutStockReservationsInput>, Prisma.ProductUncheckedUpdateWithoutStockReservationsInput>
}
export type ProductCreateWithoutInventoryTransferItemsInput = {
name: string
description?: string | null
@@ -799,6 +841,8 @@ export type ProductCreateWithoutInventoryTransferItemsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutInventoryTransferItemsInput = {
@@ -820,6 +864,8 @@ export type ProductUncheckedCreateWithoutInventoryTransferItemsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutInventoryTransferItemsInput = {
@@ -856,6 +902,8 @@ export type ProductUpdateWithoutInventoryTransferItemsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutInventoryTransferItemsInput = {
@@ -877,9 +925,11 @@ export type ProductUncheckedUpdateWithoutInventoryTransferItemsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutSalesInvoiceItemsInput = {
export type ProductCreateWithoutOrderItemsInput = {
name: string
description?: string | null
sku?: string | null
@@ -897,9 +947,11 @@ export type ProductCreateWithoutSalesInvoiceItemsInput = {
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutSalesInvoiceItemsInput = {
export type ProductUncheckedCreateWithoutOrderItemsInput = {
id?: number
name: string
description?: string | null
@@ -918,25 +970,27 @@ export type ProductUncheckedCreateWithoutSalesInvoiceItemsInput = {
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutSalesInvoiceItemsInput = {
export type ProductCreateOrConnectWithoutOrderItemsInput = {
where: Prisma.ProductWhereUniqueInput
create: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
create: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
}
export type ProductUpsertWithoutSalesInvoiceItemsInput = {
update: Prisma.XOR<Prisma.ProductUpdateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedUpdateWithoutSalesInvoiceItemsInput>
create: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
export type ProductUpsertWithoutOrderItemsInput = {
update: Prisma.XOR<Prisma.ProductUpdateWithoutOrderItemsInput, Prisma.ProductUncheckedUpdateWithoutOrderItemsInput>
create: Prisma.XOR<Prisma.ProductCreateWithoutOrderItemsInput, Prisma.ProductUncheckedCreateWithoutOrderItemsInput>
where?: Prisma.ProductWhereInput
}
export type ProductUpdateToOneWithWhereWithoutSalesInvoiceItemsInput = {
export type ProductUpdateToOneWithWhereWithoutOrderItemsInput = {
where?: Prisma.ProductWhereInput
data: Prisma.XOR<Prisma.ProductUpdateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedUpdateWithoutSalesInvoiceItemsInput>
data: Prisma.XOR<Prisma.ProductUpdateWithoutOrderItemsInput, Prisma.ProductUncheckedUpdateWithoutOrderItemsInput>
}
export type ProductUpdateWithoutSalesInvoiceItemsInput = {
export type ProductUpdateWithoutOrderItemsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -954,9 +1008,11 @@ export type ProductUpdateWithoutSalesInvoiceItemsInput = {
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutSalesInvoiceItemsInput = {
export type ProductUncheckedUpdateWithoutOrderItemsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -975,6 +1031,8 @@ export type ProductUncheckedUpdateWithoutSalesInvoiceItemsInput = {
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutVariantsInput = {
@@ -995,6 +1053,8 @@ export type ProductCreateWithoutVariantsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutVariantsInput = {
@@ -1016,6 +1076,8 @@ export type ProductUncheckedCreateWithoutVariantsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutVariantsInput = {
@@ -1052,6 +1114,8 @@ export type ProductUpdateWithoutVariantsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutVariantsInput = {
@@ -1073,6 +1137,8 @@ export type ProductUncheckedUpdateWithoutVariantsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutBrandInput = {
@@ -1093,6 +1159,8 @@ export type ProductCreateWithoutBrandInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutBrandInput = {
@@ -1114,6 +1182,8 @@ export type ProductUncheckedCreateWithoutBrandInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutBrandInput = {
@@ -1178,6 +1248,8 @@ export type ProductCreateWithoutCategoryInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutCategoryInput = {
@@ -1199,6 +1271,8 @@ export type ProductUncheckedCreateWithoutCategoryInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutCategoryInput = {
@@ -1245,6 +1319,8 @@ export type ProductCreateWithoutPurchaseReceiptItemsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutPurchaseReceiptItemsInput = {
@@ -1266,6 +1342,8 @@ export type ProductUncheckedCreateWithoutPurchaseReceiptItemsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutPurchaseReceiptItemsInput = {
@@ -1302,6 +1380,8 @@ export type ProductUpdateWithoutPurchaseReceiptItemsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutPurchaseReceiptItemsInput = {
@@ -1323,6 +1403,114 @@ export type ProductUncheckedUpdateWithoutPurchaseReceiptItemsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutSalesInvoiceItemsInput = {
name: string
description?: string | null
sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
salePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemCreateNestedManyWithoutProductInput
variants?: Prisma.ProductVariantCreateNestedManyWithoutProductInput
brand?: Prisma.ProductBrandCreateNestedOneWithoutProductsInput
category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutProductInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutSalesInvoiceItemsInput = {
id?: number
name: string
description?: string | null
sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
brandId?: number | null
categoryId?: number | null
salePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemUncheckedCreateNestedManyWithoutProductInput
variants?: Prisma.ProductVariantUncheckedCreateNestedManyWithoutProductInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutProductInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutSalesInvoiceItemsInput = {
where: Prisma.ProductWhereUniqueInput
create: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
}
export type ProductUpsertWithoutSalesInvoiceItemsInput = {
update: Prisma.XOR<Prisma.ProductUpdateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedUpdateWithoutSalesInvoiceItemsInput>
create: Prisma.XOR<Prisma.ProductCreateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedCreateWithoutSalesInvoiceItemsInput>
where?: Prisma.ProductWhereInput
}
export type ProductUpdateToOneWithWhereWithoutSalesInvoiceItemsInput = {
where?: Prisma.ProductWhereInput
data: Prisma.XOR<Prisma.ProductUpdateWithoutSalesInvoiceItemsInput, Prisma.ProductUncheckedUpdateWithoutSalesInvoiceItemsInput>
}
export type ProductUpdateWithoutSalesInvoiceItemsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
salePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemUpdateManyWithoutProductNestedInput
variants?: Prisma.ProductVariantUpdateManyWithoutProductNestedInput
brand?: Prisma.ProductBrandUpdateOneWithoutProductsNestedInput
category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUpdateManyWithoutProductNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutSalesInvoiceItemsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
brandId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
categoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
salePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemUncheckedUpdateManyWithoutProductNestedInput
variants?: Prisma.ProductVariantUncheckedUpdateManyWithoutProductNestedInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutProductNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutStockMovementsInput = {
@@ -1343,6 +1531,8 @@ export type ProductCreateWithoutStockMovementsInput = {
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutStockMovementsInput = {
@@ -1364,6 +1554,8 @@ export type ProductUncheckedCreateWithoutStockMovementsInput = {
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutStockMovementsInput = {
@@ -1400,6 +1592,8 @@ export type ProductUpdateWithoutStockMovementsInput = {
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutStockMovementsInput = {
@@ -1421,6 +1615,8 @@ export type ProductUncheckedUpdateWithoutStockMovementsInput = {
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutStockBalancesInput = {
@@ -1441,6 +1637,8 @@ export type ProductCreateWithoutStockBalancesInput = {
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutStockBalancesInput = {
@@ -1462,6 +1660,8 @@ export type ProductUncheckedCreateWithoutStockBalancesInput = {
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutStockBalancesInput = {
@@ -1498,6 +1698,8 @@ export type ProductUpdateWithoutStockBalancesInput = {
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutStockBalancesInput = {
@@ -1519,6 +1721,8 @@ export type ProductUncheckedUpdateWithoutStockBalancesInput = {
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutStockAdjustmentsInput = {
@@ -1539,6 +1743,8 @@ export type ProductCreateWithoutStockAdjustmentsInput = {
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutStockAdjustmentsInput = {
@@ -1560,6 +1766,8 @@ export type ProductUncheckedCreateWithoutStockAdjustmentsInput = {
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
stockReservations?: Prisma.StockReservationUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutStockAdjustmentsInput = {
@@ -1596,6 +1804,8 @@ export type ProductUpdateWithoutStockAdjustmentsInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutStockAdjustmentsInput = {
@@ -1617,6 +1827,114 @@ export type ProductUncheckedUpdateWithoutStockAdjustmentsInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateWithoutStockReservationsInput = {
name: string
description?: string | null
sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
salePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemCreateNestedManyWithoutProductInput
variants?: Prisma.ProductVariantCreateNestedManyWithoutProductInput
brand?: Prisma.ProductBrandCreateNestedOneWithoutProductsInput
category?: Prisma.ProductCategoryCreateNestedOneWithoutProductsInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemCreateNestedManyWithoutProductInput
stockAdjustments?: Prisma.StockAdjustmentCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemCreateNestedManyWithoutProductInput
}
export type ProductUncheckedCreateWithoutStockReservationsInput = {
id?: number
name: string
description?: string | null
sku?: string | null
barcode?: string | null
createdAt?: Date | string
updatedAt?: Date | string
deletedAt?: Date | string | null
brandId?: number | null
categoryId?: number | null
salePrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemUncheckedCreateNestedManyWithoutProductInput
variants?: Prisma.ProductVariantUncheckedCreateNestedManyWithoutProductInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedCreateNestedManyWithoutProductInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedCreateNestedManyWithoutProductInput
stockBalances?: Prisma.StockBalanceUncheckedCreateNestedManyWithoutProductInput
stockMovements?: Prisma.StockMovementUncheckedCreateNestedManyWithoutProductInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutProductInput
orderItems?: Prisma.OrderItemUncheckedCreateNestedManyWithoutProductInput
}
export type ProductCreateOrConnectWithoutStockReservationsInput = {
where: Prisma.ProductWhereUniqueInput
create: Prisma.XOR<Prisma.ProductCreateWithoutStockReservationsInput, Prisma.ProductUncheckedCreateWithoutStockReservationsInput>
}
export type ProductUpsertWithoutStockReservationsInput = {
update: Prisma.XOR<Prisma.ProductUpdateWithoutStockReservationsInput, Prisma.ProductUncheckedUpdateWithoutStockReservationsInput>
create: Prisma.XOR<Prisma.ProductCreateWithoutStockReservationsInput, Prisma.ProductUncheckedCreateWithoutStockReservationsInput>
where?: Prisma.ProductWhereInput
}
export type ProductUpdateToOneWithWhereWithoutStockReservationsInput = {
where?: Prisma.ProductWhereInput
data: Prisma.XOR<Prisma.ProductUpdateWithoutStockReservationsInput, Prisma.ProductUncheckedUpdateWithoutStockReservationsInput>
}
export type ProductUpdateWithoutStockReservationsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
salePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemUpdateManyWithoutProductNestedInput
variants?: Prisma.ProductVariantUpdateManyWithoutProductNestedInput
brand?: Prisma.ProductBrandUpdateOneWithoutProductsNestedInput
category?: Prisma.ProductCategoryUpdateOneWithoutProductsNestedInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUpdateManyWithoutProductNestedInput
stockAdjustments?: Prisma.StockAdjustmentUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutStockReservationsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sku?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
barcode?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
brandId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
categoryId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
salePrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
minimumStockAlertLevel?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
inventoryTransferItems?: Prisma.InventoryTransferItemUncheckedUpdateManyWithoutProductNestedInput
variants?: Prisma.ProductVariantUncheckedUpdateManyWithoutProductNestedInput
purchaseReceiptItems?: Prisma.PurchaseReceiptItemUncheckedUpdateManyWithoutProductNestedInput
stockAdjustments?: Prisma.StockAdjustmentUncheckedUpdateManyWithoutProductNestedInput
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductCreateManyBrandInput = {
@@ -1651,6 +1969,8 @@ export type ProductUpdateWithoutBrandInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutBrandInput = {
@@ -1672,6 +1992,8 @@ export type ProductUncheckedUpdateWithoutBrandInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateManyWithoutBrandInput = {
@@ -1720,6 +2042,8 @@ export type ProductUpdateWithoutCategoryInput = {
stockBalances?: Prisma.StockBalanceUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateWithoutCategoryInput = {
@@ -1741,6 +2065,8 @@ export type ProductUncheckedUpdateWithoutCategoryInput = {
stockBalances?: Prisma.StockBalanceUncheckedUpdateManyWithoutProductNestedInput
stockMovements?: Prisma.StockMovementUncheckedUpdateManyWithoutProductNestedInput
salesInvoiceItems?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput
stockReservations?: Prisma.StockReservationUncheckedUpdateManyWithoutProductNestedInput
orderItems?: Prisma.OrderItemUncheckedUpdateManyWithoutProductNestedInput
}
export type ProductUncheckedUpdateManyWithoutCategoryInput = {
@@ -1770,6 +2096,8 @@ export type ProductCountOutputType = {
stockBalances: number
stockMovements: number
salesInvoiceItems: number
stockReservations: number
orderItems: number
}
export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
@@ -1780,6 +2108,8 @@ export type ProductCountOutputTypeSelect<ExtArgs extends runtime.Types.Extension
stockBalances?: boolean | ProductCountOutputTypeCountStockBalancesArgs
stockMovements?: boolean | ProductCountOutputTypeCountStockMovementsArgs
salesInvoiceItems?: boolean | ProductCountOutputTypeCountSalesInvoiceItemsArgs
stockReservations?: boolean | ProductCountOutputTypeCountStockReservationsArgs
orderItems?: boolean | ProductCountOutputTypeCountOrderItemsArgs
}
/**
@@ -1841,6 +2171,20 @@ export type ProductCountOutputTypeCountSalesInvoiceItemsArgs<ExtArgs extends run
where?: Prisma.SalesInvoiceItemWhereInput
}
/**
* ProductCountOutputType without action
*/
export type ProductCountOutputTypeCountStockReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.StockReservationWhereInput
}
/**
* ProductCountOutputType without action
*/
export type ProductCountOutputTypeCountOrderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.OrderItemWhereInput
}
export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
@@ -1864,6 +2208,8 @@ export type ProductSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
stockBalances?: boolean | Prisma.Product$stockBalancesArgs<ExtArgs>
stockMovements?: boolean | Prisma.Product$stockMovementsArgs<ExtArgs>
salesInvoiceItems?: boolean | Prisma.Product$salesInvoiceItemsArgs<ExtArgs>
stockReservations?: boolean | Prisma.Product$stockReservationsArgs<ExtArgs>
orderItems?: boolean | Prisma.Product$orderItemsArgs<ExtArgs>
_count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["product"]>
@@ -1895,6 +2241,8 @@ export type ProductInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs
stockBalances?: boolean | Prisma.Product$stockBalancesArgs<ExtArgs>
stockMovements?: boolean | Prisma.Product$stockMovementsArgs<ExtArgs>
salesInvoiceItems?: boolean | Prisma.Product$salesInvoiceItemsArgs<ExtArgs>
stockReservations?: boolean | Prisma.Product$stockReservationsArgs<ExtArgs>
orderItems?: boolean | Prisma.Product$orderItemsArgs<ExtArgs>
_count?: boolean | Prisma.ProductCountOutputTypeDefaultArgs<ExtArgs>
}
@@ -1910,6 +2258,8 @@ export type $ProductPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
stockBalances: Prisma.$StockBalancePayload<ExtArgs>[]
stockMovements: Prisma.$StockMovementPayload<ExtArgs>[]
salesInvoiceItems: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
stockReservations: Prisma.$StockReservationPayload<ExtArgs>[]
orderItems: Prisma.$OrderItemPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
@@ -2273,6 +2623,8 @@ export interface Prisma__ProductClient<T, Null = never, ExtArgs extends runtime.
stockBalances<T extends Prisma.Product$stockBalancesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$stockBalancesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockBalancePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
stockMovements<T extends Prisma.Product$stockMovementsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$stockMovementsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockMovementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
salesInvoiceItems<T extends Prisma.Product$salesInvoiceItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$salesInvoiceItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
stockReservations<T extends Prisma.Product$stockReservationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$stockReservationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StockReservationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
orderItems<T extends Prisma.Product$orderItemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Product$orderItemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OrderItemPayload<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.
@@ -2862,6 +3214,54 @@ export type Product$salesInvoiceItemsArgs<ExtArgs extends runtime.Types.Extensio
distinct?: Prisma.SalesInvoiceItemScalarFieldEnum | Prisma.SalesInvoiceItemScalarFieldEnum[]
}
/**
* Product.stockReservations
*/
export type Product$stockReservationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the StockReservation
*/
select?: Prisma.StockReservationSelect<ExtArgs> | null
/**
* Omit specific fields from the StockReservation
*/
omit?: Prisma.StockReservationOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.StockReservationInclude<ExtArgs> | null
where?: Prisma.StockReservationWhereInput
orderBy?: Prisma.StockReservationOrderByWithRelationInput | Prisma.StockReservationOrderByWithRelationInput[]
cursor?: Prisma.StockReservationWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.StockReservationScalarFieldEnum | Prisma.StockReservationScalarFieldEnum[]
}
/**
* Product.orderItems
*/
export type Product$orderItemsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OrderItem
*/
select?: Prisma.OrderItemSelect<ExtArgs> | null
/**
* Omit specific fields from the OrderItem
*/
omit?: Prisma.OrderItemOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OrderItemInclude<ExtArgs> | null
where?: Prisma.OrderItemWhereInput
orderBy?: Prisma.OrderItemOrderByWithRelationInput | Prisma.OrderItemOrderByWithRelationInput[]
cursor?: Prisma.OrderItemWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.OrderItemScalarFieldEnum | Prisma.OrderItemScalarFieldEnum[]
}
/**
* Product without action
*/
@@ -29,8 +29,8 @@ export type AggregatePurchaseReceiptItem = {
export type PurchaseReceiptItemAvgAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
receiptId: number | null
productId: number | null
}
@@ -38,8 +38,8 @@ export type PurchaseReceiptItemAvgAggregateOutputType = {
export type PurchaseReceiptItemSumAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
receiptId: number | null
productId: number | null
}
@@ -47,8 +47,8 @@ export type PurchaseReceiptItemSumAggregateOutputType = {
export type PurchaseReceiptItemMinAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
receiptId: number | null
productId: number | null
description: string | null
@@ -58,8 +58,8 @@ export type PurchaseReceiptItemMinAggregateOutputType = {
export type PurchaseReceiptItemMaxAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
receiptId: number | null
productId: number | null
description: string | null
@@ -69,8 +69,8 @@ export type PurchaseReceiptItemMaxAggregateOutputType = {
export type PurchaseReceiptItemCountAggregateOutputType = {
id: number
count: number
fee: number
total: number
unitPrice: number
totalAmount: number
receiptId: number
productId: number
description: number
@@ -82,8 +82,8 @@ export type PurchaseReceiptItemCountAggregateOutputType = {
export type PurchaseReceiptItemAvgAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
receiptId?: true
productId?: true
}
@@ -91,8 +91,8 @@ export type PurchaseReceiptItemAvgAggregateInputType = {
export type PurchaseReceiptItemSumAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
receiptId?: true
productId?: true
}
@@ -100,8 +100,8 @@ export type PurchaseReceiptItemSumAggregateInputType = {
export type PurchaseReceiptItemMinAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
receiptId?: true
productId?: true
description?: true
@@ -111,8 +111,8 @@ export type PurchaseReceiptItemMinAggregateInputType = {
export type PurchaseReceiptItemMaxAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
receiptId?: true
productId?: true
description?: true
@@ -122,8 +122,8 @@ export type PurchaseReceiptItemMaxAggregateInputType = {
export type PurchaseReceiptItemCountAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
receiptId?: true
productId?: true
description?: true
@@ -220,8 +220,8 @@ export type PurchaseReceiptItemGroupByArgs<ExtArgs extends runtime.Types.Extensi
export type PurchaseReceiptItemGroupByOutputType = {
id: number
count: runtime.Decimal
fee: runtime.Decimal
total: runtime.Decimal
unitPrice: runtime.Decimal
totalAmount: runtime.Decimal
receiptId: number
productId: number
description: string | null
@@ -254,8 +254,8 @@ export type PurchaseReceiptItemWhereInput = {
NOT?: Prisma.PurchaseReceiptItemWhereInput | Prisma.PurchaseReceiptItemWhereInput[]
id?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
count?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
productId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
description?: Prisma.StringNullableFilter<"PurchaseReceiptItem"> | string | null
@@ -267,8 +267,8 @@ export type PurchaseReceiptItemWhereInput = {
export type PurchaseReceiptItemOrderByWithRelationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -284,8 +284,8 @@ export type PurchaseReceiptItemWhereUniqueInput = Prisma.AtLeast<{
OR?: Prisma.PurchaseReceiptItemWhereInput[]
NOT?: Prisma.PurchaseReceiptItemWhereInput | Prisma.PurchaseReceiptItemWhereInput[]
count?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
productId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
description?: Prisma.StringNullableFilter<"PurchaseReceiptItem"> | string | null
@@ -297,8 +297,8 @@ export type PurchaseReceiptItemWhereUniqueInput = Prisma.AtLeast<{
export type PurchaseReceiptItemOrderByWithAggregationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
description?: Prisma.SortOrderInput | Prisma.SortOrder
@@ -316,8 +316,8 @@ export type PurchaseReceiptItemScalarWhereWithAggregatesInput = {
NOT?: Prisma.PurchaseReceiptItemScalarWhereWithAggregatesInput | Prisma.PurchaseReceiptItemScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"PurchaseReceiptItem"> | number
count?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalWithAggregatesFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntWithAggregatesFilter<"PurchaseReceiptItem"> | number
productId?: Prisma.IntWithAggregatesFilter<"PurchaseReceiptItem"> | number
description?: Prisma.StringNullableWithAggregatesFilter<"PurchaseReceiptItem"> | string | null
@@ -326,8 +326,8 @@ export type PurchaseReceiptItemScalarWhereWithAggregatesInput = {
export type PurchaseReceiptItemCreateInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
product: Prisma.ProductCreateNestedOneWithoutPurchaseReceiptItemsInput
@@ -337,8 +337,8 @@ export type PurchaseReceiptItemCreateInput = {
export type PurchaseReceiptItemUncheckedCreateInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId: number
productId: number
description?: string | null
@@ -347,8 +347,8 @@ export type PurchaseReceiptItemUncheckedCreateInput = {
export type PurchaseReceiptItemUpdateInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
product?: Prisma.ProductUpdateOneRequiredWithoutPurchaseReceiptItemsNestedInput
@@ -358,8 +358,8 @@ export type PurchaseReceiptItemUpdateInput = {
export type PurchaseReceiptItemUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFieldUpdateOperationsInput | number
productId?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -369,8 +369,8 @@ export type PurchaseReceiptItemUncheckedUpdateInput = {
export type PurchaseReceiptItemCreateManyInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId: number
productId: number
description?: string | null
@@ -379,8 +379,8 @@ export type PurchaseReceiptItemCreateManyInput = {
export type PurchaseReceiptItemUpdateManyMutationInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
@@ -388,8 +388,8 @@ export type PurchaseReceiptItemUpdateManyMutationInput = {
export type PurchaseReceiptItemUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFieldUpdateOperationsInput | number
productId?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
@@ -415,8 +415,8 @@ export type PurchaseReceiptItemOrderByRelevanceInput = {
export type PurchaseReceiptItemCountOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
description?: Prisma.SortOrder
@@ -426,8 +426,8 @@ export type PurchaseReceiptItemCountOrderByAggregateInput = {
export type PurchaseReceiptItemAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
}
@@ -435,8 +435,8 @@ export type PurchaseReceiptItemAvgOrderByAggregateInput = {
export type PurchaseReceiptItemMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
description?: Prisma.SortOrder
@@ -446,8 +446,8 @@ export type PurchaseReceiptItemMaxOrderByAggregateInput = {
export type PurchaseReceiptItemMinOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
description?: Prisma.SortOrder
@@ -457,8 +457,8 @@ export type PurchaseReceiptItemMinOrderByAggregateInput = {
export type PurchaseReceiptItemSumOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
receiptId?: Prisma.SortOrder
productId?: Prisma.SortOrder
}
@@ -549,8 +549,8 @@ export type PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptNestedInput = {
export type PurchaseReceiptItemCreateWithoutProductInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
receipt: Prisma.PurchaseReceiptCreateNestedOneWithoutItemsInput
@@ -559,8 +559,8 @@ export type PurchaseReceiptItemCreateWithoutProductInput = {
export type PurchaseReceiptItemUncheckedCreateWithoutProductInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId: number
description?: string | null
createdAt?: Date | string
@@ -598,8 +598,8 @@ export type PurchaseReceiptItemScalarWhereInput = {
NOT?: Prisma.PurchaseReceiptItemScalarWhereInput | Prisma.PurchaseReceiptItemScalarWhereInput[]
id?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
count?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"PurchaseReceiptItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
productId?: Prisma.IntFilter<"PurchaseReceiptItem"> | number
description?: Prisma.StringNullableFilter<"PurchaseReceiptItem"> | string | null
@@ -608,8 +608,8 @@ export type PurchaseReceiptItemScalarWhereInput = {
export type PurchaseReceiptItemCreateWithoutReceiptInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
product: Prisma.ProductCreateNestedOneWithoutPurchaseReceiptItemsInput
@@ -618,8 +618,8 @@ export type PurchaseReceiptItemCreateWithoutReceiptInput = {
export type PurchaseReceiptItemUncheckedCreateWithoutReceiptInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
productId: number
description?: string | null
createdAt?: Date | string
@@ -654,8 +654,8 @@ export type PurchaseReceiptItemUpdateManyWithWhereWithoutReceiptInput = {
export type PurchaseReceiptItemCreateManyProductInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId: number
description?: string | null
createdAt?: Date | string
@@ -663,8 +663,8 @@ export type PurchaseReceiptItemCreateManyProductInput = {
export type PurchaseReceiptItemUpdateWithoutProductInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
receipt?: Prisma.PurchaseReceiptUpdateOneRequiredWithoutItemsNestedInput
@@ -673,8 +673,8 @@ export type PurchaseReceiptItemUpdateWithoutProductInput = {
export type PurchaseReceiptItemUncheckedUpdateWithoutProductInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -683,8 +683,8 @@ export type PurchaseReceiptItemUncheckedUpdateWithoutProductInput = {
export type PurchaseReceiptItemUncheckedUpdateManyWithoutProductInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
receiptId?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -693,8 +693,8 @@ export type PurchaseReceiptItemUncheckedUpdateManyWithoutProductInput = {
export type PurchaseReceiptItemCreateManyReceiptInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
productId: number
description?: string | null
createdAt?: Date | string
@@ -702,8 +702,8 @@ export type PurchaseReceiptItemCreateManyReceiptInput = {
export type PurchaseReceiptItemUpdateWithoutReceiptInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
product?: Prisma.ProductUpdateOneRequiredWithoutPurchaseReceiptItemsNestedInput
@@ -712,8 +712,8 @@ export type PurchaseReceiptItemUpdateWithoutReceiptInput = {
export type PurchaseReceiptItemUncheckedUpdateWithoutReceiptInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -722,8 +722,8 @@ export type PurchaseReceiptItemUncheckedUpdateWithoutReceiptInput = {
export type PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
@@ -734,8 +734,8 @@ export type PurchaseReceiptItemUncheckedUpdateManyWithoutReceiptInput = {
export type PurchaseReceiptItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
count?: boolean
fee?: boolean
total?: boolean
unitPrice?: boolean
totalAmount?: boolean
receiptId?: boolean
productId?: boolean
description?: boolean
@@ -749,15 +749,15 @@ export type PurchaseReceiptItemSelect<ExtArgs extends runtime.Types.Extensions.I
export type PurchaseReceiptItemSelectScalar = {
id?: boolean
count?: boolean
fee?: boolean
total?: boolean
unitPrice?: boolean
totalAmount?: boolean
receiptId?: boolean
productId?: boolean
description?: boolean
createdAt?: boolean
}
export type PurchaseReceiptItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "fee" | "total" | "receiptId" | "productId" | "description" | "createdAt", ExtArgs["result"]["purchaseReceiptItem"]>
export type PurchaseReceiptItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unitPrice" | "totalAmount" | "receiptId" | "productId" | "description" | "createdAt", ExtArgs["result"]["purchaseReceiptItem"]>
export type PurchaseReceiptItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
receipt?: boolean | Prisma.PurchaseReceiptDefaultArgs<ExtArgs>
@@ -772,8 +772,8 @@ export type $PurchaseReceiptItemPayload<ExtArgs extends runtime.Types.Extensions
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
count: runtime.Decimal
fee: runtime.Decimal
total: runtime.Decimal
unitPrice: runtime.Decimal
totalAmount: runtime.Decimal
receiptId: number
productId: number
description: string | null
@@ -1151,8 +1151,8 @@ export interface Prisma__PurchaseReceiptItemClient<T, Null = never, ExtArgs exte
export interface PurchaseReceiptItemFieldRefs {
readonly id: Prisma.FieldRef<"PurchaseReceiptItem", 'Int'>
readonly count: Prisma.FieldRef<"PurchaseReceiptItem", 'Decimal'>
readonly fee: Prisma.FieldRef<"PurchaseReceiptItem", 'Decimal'>
readonly total: Prisma.FieldRef<"PurchaseReceiptItem", 'Decimal'>
readonly unitPrice: Prisma.FieldRef<"PurchaseReceiptItem", 'Decimal'>
readonly totalAmount: Prisma.FieldRef<"PurchaseReceiptItem", 'Decimal'>
readonly receiptId: Prisma.FieldRef<"PurchaseReceiptItem", 'Int'>
readonly productId: Prisma.FieldRef<"PurchaseReceiptItem", 'Int'>
readonly description: Prisma.FieldRef<"PurchaseReceiptItem", 'String'>
@@ -654,6 +654,10 @@ export type PurchaseReceiptPaymentsUncheckedUpdateManyWithoutReceiptNestedInput
deleteMany?: Prisma.PurchaseReceiptPaymentsScalarWhereInput | Prisma.PurchaseReceiptPaymentsScalarWhereInput[]
}
export type EnumPaymentMethodTypeFieldUpdateOperationsInput = {
set?: $Enums.PaymentMethodType
}
export type EnumPaymentTypeFieldUpdateOperationsInput = {
set?: $Enums.PaymentType
}
+153 -29
View File
@@ -252,9 +252,10 @@ export type SalesInvoiceWhereInput = {
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
posAccountId?: Prisma.IntFilter<"SalesInvoice"> | number
items?: Prisma.SalesInvoiceItemListRelationFilter
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
posAccount?: Prisma.XOR<Prisma.PosAccountScalarRelationFilter, Prisma.PosAccountWhereInput>
items?: Prisma.SalesInvoiceItemListRelationFilter
salesInvoicePayments?: Prisma.SalesInvoicePaymentListRelationFilter
}
export type SalesInvoiceOrderByWithRelationInput = {
@@ -266,9 +267,10 @@ export type SalesInvoiceOrderByWithRelationInput = {
updatedAt?: Prisma.SortOrder
customerId?: Prisma.SortOrderInput | Prisma.SortOrder
posAccountId?: Prisma.SortOrder
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
customer?: Prisma.CustomerOrderByWithRelationInput
posAccount?: Prisma.PosAccountOrderByWithRelationInput
items?: Prisma.SalesInvoiceItemOrderByRelationAggregateInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentOrderByRelationAggregateInput
_relevance?: Prisma.SalesInvoiceOrderByRelevanceInput
}
@@ -284,9 +286,10 @@ export type SalesInvoiceWhereUniqueInput = Prisma.AtLeast<{
updatedAt?: Prisma.DateTimeFilter<"SalesInvoice"> | Date | string
customerId?: Prisma.IntNullableFilter<"SalesInvoice"> | number | null
posAccountId?: Prisma.IntFilter<"SalesInvoice"> | number
items?: Prisma.SalesInvoiceItemListRelationFilter
customer?: Prisma.XOR<Prisma.CustomerNullableScalarRelationFilter, Prisma.CustomerWhereInput> | null
posAccount?: Prisma.XOR<Prisma.PosAccountScalarRelationFilter, Prisma.PosAccountWhereInput>
items?: Prisma.SalesInvoiceItemListRelationFilter
salesInvoicePayments?: Prisma.SalesInvoicePaymentListRelationFilter
}, "id" | "code">
export type SalesInvoiceOrderByWithAggregationInput = {
@@ -325,9 +328,10 @@ export type SalesInvoiceCreateInput = {
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateInput = {
@@ -340,6 +344,7 @@ export type SalesInvoiceUncheckedCreateInput = {
customerId?: number | null
posAccountId: number
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUpdateInput = {
@@ -348,9 +353,10 @@ export type SalesInvoiceUpdateInput = {
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateInput = {
@@ -363,6 +369,7 @@ export type SalesInvoiceUncheckedUpdateInput = {
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceCreateManyInput = {
@@ -547,14 +554,6 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerNestedInput = {
deleteMany?: Prisma.SalesInvoiceScalarWhereInput | Prisma.SalesInvoiceScalarWhereInput[]
}
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null
increment?: number
decrement?: number
multiply?: number
divide?: number
}
export type SalesInvoiceCreateNestedOneWithoutItemsInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutItemsInput, Prisma.SalesInvoiceUncheckedCreateWithoutItemsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutItemsInput
@@ -569,14 +568,29 @@ export type SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput = {
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutItemsInput, Prisma.SalesInvoiceUpdateWithoutItemsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutItemsInput>
}
export type SalesInvoiceCreateNestedOneWithoutSalesInvoicePaymentsInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSalesInvoicePaymentsInput
connect?: Prisma.SalesInvoiceWhereUniqueInput
}
export type SalesInvoiceUpdateOneRequiredWithoutSalesInvoicePaymentsNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
connectOrCreate?: Prisma.SalesInvoiceCreateOrConnectWithoutSalesInvoicePaymentsInput
upsert?: Prisma.SalesInvoiceUpsertWithoutSalesInvoicePaymentsInput
connect?: Prisma.SalesInvoiceWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoiceUpdateToOneWithWhereWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput>, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
}
export type SalesInvoiceCreateWithoutPosAccountInput = {
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutPosAccountInput = {
@@ -588,6 +602,7 @@ export type SalesInvoiceUncheckedCreateWithoutPosAccountInput = {
updatedAt?: Date | string
customerId?: number | null
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutPosAccountInput = {
@@ -636,8 +651,9 @@ export type SalesInvoiceCreateWithoutCustomerInput = {
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
@@ -649,6 +665,7 @@ export type SalesInvoiceUncheckedCreateWithoutCustomerInput = {
updatedAt?: Date | string
posAccountId: number
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutCustomerInput = {
@@ -685,6 +702,7 @@ export type SalesInvoiceCreateWithoutItemsInput = {
updatedAt?: Date | string
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
@@ -696,6 +714,7 @@ export type SalesInvoiceUncheckedCreateWithoutItemsInput = {
updatedAt?: Date | string
customerId?: number | null
posAccountId: number
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutItemsInput = {
@@ -722,6 +741,7 @@ export type SalesInvoiceUpdateWithoutItemsInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
@@ -733,6 +753,69 @@ export type SalesInvoiceUncheckedUpdateWithoutItemsInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceCreateWithoutSalesInvoicePaymentsInput = {
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customer?: Prisma.CustomerCreateNestedOneWithoutSalesInvoicesInput
posAccount: Prisma.PosAccountCreateNestedOneWithoutSalesInvoicesInput
items?: Prisma.SalesInvoiceItemCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput = {
id?: number
code: string
totalAmount: runtime.Decimal | runtime.DecimalJsLike | number | string
description?: string | null
createdAt?: Date | string
updatedAt?: Date | string
customerId?: number | null
posAccountId: number
items?: Prisma.SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput
}
export type SalesInvoiceCreateOrConnectWithoutSalesInvoicePaymentsInput = {
where: Prisma.SalesInvoiceWhereUniqueInput
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
}
export type SalesInvoiceUpsertWithoutSalesInvoicePaymentsInput = {
update: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
create: Prisma.XOR<Prisma.SalesInvoiceCreateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedCreateWithoutSalesInvoicePaymentsInput>
where?: Prisma.SalesInvoiceWhereInput
}
export type SalesInvoiceUpdateToOneWithWhereWithoutSalesInvoicePaymentsInput = {
where?: Prisma.SalesInvoiceWhereInput
data: Prisma.XOR<Prisma.SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput, Prisma.SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput>
}
export type SalesInvoiceUpdateWithoutSalesInvoicePaymentsInput = {
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutSalesInvoicePaymentsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
code?: Prisma.StringFieldUpdateOperationsInput | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceCreateManyPosAccountInput = {
@@ -751,8 +834,9 @@ export type SalesInvoiceUpdateWithoutPosAccountInput = {
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
customer?: Prisma.CustomerUpdateOneWithoutSalesInvoicesNestedInput
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutPosAccountInput = {
@@ -764,6 +848,7 @@ export type SalesInvoiceUncheckedUpdateWithoutPosAccountInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
customerId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateManyWithoutPosAccountInput = {
@@ -792,8 +877,9 @@ export type SalesInvoiceUpdateWithoutCustomerInput = {
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
posAccount?: Prisma.PosAccountUpdateOneRequiredWithoutSalesInvoicesNestedInput
items?: Prisma.SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
@@ -805,6 +891,7 @@ export type SalesInvoiceUncheckedUpdateWithoutCustomerInput = {
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
posAccountId?: Prisma.IntFieldUpdateOperationsInput | number
items?: Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput
salesInvoicePayments?: Prisma.SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceNestedInput
}
export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
@@ -824,10 +911,12 @@ export type SalesInvoiceUncheckedUpdateManyWithoutCustomerInput = {
export type SalesInvoiceCountOutputType = {
items: number
salesInvoicePayments: number
}
export type SalesInvoiceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
items?: boolean | SalesInvoiceCountOutputTypeCountItemsArgs
salesInvoicePayments?: boolean | SalesInvoiceCountOutputTypeCountSalesInvoicePaymentsArgs
}
/**
@@ -847,6 +936,13 @@ export type SalesInvoiceCountOutputTypeCountItemsArgs<ExtArgs extends runtime.Ty
where?: Prisma.SalesInvoiceItemWhereInput
}
/**
* SalesInvoiceCountOutputType without action
*/
export type SalesInvoiceCountOutputTypeCountSalesInvoicePaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.SalesInvoicePaymentWhereInput
}
export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
@@ -857,9 +953,10 @@ export type SalesInvoiceSelect<ExtArgs extends runtime.Types.Extensions.Internal
updatedAt?: boolean
customerId?: boolean
posAccountId?: boolean
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
posAccount?: boolean | Prisma.PosAccountDefaultArgs<ExtArgs>
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
salesInvoicePayments?: boolean | Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["salesInvoice"]>
@@ -878,18 +975,20 @@ export type SalesInvoiceSelectScalar = {
export type SalesInvoiceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "totalAmount" | "description" | "createdAt" | "updatedAt" | "customerId" | "posAccountId", ExtArgs["result"]["salesInvoice"]>
export type SalesInvoiceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
customer?: boolean | Prisma.SalesInvoice$customerArgs<ExtArgs>
posAccount?: boolean | Prisma.PosAccountDefaultArgs<ExtArgs>
items?: boolean | Prisma.SalesInvoice$itemsArgs<ExtArgs>
salesInvoicePayments?: boolean | Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>
_count?: boolean | Prisma.SalesInvoiceCountOutputTypeDefaultArgs<ExtArgs>
}
export type $SalesInvoicePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "SalesInvoice"
objects: {
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
customer: Prisma.$CustomerPayload<ExtArgs> | null
posAccount: Prisma.$PosAccountPayload<ExtArgs>
items: Prisma.$SalesInvoiceItemPayload<ExtArgs>[]
salesInvoicePayments: Prisma.$SalesInvoicePaymentPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
@@ -1240,9 +1339,10 @@ readonly fields: SalesInvoiceFieldRefs;
*/
export interface Prisma__SalesInvoiceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
customer<T extends Prisma.SalesInvoice$customerArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$customerArgs<ExtArgs>>): Prisma.Prisma__CustomerClient<runtime.Types.Result.GetResult<Prisma.$CustomerPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
posAccount<T extends Prisma.PosAccountDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PosAccountDefaultArgs<ExtArgs>>): Prisma.Prisma__PosAccountClient<runtime.Types.Result.GetResult<Prisma.$PosAccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
items<T extends Prisma.SalesInvoice$itemsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$itemsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoiceItemPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
salesInvoicePayments<T extends Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoice$salesInvoicePaymentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
@@ -1622,6 +1722,25 @@ export type SalesInvoiceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.
limit?: number
}
/**
* SalesInvoice.customer
*/
export type SalesInvoice$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
}
/**
* SalesInvoice.items
*/
@@ -1647,22 +1766,27 @@ export type SalesInvoice$itemsArgs<ExtArgs extends runtime.Types.Extensions.Inte
}
/**
* SalesInvoice.customer
* SalesInvoice.salesInvoicePayments
*/
export type SalesInvoice$customerArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
export type SalesInvoice$salesInvoicePaymentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Customer
* Select specific fields to fetch from the SalesInvoicePayment
*/
select?: Prisma.CustomerSelect<ExtArgs> | null
select?: Prisma.SalesInvoicePaymentSelect<ExtArgs> | null
/**
* Omit specific fields from the Customer
* Omit specific fields from the SalesInvoicePayment
*/
omit?: Prisma.CustomerOmit<ExtArgs> | null
omit?: Prisma.SalesInvoicePaymentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CustomerInclude<ExtArgs> | null
where?: Prisma.CustomerWhereInput
include?: Prisma.SalesInvoicePaymentInclude<ExtArgs> | null
where?: Prisma.SalesInvoicePaymentWhereInput
orderBy?: Prisma.SalesInvoicePaymentOrderByWithRelationInput | Prisma.SalesInvoicePaymentOrderByWithRelationInput[]
cursor?: Prisma.SalesInvoicePaymentWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.SalesInvoicePaymentScalarFieldEnum | Prisma.SalesInvoicePaymentScalarFieldEnum[]
}
/**
+190 -190
View File
@@ -29,8 +29,8 @@ export type AggregateSalesInvoiceItem = {
export type SalesInvoiceItemAvgAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
invoiceId: number | null
productId: number | null
}
@@ -38,8 +38,8 @@ export type SalesInvoiceItemAvgAggregateOutputType = {
export type SalesInvoiceItemSumAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
invoiceId: number | null
productId: number | null
}
@@ -47,8 +47,8 @@ export type SalesInvoiceItemSumAggregateOutputType = {
export type SalesInvoiceItemMinAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
createdAt: Date | null
invoiceId: number | null
productId: number | null
@@ -57,8 +57,8 @@ export type SalesInvoiceItemMinAggregateOutputType = {
export type SalesInvoiceItemMaxAggregateOutputType = {
id: number | null
count: runtime.Decimal | null
fee: runtime.Decimal | null
total: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalAmount: runtime.Decimal | null
createdAt: Date | null
invoiceId: number | null
productId: number | null
@@ -67,8 +67,8 @@ export type SalesInvoiceItemMaxAggregateOutputType = {
export type SalesInvoiceItemCountAggregateOutputType = {
id: number
count: number
fee: number
total: number
unitPrice: number
totalAmount: number
createdAt: number
invoiceId: number
productId: number
@@ -79,8 +79,8 @@ export type SalesInvoiceItemCountAggregateOutputType = {
export type SalesInvoiceItemAvgAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
invoiceId?: true
productId?: true
}
@@ -88,8 +88,8 @@ export type SalesInvoiceItemAvgAggregateInputType = {
export type SalesInvoiceItemSumAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
invoiceId?: true
productId?: true
}
@@ -97,8 +97,8 @@ export type SalesInvoiceItemSumAggregateInputType = {
export type SalesInvoiceItemMinAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
createdAt?: true
invoiceId?: true
productId?: true
@@ -107,8 +107,8 @@ export type SalesInvoiceItemMinAggregateInputType = {
export type SalesInvoiceItemMaxAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
createdAt?: true
invoiceId?: true
productId?: true
@@ -117,8 +117,8 @@ export type SalesInvoiceItemMaxAggregateInputType = {
export type SalesInvoiceItemCountAggregateInputType = {
id?: true
count?: true
fee?: true
total?: true
unitPrice?: true
totalAmount?: true
createdAt?: true
invoiceId?: true
productId?: true
@@ -214,8 +214,8 @@ export type SalesInvoiceItemGroupByArgs<ExtArgs extends runtime.Types.Extensions
export type SalesInvoiceItemGroupByOutputType = {
id: number
count: runtime.Decimal
fee: runtime.Decimal
total: runtime.Decimal
unitPrice: runtime.Decimal
totalAmount: runtime.Decimal
createdAt: Date
invoiceId: number
productId: number
@@ -247,8 +247,8 @@ export type SalesInvoiceItemWhereInput = {
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
@@ -259,8 +259,8 @@ export type SalesInvoiceItemWhereInput = {
export type SalesInvoiceItemOrderByWithRelationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
@@ -274,8 +274,8 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
OR?: Prisma.SalesInvoiceItemWhereInput[]
NOT?: Prisma.SalesInvoiceItemWhereInput | Prisma.SalesInvoiceItemWhereInput[]
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
@@ -286,8 +286,8 @@ export type SalesInvoiceItemWhereUniqueInput = Prisma.AtLeast<{
export type SalesInvoiceItemOrderByWithAggregationInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
@@ -304,8 +304,8 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
NOT?: Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput | Prisma.SalesInvoiceItemScalarWhereWithAggregatesInput[]
id?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
count?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalWithAggregatesFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
productId?: Prisma.IntWithAggregatesFilter<"SalesInvoiceItem"> | number
@@ -313,8 +313,8 @@ export type SalesInvoiceItemScalarWhereWithAggregatesInput = {
export type SalesInvoiceItemCreateInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput
@@ -323,8 +323,8 @@ export type SalesInvoiceItemCreateInput = {
export type SalesInvoiceItemUncheckedCreateInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
productId: number
@@ -332,8 +332,8 @@ export type SalesInvoiceItemUncheckedCreateInput = {
export type SalesInvoiceItemUpdateInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput
@@ -342,8 +342,8 @@ export type SalesInvoiceItemUpdateInput = {
export type SalesInvoiceItemUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
productId?: Prisma.IntFieldUpdateOperationsInput | number
@@ -352,8 +352,8 @@ export type SalesInvoiceItemUncheckedUpdateInput = {
export type SalesInvoiceItemCreateManyInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
productId: number
@@ -361,16 +361,16 @@ export type SalesInvoiceItemCreateManyInput = {
export type SalesInvoiceItemUpdateManyMutationInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type SalesInvoiceItemUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
productId?: Prisma.IntFieldUpdateOperationsInput | number
@@ -389,8 +389,8 @@ export type SalesInvoiceItemOrderByRelationAggregateInput = {
export type SalesInvoiceItemCountOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
@@ -399,8 +399,8 @@ export type SalesInvoiceItemCountOrderByAggregateInput = {
export type SalesInvoiceItemAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
}
@@ -408,8 +408,8 @@ export type SalesInvoiceItemAvgOrderByAggregateInput = {
export type SalesInvoiceItemMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
@@ -418,8 +418,8 @@ export type SalesInvoiceItemMaxOrderByAggregateInput = {
export type SalesInvoiceItemMinOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
@@ -428,54 +428,12 @@ export type SalesInvoiceItemMinOrderByAggregateInput = {
export type SalesInvoiceItemSumOrderByAggregateInput = {
id?: Prisma.SortOrder
count?: Prisma.SortOrder
fee?: Prisma.SortOrder
total?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalAmount?: Prisma.SortOrder
invoiceId?: Prisma.SortOrder
productId?: Prisma.SortOrder
}
export type SalesInvoiceItemCreateNestedManyWithoutInvoiceInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
}
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
}
export type SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
}
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
}
export type SalesInvoiceItemCreateNestedManyWithoutProductInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutProductInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput> | Prisma.SalesInvoiceItemCreateWithoutProductInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutProductInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutProductInput[]
@@ -518,66 +476,52 @@ export type SalesInvoiceItemUncheckedUpdateManyWithoutProductNestedInput = {
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
}
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput
export type SalesInvoiceItemCreateNestedManyWithoutInvoiceInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
}
export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
productId: number
export type SalesInvoiceItemUncheckedCreateNestedManyWithoutInvoiceInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
}
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemWhereUniqueInput
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput>
export type SalesInvoiceItemUpdateManyWithoutInvoiceNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
}
export type SalesInvoiceItemCreateManyInvoiceInputEnvelope = {
data: Prisma.SalesInvoiceItemCreateManyInvoiceInput | Prisma.SalesInvoiceItemCreateManyInvoiceInput[]
skipDuplicates?: boolean
}
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemWhereUniqueInput
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput>
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput>
}
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemWhereUniqueInput
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput>
}
export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemScalarWhereInput
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput>
}
export type SalesInvoiceItemScalarWhereInput = {
AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceNestedInput = {
create?: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoiceItemCreateWithoutInvoiceInput[] | Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput[]
connectOrCreate?: Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoiceItemCreateOrConnectWithoutInvoiceInput[]
upsert?: Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput[]
createMany?: Prisma.SalesInvoiceItemCreateManyInvoiceInputEnvelope
set?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
disconnect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
delete?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
connect?: Prisma.SalesInvoiceItemWhereUniqueInput | Prisma.SalesInvoiceItemWhereUniqueInput[]
update?: Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput[]
updateMany?: Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput | Prisma.SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput[]
deleteMany?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
}
export type SalesInvoiceItemCreateWithoutProductInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutItemsInput
}
@@ -585,8 +529,8 @@ export type SalesInvoiceItemCreateWithoutProductInput = {
export type SalesInvoiceItemUncheckedCreateWithoutProductInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
}
@@ -617,54 +561,75 @@ export type SalesInvoiceItemUpdateManyWithWhereWithoutProductInput = {
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutProductInput>
}
export type SalesInvoiceItemCreateManyInvoiceInput = {
export type SalesInvoiceItemScalarWhereInput = {
AND?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
OR?: Prisma.SalesInvoiceItemScalarWhereInput[]
NOT?: Prisma.SalesInvoiceItemScalarWhereInput | Prisma.SalesInvoiceItemScalarWhereInput[]
id?: Prisma.IntFilter<"SalesInvoiceItem"> | number
count?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFilter<"SalesInvoiceItem"> | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFilter<"SalesInvoiceItem"> | Date | string
invoiceId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
productId?: Prisma.IntFilter<"SalesInvoiceItem"> | number
}
export type SalesInvoiceItemCreateWithoutInvoiceInput = {
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
product: Prisma.ProductCreateNestedOneWithoutSalesInvoiceItemsInput
}
export type SalesInvoiceItemUncheckedCreateWithoutInvoiceInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
productId: number
}
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput
export type SalesInvoiceItemCreateOrConnectWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemWhereUniqueInput
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput>
}
export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
export type SalesInvoiceItemCreateManyInvoiceInputEnvelope = {
data: Prisma.SalesInvoiceItemCreateManyInvoiceInput | Prisma.SalesInvoiceItemCreateManyInvoiceInput[]
skipDuplicates?: boolean
}
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
export type SalesInvoiceItemUpsertWithWhereUniqueWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemWhereUniqueInput
update: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput>
create: Prisma.XOR<Prisma.SalesInvoiceItemCreateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedCreateWithoutInvoiceInput>
}
export type SalesInvoiceItemUpdateWithWhereUniqueWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemWhereUniqueInput
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateWithoutInvoiceInput, Prisma.SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput>
}
export type SalesInvoiceItemUpdateManyWithWhereWithoutInvoiceInput = {
where: Prisma.SalesInvoiceItemScalarWhereInput
data: Prisma.XOR<Prisma.SalesInvoiceItemUpdateManyMutationInput, Prisma.SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput>
}
export type SalesInvoiceItemCreateManyProductInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
total: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
invoiceId: number
}
export type SalesInvoiceItemUpdateWithoutProductInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutItemsNestedInput
}
@@ -672,8 +637,8 @@ export type SalesInvoiceItemUpdateWithoutProductInput = {
export type SalesInvoiceItemUncheckedUpdateWithoutProductInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
}
@@ -681,19 +646,54 @@ export type SalesInvoiceItemUncheckedUpdateWithoutProductInput = {
export type SalesInvoiceItemUncheckedUpdateManyWithoutProductInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
total?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
invoiceId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type SalesInvoiceItemCreateManyInvoiceInput = {
id?: number
count: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Date | string
productId: number
}
export type SalesInvoiceItemUpdateWithoutInvoiceInput = {
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
product?: Prisma.ProductUpdateOneRequiredWithoutSalesInvoiceItemsNestedInput
}
export type SalesInvoiceItemUncheckedUpdateWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type SalesInvoiceItemUncheckedUpdateManyWithoutInvoiceInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number
count?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
totalAmount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
productId?: Prisma.IntFieldUpdateOperationsInput | number
}
export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
count?: boolean
fee?: boolean
total?: boolean
unitPrice?: boolean
totalAmount?: boolean
createdAt?: boolean
invoiceId?: boolean
productId?: boolean
@@ -706,14 +706,14 @@ export type SalesInvoiceItemSelect<ExtArgs extends runtime.Types.Extensions.Inte
export type SalesInvoiceItemSelectScalar = {
id?: boolean
count?: boolean
fee?: boolean
total?: boolean
unitPrice?: boolean
totalAmount?: boolean
createdAt?: boolean
invoiceId?: boolean
productId?: boolean
}
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "fee" | "total" | "createdAt" | "invoiceId" | "productId", ExtArgs["result"]["salesInvoiceItem"]>
export type SalesInvoiceItemOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "count" | "unitPrice" | "totalAmount" | "createdAt" | "invoiceId" | "productId", ExtArgs["result"]["salesInvoiceItem"]>
export type SalesInvoiceItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
product?: boolean | Prisma.ProductDefaultArgs<ExtArgs>
@@ -728,8 +728,8 @@ export type $SalesInvoiceItemPayload<ExtArgs extends runtime.Types.Extensions.In
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: number
count: runtime.Decimal
fee: runtime.Decimal
total: runtime.Decimal
unitPrice: runtime.Decimal
totalAmount: runtime.Decimal
createdAt: Date
invoiceId: number
productId: number
@@ -1106,8 +1106,8 @@ export interface Prisma__SalesInvoiceItemClient<T, Null = never, ExtArgs extends
export interface SalesInvoiceItemFieldRefs {
readonly id: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
readonly count: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly fee: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly total: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly unitPrice: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly totalAmount: Prisma.FieldRef<"SalesInvoiceItem", 'Decimal'>
readonly createdAt: Prisma.FieldRef<"SalesInvoiceItem", 'DateTime'>
readonly invoiceId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
readonly productId: Prisma.FieldRef<"SalesInvoiceItem", 'Int'>
File diff suppressed because it is too large Load Diff
+64 -64
View File
@@ -29,7 +29,7 @@ export type AggregateStockMovement = {
export type StockMovementAvgAggregateOutputType = {
id: number | null
quantity: runtime.Decimal | null
fee: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalCost: runtime.Decimal | null
productId: number | null
inventoryId: number | null
@@ -43,7 +43,7 @@ export type StockMovementAvgAggregateOutputType = {
export type StockMovementSumAggregateOutputType = {
id: number | null
quantity: runtime.Decimal | null
fee: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalCost: runtime.Decimal | null
productId: number | null
inventoryId: number | null
@@ -58,7 +58,7 @@ export type StockMovementMinAggregateOutputType = {
id: number | null
type: $Enums.MovementType | null
quantity: runtime.Decimal | null
fee: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalCost: runtime.Decimal | null
referenceType: $Enums.MovementReferenceType | null
referenceId: string | null
@@ -76,7 +76,7 @@ export type StockMovementMaxAggregateOutputType = {
id: number | null
type: $Enums.MovementType | null
quantity: runtime.Decimal | null
fee: runtime.Decimal | null
unitPrice: runtime.Decimal | null
totalCost: runtime.Decimal | null
referenceType: $Enums.MovementReferenceType | null
referenceId: string | null
@@ -94,7 +94,7 @@ export type StockMovementCountAggregateOutputType = {
id: number
type: number
quantity: number
fee: number
unitPrice: number
totalCost: number
referenceType: number
referenceId: number
@@ -113,7 +113,7 @@ export type StockMovementCountAggregateOutputType = {
export type StockMovementAvgAggregateInputType = {
id?: true
quantity?: true
fee?: true
unitPrice?: true
totalCost?: true
productId?: true
inventoryId?: true
@@ -127,7 +127,7 @@ export type StockMovementAvgAggregateInputType = {
export type StockMovementSumAggregateInputType = {
id?: true
quantity?: true
fee?: true
unitPrice?: true
totalCost?: true
productId?: true
inventoryId?: true
@@ -142,7 +142,7 @@ export type StockMovementMinAggregateInputType = {
id?: true
type?: true
quantity?: true
fee?: true
unitPrice?: true
totalCost?: true
referenceType?: true
referenceId?: true
@@ -160,7 +160,7 @@ export type StockMovementMaxAggregateInputType = {
id?: true
type?: true
quantity?: true
fee?: true
unitPrice?: true
totalCost?: true
referenceType?: true
referenceId?: true
@@ -178,7 +178,7 @@ export type StockMovementCountAggregateInputType = {
id?: true
type?: true
quantity?: true
fee?: true
unitPrice?: true
totalCost?: true
referenceType?: true
referenceId?: true
@@ -283,7 +283,7 @@ export type StockMovementGroupByOutputType = {
id: number
type: $Enums.MovementType
quantity: runtime.Decimal
fee: runtime.Decimal
unitPrice: runtime.Decimal
totalCost: runtime.Decimal
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -324,7 +324,7 @@ export type StockMovementWhereInput = {
id?: Prisma.IntFilter<"StockMovement"> | number
type?: Prisma.EnumMovementTypeFilter<"StockMovement"> | $Enums.MovementType
quantity?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType?: Prisma.EnumMovementReferenceTypeFilter<"StockMovement"> | $Enums.MovementReferenceType
referenceId?: Prisma.StringFilter<"StockMovement"> | string
@@ -347,7 +347,7 @@ export type StockMovementOrderByWithRelationInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
referenceType?: Prisma.SortOrder
referenceId?: Prisma.SortOrder
@@ -374,7 +374,7 @@ export type StockMovementWhereUniqueInput = Prisma.AtLeast<{
NOT?: Prisma.StockMovementWhereInput | Prisma.StockMovementWhereInput[]
type?: Prisma.EnumMovementTypeFilter<"StockMovement"> | $Enums.MovementType
quantity?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType?: Prisma.EnumMovementReferenceTypeFilter<"StockMovement"> | $Enums.MovementReferenceType
referenceId?: Prisma.StringFilter<"StockMovement"> | string
@@ -397,7 +397,7 @@ export type StockMovementOrderByWithAggregationInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
referenceType?: Prisma.SortOrder
referenceId?: Prisma.SortOrder
@@ -423,7 +423,7 @@ export type StockMovementScalarWhereWithAggregatesInput = {
id?: Prisma.IntWithAggregatesFilter<"StockMovement"> | number
type?: Prisma.EnumMovementTypeWithAggregatesFilter<"StockMovement"> | $Enums.MovementType
quantity?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost?: Prisma.DecimalWithAggregatesFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType?: Prisma.EnumMovementReferenceTypeWithAggregatesFilter<"StockMovement"> | $Enums.MovementReferenceType
referenceId?: Prisma.StringWithAggregatesFilter<"StockMovement"> | string
@@ -440,7 +440,7 @@ export type StockMovementScalarWhereWithAggregatesInput = {
export type StockMovementCreateInput = {
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -458,7 +458,7 @@ export type StockMovementUncheckedCreateInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -475,7 +475,7 @@ export type StockMovementUncheckedCreateInput = {
export type StockMovementUpdateInput = {
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: 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
@@ -493,7 +493,7 @@ export type StockMovementUncheckedUpdateInput = {
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
unitPrice?: 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
@@ -511,7 +511,7 @@ export type StockMovementCreateManyInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -528,7 +528,7 @@ export type StockMovementCreateManyInput = {
export type StockMovementUpdateManyMutationInput = {
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: 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
@@ -541,7 +541,7 @@ export type StockMovementUncheckedUpdateManyInput = {
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
unitPrice?: 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
@@ -575,7 +575,7 @@ export type StockMovementCountOrderByAggregateInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
referenceType?: Prisma.SortOrder
referenceId?: Prisma.SortOrder
@@ -592,7 +592,7 @@ export type StockMovementCountOrderByAggregateInput = {
export type StockMovementAvgOrderByAggregateInput = {
id?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
productId?: Prisma.SortOrder
inventoryId?: Prisma.SortOrder
@@ -607,7 +607,7 @@ export type StockMovementMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
referenceType?: Prisma.SortOrder
referenceId?: Prisma.SortOrder
@@ -625,7 +625,7 @@ export type StockMovementMinOrderByAggregateInput = {
id?: Prisma.SortOrder
type?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
referenceType?: Prisma.SortOrder
referenceId?: Prisma.SortOrder
@@ -642,7 +642,7 @@ export type StockMovementMinOrderByAggregateInput = {
export type StockMovementSumOrderByAggregateInput = {
id?: Prisma.SortOrder
quantity?: Prisma.SortOrder
fee?: Prisma.SortOrder
unitPrice?: Prisma.SortOrder
totalCost?: Prisma.SortOrder
productId?: Prisma.SortOrder
inventoryId?: Prisma.SortOrder
@@ -874,7 +874,7 @@ export type StockMovementUncheckedUpdateManyWithoutSupplierNestedInput = {
export type StockMovementCreateWithoutCounterInventoryInput = {
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -891,7 +891,7 @@ export type StockMovementUncheckedCreateWithoutCounterInventoryInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -917,7 +917,7 @@ export type StockMovementCreateManyCounterInventoryInputEnvelope = {
export type StockMovementCreateWithoutInventoryInput = {
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -934,7 +934,7 @@ export type StockMovementUncheckedCreateWithoutInventoryInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -980,7 +980,7 @@ export type StockMovementScalarWhereInput = {
id?: Prisma.IntFilter<"StockMovement"> | number
type?: Prisma.EnumMovementTypeFilter<"StockMovement"> | $Enums.MovementType
quantity?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost?: Prisma.DecimalFilter<"StockMovement"> | runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType?: Prisma.EnumMovementReferenceTypeFilter<"StockMovement"> | $Enums.MovementReferenceType
referenceId?: Prisma.StringFilter<"StockMovement"> | string
@@ -1013,7 +1013,7 @@ export type StockMovementUpdateManyWithWhereWithoutInventoryInput = {
export type StockMovementCreateWithoutCustomerInput = {
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1030,7 +1030,7 @@ export type StockMovementUncheckedCreateWithoutCustomerInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1072,7 +1072,7 @@ export type StockMovementUpdateManyWithWhereWithoutCustomerInput = {
export type StockMovementCreateWithoutProductInput = {
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1089,7 +1089,7 @@ export type StockMovementUncheckedCreateWithoutProductInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1131,7 +1131,7 @@ export type StockMovementUpdateManyWithWhereWithoutProductInput = {
export type StockMovementCreateWithoutSupplierInput = {
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1148,7 +1148,7 @@ export type StockMovementUncheckedCreateWithoutSupplierInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1191,7 +1191,7 @@ export type StockMovementCreateManyCounterInventoryInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1208,7 +1208,7 @@ export type StockMovementCreateManyInventoryInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1224,7 +1224,7 @@ export type StockMovementCreateManyInventoryInput = {
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
unitPrice?: 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
@@ -1241,7 +1241,7 @@ 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
unitPrice?: 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
@@ -1258,7 +1258,7 @@ 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
unitPrice?: 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
@@ -1274,7 +1274,7 @@ export type StockMovementUncheckedUpdateManyWithoutCounterInventoryInput = {
export type StockMovementUpdateWithoutInventoryInput = {
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: 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
@@ -1291,7 +1291,7 @@ export type StockMovementUncheckedUpdateWithoutInventoryInput = {
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
unitPrice?: 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
@@ -1308,7 +1308,7 @@ export type StockMovementUncheckedUpdateManyWithoutInventoryInput = {
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
unitPrice?: 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
@@ -1325,7 +1325,7 @@ export type StockMovementCreateManyCustomerInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1341,7 +1341,7 @@ export type StockMovementCreateManyCustomerInput = {
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
unitPrice?: 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
@@ -1358,7 +1358,7 @@ 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
unitPrice?: 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
@@ -1375,7 +1375,7 @@ 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
unitPrice?: 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
@@ -1392,7 +1392,7 @@ export type StockMovementCreateManyProductInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1408,7 +1408,7 @@ export type StockMovementCreateManyProductInput = {
export type StockMovementUpdateWithoutProductInput = {
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: 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
@@ -1425,7 +1425,7 @@ export type StockMovementUncheckedUpdateWithoutProductInput = {
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
unitPrice?: 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
@@ -1442,7 +1442,7 @@ export type StockMovementUncheckedUpdateManyWithoutProductInput = {
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
unitPrice?: 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
@@ -1459,7 +1459,7 @@ export type StockMovementCreateManySupplierInput = {
id?: number
type: $Enums.MovementType
quantity: runtime.Decimal | runtime.DecimalJsLike | number | string
fee: runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice: runtime.Decimal | runtime.DecimalJsLike | number | string
totalCost: runtime.Decimal | runtime.DecimalJsLike | number | string
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1475,7 +1475,7 @@ export type StockMovementCreateManySupplierInput = {
export type StockMovementUpdateWithoutSupplierInput = {
type?: Prisma.EnumMovementTypeFieldUpdateOperationsInput | $Enums.MovementType
quantity?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
fee?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
unitPrice?: 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
@@ -1492,7 +1492,7 @@ export type StockMovementUncheckedUpdateWithoutSupplierInput = {
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
unitPrice?: 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
@@ -1509,7 +1509,7 @@ export type StockMovementUncheckedUpdateManyWithoutSupplierInput = {
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
unitPrice?: 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
@@ -1528,7 +1528,7 @@ export type StockMovementSelect<ExtArgs extends runtime.Types.Extensions.Interna
id?: boolean
type?: boolean
quantity?: boolean
fee?: boolean
unitPrice?: boolean
totalCost?: boolean
referenceType?: boolean
referenceId?: boolean
@@ -1553,7 +1553,7 @@ export type StockMovementSelectScalar = {
id?: boolean
type?: boolean
quantity?: boolean
fee?: boolean
unitPrice?: boolean
totalCost?: boolean
referenceType?: boolean
referenceId?: boolean
@@ -1567,7 +1567,7 @@ export type StockMovementSelectScalar = {
customerId?: 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" | "supplierId" | "remainedInStock" | "counterInventoryId" | "customerId", ExtArgs["result"]["stockMovement"]>
export type StockMovementOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "quantity" | "unitPrice" | "totalCost" | "referenceType" | "referenceId" | "createdAt" | "productId" | "inventoryId" | "avgCost" | "supplierId" | "remainedInStock" | "counterInventoryId" | "customerId", ExtArgs["result"]["stockMovement"]>
export type StockMovementInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
counterInventory?: boolean | Prisma.StockMovement$counterInventoryArgs<ExtArgs>
customer?: boolean | Prisma.StockMovement$customerArgs<ExtArgs>
@@ -1589,7 +1589,7 @@ export type $StockMovementPayload<ExtArgs extends runtime.Types.Extensions.Inter
id: number
type: $Enums.MovementType
quantity: runtime.Decimal
fee: runtime.Decimal
unitPrice: runtime.Decimal
totalCost: runtime.Decimal
referenceType: $Enums.MovementReferenceType
referenceId: string
@@ -1978,7 +1978,7 @@ export interface StockMovementFieldRefs {
readonly id: Prisma.FieldRef<"StockMovement", 'Int'>
readonly type: Prisma.FieldRef<"StockMovement", 'MovementType'>
readonly quantity: Prisma.FieldRef<"StockMovement", 'Decimal'>
readonly fee: Prisma.FieldRef<"StockMovement", 'Decimal'>
readonly unitPrice: Prisma.FieldRef<"StockMovement", 'Decimal'>
readonly totalCost: Prisma.FieldRef<"StockMovement", 'Decimal'>
readonly referenceType: Prisma.FieldRef<"StockMovement", 'MovementReferenceType'>
readonly referenceId: Prisma.FieldRef<"StockMovement", 'String'>
File diff suppressed because it is too large Load Diff