fix: update SupplierLedger model to use correct enum casing and adjust types
feat: enhance PosAccountsService to include inventoryBankAccount details in responses refactor: modify PosService to return structured inventory and bank account data chore: remove isSettled field from CreatePurchaseReceiptDto and adjust related logic feat: add payments selection in SuppliersService for better payment tracking chore: apply database migrations to adjust decimal types and enforce constraints chore: create index on Pos_Accounts for improved query performance feat: define Supplier and SupplierLedger models in Prisma schema for better data management
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -391,13 +391,11 @@ export const ModelName = {
|
||||
BankBranch: 'BankBranch',
|
||||
BankAccount: 'BankAccount',
|
||||
Inventory: 'Inventory',
|
||||
InventoryTransfer: 'InventoryTransfer',
|
||||
InventoryTransferItem: 'InventoryTransferItem',
|
||||
InventoryBankAccount: 'InventoryBankAccount',
|
||||
PosAccount: 'PosAccount',
|
||||
InventoryTransfer: 'InventoryTransfer',
|
||||
InventoryTransferItem: 'InventoryTransferItem',
|
||||
Bank: 'Bank',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger',
|
||||
Customer: 'Customer',
|
||||
Order: 'Order',
|
||||
SalesInvoice: 'SalesInvoice',
|
||||
@@ -412,7 +410,9 @@ export const ModelName = {
|
||||
PurchaseReceiptPayments: 'PurchaseReceiptPayments',
|
||||
StockMovement: 'StockMovement',
|
||||
StockBalance: 'StockBalance',
|
||||
StockAdjustment: 'StockAdjustment'
|
||||
StockAdjustment: 'StockAdjustment',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -428,7 +428,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "role" | "otpCode" | "refreshToken" | "bankBranch" | "bankAccount" | "inventory" | "inventoryTransfer" | "inventoryTransferItem" | "inventoryBankAccount" | "posAccount" | "bank" | "supplier" | "supplierLedger" | "customer" | "order" | "salesInvoice" | "salesInvoiceItem" | "triggerLog" | "productVariant" | "product" | "productBrand" | "productCategory" | "purchaseReceipt" | "purchaseReceiptItem" | "purchaseReceiptPayments" | "stockMovement" | "stockBalance" | "stockAdjustment"
|
||||
modelProps: "user" | "role" | "otpCode" | "refreshToken" | "bankBranch" | "bankAccount" | "inventory" | "inventoryBankAccount" | "posAccount" | "inventoryTransfer" | "inventoryTransferItem" | "bank" | "customer" | "order" | "salesInvoice" | "salesInvoiceItem" | "triggerLog" | "productVariant" | "product" | "productBrand" | "productCategory" | "purchaseReceipt" | "purchaseReceiptItem" | "purchaseReceiptPayments" | "stockMovement" | "stockBalance" | "stockAdjustment" | "supplier" | "supplierLedger"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -894,138 +894,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
InventoryTransfer: {
|
||||
payload: Prisma.$InventoryTransferPayload<ExtArgs>
|
||||
fields: Prisma.InventoryTransferFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.InventoryTransferFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.InventoryTransferFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.InventoryTransferFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.InventoryTransferFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.InventoryTransferFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.InventoryTransferCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.InventoryTransferCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.InventoryTransferDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.InventoryTransferUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.InventoryTransferDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.InventoryTransferUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.InventoryTransferUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.InventoryTransferAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateInventoryTransfer>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.InventoryTransferGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.InventoryTransferCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
InventoryTransferItem: {
|
||||
payload: Prisma.$InventoryTransferItemPayload<ExtArgs>
|
||||
fields: Prisma.InventoryTransferItemFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.InventoryTransferItemFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.InventoryTransferItemFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.InventoryTransferItemFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.InventoryTransferItemFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.InventoryTransferItemFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.InventoryTransferItemCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.InventoryTransferItemCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.InventoryTransferItemDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.InventoryTransferItemUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.InventoryTransferItemDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.InventoryTransferItemUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.InventoryTransferItemUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.InventoryTransferItemAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateInventoryTransferItem>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.InventoryTransferItemGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferItemGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.InventoryTransferItemCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferItemCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
InventoryBankAccount: {
|
||||
payload: Prisma.$InventoryBankAccountPayload<ExtArgs>
|
||||
fields: Prisma.InventoryBankAccountFieldRefs
|
||||
@@ -1158,6 +1026,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
InventoryTransfer: {
|
||||
payload: Prisma.$InventoryTransferPayload<ExtArgs>
|
||||
fields: Prisma.InventoryTransferFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.InventoryTransferFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.InventoryTransferFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.InventoryTransferFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.InventoryTransferFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.InventoryTransferFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.InventoryTransferCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.InventoryTransferCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.InventoryTransferDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.InventoryTransferUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.InventoryTransferDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.InventoryTransferUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.InventoryTransferUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.InventoryTransferAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateInventoryTransfer>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.InventoryTransferGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.InventoryTransferCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
InventoryTransferItem: {
|
||||
payload: Prisma.$InventoryTransferItemPayload<ExtArgs>
|
||||
fields: Prisma.InventoryTransferItemFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.InventoryTransferItemFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.InventoryTransferItemFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.InventoryTransferItemFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.InventoryTransferItemFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.InventoryTransferItemFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.InventoryTransferItemCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.InventoryTransferItemCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.InventoryTransferItemDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.InventoryTransferItemUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.InventoryTransferItemDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.InventoryTransferItemUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.InventoryTransferItemUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$InventoryTransferItemPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.InventoryTransferItemAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateInventoryTransferItem>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.InventoryTransferItemGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferItemGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.InventoryTransferItemCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.InventoryTransferItemCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
Bank: {
|
||||
payload: Prisma.$BankPayload<ExtArgs>
|
||||
fields: Prisma.BankFieldRefs
|
||||
@@ -1224,138 +1224,6 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Supplier: {
|
||||
payload: Prisma.$SupplierPayload<ExtArgs>
|
||||
fields: Prisma.SupplierFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SupplierFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SupplierFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SupplierFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SupplierFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SupplierFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SupplierCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SupplierCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SupplierDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SupplierUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SupplierDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SupplierUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SupplierUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SupplierAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSupplier>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SupplierGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SupplierCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
SupplierLedger: {
|
||||
payload: Prisma.$SupplierLedgerPayload<ExtArgs>
|
||||
fields: Prisma.SupplierLedgerFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SupplierLedgerFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SupplierLedgerFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SupplierLedgerFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SupplierLedgerFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SupplierLedgerFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SupplierLedgerCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SupplierLedgerCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SupplierLedgerDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SupplierLedgerUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SupplierLedgerDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SupplierLedgerUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SupplierLedgerUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SupplierLedgerAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSupplierLedger>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SupplierLedgerGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierLedgerGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SupplierLedgerCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierLedgerCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
Customer: {
|
||||
payload: Prisma.$CustomerPayload<ExtArgs>
|
||||
fields: Prisma.CustomerFieldRefs
|
||||
@@ -2346,6 +2214,138 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
Supplier: {
|
||||
payload: Prisma.$SupplierPayload<ExtArgs>
|
||||
fields: Prisma.SupplierFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SupplierFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SupplierFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SupplierFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SupplierFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SupplierFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SupplierCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SupplierCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SupplierDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SupplierUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SupplierDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SupplierUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SupplierUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SupplierAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSupplier>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SupplierGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SupplierCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
SupplierLedger: {
|
||||
payload: Prisma.$SupplierLedgerPayload<ExtArgs>
|
||||
fields: Prisma.SupplierLedgerFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SupplierLedgerFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SupplierLedgerFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SupplierLedgerFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SupplierLedgerFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SupplierLedgerFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SupplierLedgerCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SupplierLedgerCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SupplierLedgerDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SupplierLedgerUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SupplierLedgerDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SupplierLedgerUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SupplierLedgerUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SupplierLedgerPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SupplierLedgerAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSupplierLedger>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SupplierLedgerGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierLedgerGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SupplierLedgerCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SupplierLedgerCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} & {
|
||||
other: {
|
||||
@@ -2480,28 +2480,6 @@ export const InventoryScalarFieldEnum = {
|
||||
export type InventoryScalarFieldEnum = (typeof InventoryScalarFieldEnum)[keyof typeof InventoryScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
fromInventoryId: 'fromInventoryId',
|
||||
toInventoryId: 'toInventoryId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferScalarFieldEnum = (typeof InventoryTransferScalarFieldEnum)[keyof typeof InventoryTransferScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
productId: 'productId',
|
||||
transferId: 'transferId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferItemScalarFieldEnum = (typeof InventoryTransferItemScalarFieldEnum)[keyof typeof InventoryTransferItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryBankAccountScalarFieldEnum = {
|
||||
inventoryId: 'inventoryId',
|
||||
bankAccountId: 'bankAccountId'
|
||||
@@ -2525,6 +2503,28 @@ export const PosAccountScalarFieldEnum = {
|
||||
export type PosAccountScalarFieldEnum = (typeof PosAccountScalarFieldEnum)[keyof typeof PosAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
fromInventoryId: 'fromInventoryId',
|
||||
toInventoryId: 'toInventoryId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferScalarFieldEnum = (typeof InventoryTransferScalarFieldEnum)[keyof typeof InventoryTransferScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
productId: 'productId',
|
||||
transferId: 'transferId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferItemScalarFieldEnum = (typeof InventoryTransferItemScalarFieldEnum)[keyof typeof InventoryTransferItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const BankScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -2537,40 +2537,6 @@ export const BankScalarFieldEnum = {
|
||||
export type BankScalarFieldEnum = (typeof BankScalarFieldEnum)[keyof typeof BankScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
description: 'description',
|
||||
debit: 'debit',
|
||||
credit: 'credit',
|
||||
balance: 'balance',
|
||||
sourceType: 'sourceType',
|
||||
sourceId: 'sourceId',
|
||||
createdAt: 'createdAt',
|
||||
supplierId: 'supplierId'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const CustomerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
@@ -2713,10 +2679,10 @@ export const PurchaseReceiptScalarFieldEnum = {
|
||||
code: 'code',
|
||||
totalAmount: 'totalAmount',
|
||||
paidAmount: 'paidAmount',
|
||||
isSettled: 'isSettled',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
status: 'status',
|
||||
supplierId: 'supplierId',
|
||||
inventoryId: 'inventoryId'
|
||||
} as const
|
||||
@@ -2742,7 +2708,9 @@ export const PurchaseReceiptPaymentsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
amount: 'amount',
|
||||
paymentMethod: 'paymentMethod',
|
||||
type: 'type',
|
||||
bankAccountId: 'bankAccountId',
|
||||
inventoryId: 'inventoryId',
|
||||
description: 'description',
|
||||
payedAt: 'payedAt',
|
||||
receiptId: 'receiptId',
|
||||
@@ -2798,6 +2766,40 @@ export const StockAdjustmentScalarFieldEnum = {
|
||||
export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldEnum)[keyof typeof StockAdjustmentScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
description: 'description',
|
||||
debit: 'debit',
|
||||
credit: 'credit',
|
||||
balance: 'balance',
|
||||
sourceType: 'sourceType',
|
||||
sourceId: 'sourceId',
|
||||
createdAt: 'createdAt',
|
||||
supplierId: 'supplierId'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -2899,14 +2901,6 @@ export const InventoryOrderByRelevanceFieldEnum = {
|
||||
export type InventoryOrderByRelevanceFieldEnum = (typeof InventoryOrderByRelevanceFieldEnum)[keyof typeof InventoryOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferOrderByRelevanceFieldEnum = (typeof InventoryTransferOrderByRelevanceFieldEnum)[keyof typeof InventoryTransferOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PosAccountOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
@@ -2916,6 +2910,14 @@ export const PosAccountOrderByRelevanceFieldEnum = {
|
||||
export type PosAccountOrderByRelevanceFieldEnum = (typeof PosAccountOrderByRelevanceFieldEnum)[keyof typeof PosAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferOrderByRelevanceFieldEnum = (typeof InventoryTransferOrderByRelevanceFieldEnum)[keyof typeof InventoryTransferOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const BankOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
shortName: 'shortName'
|
||||
@@ -2924,27 +2926,6 @@ export const BankOrderByRelevanceFieldEnum = {
|
||||
export type BankOrderByRelevanceFieldEnum = (typeof BankOrderByRelevanceFieldEnum)[keyof typeof BankOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerOrderByRelevanceFieldEnum = (typeof SupplierLedgerOrderByRelevanceFieldEnum)[keyof typeof SupplierLedgerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const CustomerOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
@@ -3051,6 +3032,27 @@ export const StockMovementOrderByRelevanceFieldEnum = {
|
||||
export type StockMovementOrderByRelevanceFieldEnum = (typeof StockMovementOrderByRelevanceFieldEnum)[keyof typeof StockMovementOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerOrderByRelevanceFieldEnum = (typeof SupplierLedgerOrderByRelevanceFieldEnum)[keyof typeof SupplierLedgerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Field references
|
||||
@@ -3106,13 +3108,6 @@ export type DecimalFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel,
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'ledgerSourceType'
|
||||
*/
|
||||
export type EnumledgerSourceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ledgerSourceType'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'OrderStatus'
|
||||
*/
|
||||
@@ -3121,9 +3116,23 @@ export type EnumOrderStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$Pris
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'payment_method_type'
|
||||
* Reference to a field of type 'PaymentMethodType'
|
||||
*/
|
||||
export type Enumpayment_method_typeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'payment_method_type'>
|
||||
export type EnumPaymentMethodTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentMethodType'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'PurchaseReceiptStatus'
|
||||
*/
|
||||
export type EnumPurchaseReceiptStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PurchaseReceiptStatus'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'PaymentType'
|
||||
*/
|
||||
export type EnumPaymentTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PaymentType'>
|
||||
|
||||
|
||||
|
||||
@@ -3141,6 +3150,13 @@ export type EnumMovementReferenceTypeFieldRefInput<$PrismaModel> = FieldRefInput
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'LedgerSourceType'
|
||||
*/
|
||||
export type EnumLedgerSourceTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'LedgerSourceType'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'Float'
|
||||
*/
|
||||
@@ -3249,13 +3265,11 @@ export type GlobalOmitConfig = {
|
||||
bankBranch?: Prisma.BankBranchOmit
|
||||
bankAccount?: Prisma.BankAccountOmit
|
||||
inventory?: Prisma.InventoryOmit
|
||||
inventoryTransfer?: Prisma.InventoryTransferOmit
|
||||
inventoryTransferItem?: Prisma.InventoryTransferItemOmit
|
||||
inventoryBankAccount?: Prisma.InventoryBankAccountOmit
|
||||
posAccount?: Prisma.PosAccountOmit
|
||||
inventoryTransfer?: Prisma.InventoryTransferOmit
|
||||
inventoryTransferItem?: Prisma.InventoryTransferItemOmit
|
||||
bank?: Prisma.BankOmit
|
||||
supplier?: Prisma.SupplierOmit
|
||||
supplierLedger?: Prisma.SupplierLedgerOmit
|
||||
customer?: Prisma.CustomerOmit
|
||||
order?: Prisma.OrderOmit
|
||||
salesInvoice?: Prisma.SalesInvoiceOmit
|
||||
@@ -3271,6 +3285,8 @@ export type GlobalOmitConfig = {
|
||||
stockMovement?: Prisma.StockMovementOmit
|
||||
stockBalance?: Prisma.StockBalanceOmit
|
||||
stockAdjustment?: Prisma.StockAdjustmentOmit
|
||||
supplier?: Prisma.SupplierOmit
|
||||
supplierLedger?: Prisma.SupplierLedgerOmit
|
||||
}
|
||||
|
||||
/* Types for Logging */
|
||||
|
||||
@@ -58,13 +58,11 @@ export const ModelName = {
|
||||
BankBranch: 'BankBranch',
|
||||
BankAccount: 'BankAccount',
|
||||
Inventory: 'Inventory',
|
||||
InventoryTransfer: 'InventoryTransfer',
|
||||
InventoryTransferItem: 'InventoryTransferItem',
|
||||
InventoryBankAccount: 'InventoryBankAccount',
|
||||
PosAccount: 'PosAccount',
|
||||
InventoryTransfer: 'InventoryTransfer',
|
||||
InventoryTransferItem: 'InventoryTransferItem',
|
||||
Bank: 'Bank',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger',
|
||||
Customer: 'Customer',
|
||||
Order: 'Order',
|
||||
SalesInvoice: 'SalesInvoice',
|
||||
@@ -79,7 +77,9 @@ export const ModelName = {
|
||||
PurchaseReceiptPayments: 'PurchaseReceiptPayments',
|
||||
StockMovement: 'StockMovement',
|
||||
StockBalance: 'StockBalance',
|
||||
StockAdjustment: 'StockAdjustment'
|
||||
StockAdjustment: 'StockAdjustment',
|
||||
Supplier: 'Supplier',
|
||||
SupplierLedger: 'SupplierLedger'
|
||||
} as const
|
||||
|
||||
export type ModelName = (typeof ModelName)[keyof typeof ModelName]
|
||||
@@ -193,28 +193,6 @@ export const InventoryScalarFieldEnum = {
|
||||
export type InventoryScalarFieldEnum = (typeof InventoryScalarFieldEnum)[keyof typeof InventoryScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
fromInventoryId: 'fromInventoryId',
|
||||
toInventoryId: 'toInventoryId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferScalarFieldEnum = (typeof InventoryTransferScalarFieldEnum)[keyof typeof InventoryTransferScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
productId: 'productId',
|
||||
transferId: 'transferId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferItemScalarFieldEnum = (typeof InventoryTransferItemScalarFieldEnum)[keyof typeof InventoryTransferItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryBankAccountScalarFieldEnum = {
|
||||
inventoryId: 'inventoryId',
|
||||
bankAccountId: 'bankAccountId'
|
||||
@@ -238,6 +216,28 @@ export const PosAccountScalarFieldEnum = {
|
||||
export type PosAccountScalarFieldEnum = (typeof PosAccountScalarFieldEnum)[keyof typeof PosAccountScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferScalarFieldEnum = {
|
||||
id: 'id',
|
||||
code: 'code',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
fromInventoryId: 'fromInventoryId',
|
||||
toInventoryId: 'toInventoryId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferScalarFieldEnum = (typeof InventoryTransferScalarFieldEnum)[keyof typeof InventoryTransferScalarFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferItemScalarFieldEnum = {
|
||||
id: 'id',
|
||||
count: 'count',
|
||||
productId: 'productId',
|
||||
transferId: 'transferId'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferItemScalarFieldEnum = (typeof InventoryTransferItemScalarFieldEnum)[keyof typeof InventoryTransferItemScalarFieldEnum]
|
||||
|
||||
|
||||
export const BankScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -250,40 +250,6 @@ export const BankScalarFieldEnum = {
|
||||
export type BankScalarFieldEnum = (typeof BankScalarFieldEnum)[keyof typeof BankScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
description: 'description',
|
||||
debit: 'debit',
|
||||
credit: 'credit',
|
||||
balance: 'balance',
|
||||
sourceType: 'sourceType',
|
||||
sourceId: 'sourceId',
|
||||
createdAt: 'createdAt',
|
||||
supplierId: 'supplierId'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const CustomerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
@@ -426,10 +392,10 @@ export const PurchaseReceiptScalarFieldEnum = {
|
||||
code: 'code',
|
||||
totalAmount: 'totalAmount',
|
||||
paidAmount: 'paidAmount',
|
||||
isSettled: 'isSettled',
|
||||
description: 'description',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
status: 'status',
|
||||
supplierId: 'supplierId',
|
||||
inventoryId: 'inventoryId'
|
||||
} as const
|
||||
@@ -455,7 +421,9 @@ export const PurchaseReceiptPaymentsScalarFieldEnum = {
|
||||
id: 'id',
|
||||
amount: 'amount',
|
||||
paymentMethod: 'paymentMethod',
|
||||
type: 'type',
|
||||
bankAccountId: 'bankAccountId',
|
||||
inventoryId: 'inventoryId',
|
||||
description: 'description',
|
||||
payedAt: 'payedAt',
|
||||
receiptId: 'receiptId',
|
||||
@@ -511,6 +479,40 @@ export const StockAdjustmentScalarFieldEnum = {
|
||||
export type StockAdjustmentScalarFieldEnum = (typeof StockAdjustmentScalarFieldEnum)[keyof typeof StockAdjustmentScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierScalarFieldEnum = {
|
||||
id: 'id',
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country',
|
||||
isActive: 'isActive',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
deletedAt: 'deletedAt'
|
||||
} as const
|
||||
|
||||
export type SupplierScalarFieldEnum = (typeof SupplierScalarFieldEnum)[keyof typeof SupplierScalarFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerScalarFieldEnum = {
|
||||
id: 'id',
|
||||
description: 'description',
|
||||
debit: 'debit',
|
||||
credit: 'credit',
|
||||
balance: 'balance',
|
||||
sourceType: 'sourceType',
|
||||
sourceId: 'sourceId',
|
||||
createdAt: 'createdAt',
|
||||
supplierId: 'supplierId'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerScalarFieldEnum = (typeof SupplierLedgerScalarFieldEnum)[keyof typeof SupplierLedgerScalarFieldEnum]
|
||||
|
||||
|
||||
export const SortOrder = {
|
||||
asc: 'asc',
|
||||
desc: 'desc'
|
||||
@@ -612,14 +614,6 @@ export const InventoryOrderByRelevanceFieldEnum = {
|
||||
export type InventoryOrderByRelevanceFieldEnum = (typeof InventoryOrderByRelevanceFieldEnum)[keyof typeof InventoryOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferOrderByRelevanceFieldEnum = (typeof InventoryTransferOrderByRelevanceFieldEnum)[keyof typeof InventoryTransferOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const PosAccountOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
@@ -629,6 +623,14 @@ export const PosAccountOrderByRelevanceFieldEnum = {
|
||||
export type PosAccountOrderByRelevanceFieldEnum = (typeof PosAccountOrderByRelevanceFieldEnum)[keyof typeof PosAccountOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const InventoryTransferOrderByRelevanceFieldEnum = {
|
||||
code: 'code',
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type InventoryTransferOrderByRelevanceFieldEnum = (typeof InventoryTransferOrderByRelevanceFieldEnum)[keyof typeof InventoryTransferOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const BankOrderByRelevanceFieldEnum = {
|
||||
name: 'name',
|
||||
shortName: 'shortName'
|
||||
@@ -637,27 +639,6 @@ export const BankOrderByRelevanceFieldEnum = {
|
||||
export type BankOrderByRelevanceFieldEnum = (typeof BankOrderByRelevanceFieldEnum)[keyof typeof BankOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerOrderByRelevanceFieldEnum = (typeof SupplierLedgerOrderByRelevanceFieldEnum)[keyof typeof SupplierLedgerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const CustomerOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
@@ -763,3 +744,24 @@ export const StockMovementOrderByRelevanceFieldEnum = {
|
||||
|
||||
export type StockMovementOrderByRelevanceFieldEnum = (typeof StockMovementOrderByRelevanceFieldEnum)[keyof typeof StockMovementOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierOrderByRelevanceFieldEnum = {
|
||||
firstName: 'firstName',
|
||||
lastName: 'lastName',
|
||||
email: 'email',
|
||||
mobileNumber: 'mobileNumber',
|
||||
address: 'address',
|
||||
city: 'city',
|
||||
state: 'state',
|
||||
country: 'country'
|
||||
} as const
|
||||
|
||||
export type SupplierOrderByRelevanceFieldEnum = (typeof SupplierOrderByRelevanceFieldEnum)[keyof typeof SupplierOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SupplierLedgerOrderByRelevanceFieldEnum = {
|
||||
description: 'description'
|
||||
} as const
|
||||
|
||||
export type SupplierLedgerOrderByRelevanceFieldEnum = (typeof SupplierLedgerOrderByRelevanceFieldEnum)[keyof typeof SupplierLedgerOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user