corrections in stockrequest table

This commit is contained in:
2026-07-09 15:30:04 +05:30
parent 135df9fd18
commit 1437a08be5
10 changed files with 186 additions and 10 deletions

View File

@@ -22,6 +22,7 @@ type OrderService interface {
GetTenantLocationOrders(input models.DeliveryQuery) ([]models.OrderInfo, error)
GetRevenueSummary(tid, lid int, fdate, tdate string) (*models.TenantRevenueSummary, error)
GetSalesSummary(tid, lid int, fdate, tdate string) (*models.SalesSummaryResponse, error)
GetTimeSeries(tenantID, locationID int, granularity, fromDate, toDate string) ([]models.TimeSeriesData, error)
}
type orderService struct {
@@ -96,3 +97,7 @@ func (s *orderService) GetSalesSummary(tid, lid int, fdate, tdate string) (*mode
return s.repo.GetSalesSummary(tid, lid, fdate, tdate)
}
func (s *orderService) GetTimeSeries(tenantID, locationID int, granularity, fromDate, toDate string) ([]models.TimeSeriesData, error) {
return s.repo.GetTimeSeries(tenantID, locationID, granularity, fromDate, toDate)
}