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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user