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
+16 -1
View File
@@ -1,6 +1,7 @@
enum OrderStatus {
PENDING
REJECT
REJECTED
CANCELED
DONE
}
@@ -42,3 +43,17 @@ enum PurchaseReceiptStatus {
PARTIALLY_PAID
PAID
}
enum BankAccountTransactionType {
DEPOSIT
WITHDRAWAL
}
enum BankTransactionRefType {
PURCHASE_PAYMENT
PURCHASE_REFUND
POS_SALE
POS_REFUND
BANK_TRANSFER
MANUAL_ADJUSTMENT
}