e2e changes
This commit is contained in:
@@ -82,8 +82,13 @@ export function StoreDetailPage() {
|
||||
branch.opentime && branch.closetime ? `${branch.opentime}–${branch.closetime}` : '—',
|
||||
radius: branch.deliveryradius ? `${(branch.deliveryradius / 1000).toFixed(1)} km` : '—',
|
||||
status: branch.status ?? 'Unknown',
|
||||
orders: stats.orders,
|
||||
revenue: stats.revenue,
|
||||
// Both channels, because this page answers "how is this merchant
|
||||
// doing" rather than "through which door". `branchOrderStats` splits
|
||||
// app orders from imported counter bills — a split the Store Admin
|
||||
// console needs and this page does not — so they are added back here
|
||||
// rather than left half-counted.
|
||||
orders: stats.orders + stats.counterOrders,
|
||||
revenue: stats.revenue + stats.counterRevenue,
|
||||
};
|
||||
});
|
||||
}, [locations, summary.data]);
|
||||
|
||||
Reference in New Issue
Block a user