dashboard design

This commit is contained in:
2026-09-29 12:08:54 +05:30
parent 7dac429a1a
commit bd90a3d68e
8 changed files with 714 additions and 14 deletions
+4
View File
@@ -3,6 +3,7 @@ import type {
PaginatedResponse,
StockBalanceResponse,
StockMovementResponse,
LowStockItemResponse,
LocationType,
MovementType,
} from '@/types/api'
@@ -40,6 +41,9 @@ export const stock = {
movements: (params?: StockMovementParams) =>
api.get<PaginatedResponse<StockMovementResponse>>('/stock/movements', { params }).then(r => r.data),
lowStock: (locationId?: string) =>
api.get<LowStockItemResponse[]>('/stock/low-stock', { params: { locationId } }).then(r => r.data),
adjust: (body: AdjustmentBody) =>
api.post('/stock/adjustment', body).then(r => r.data),