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