Add order page with real API calls
This commit is contained in:
@@ -336,10 +336,10 @@ class OrdersService:
|
||||
|
||||
# Get new customers this month
|
||||
month_start = datetime.now().replace(day=1, hour=0, minute=0, second=0, microsecond=0)
|
||||
new_customers_this_month = await self.customer_repo.count(
|
||||
db,
|
||||
tenant_id,
|
||||
filters={"created_at": {"gte": month_start}}
|
||||
new_customers_this_month = await self.customer_repo.count_created_since(
|
||||
db,
|
||||
tenant_id,
|
||||
month_start
|
||||
)
|
||||
|
||||
# Get recent orders
|
||||
|
||||
Reference in New Issue
Block a user