This commit is contained in:
NotII
2025-06-30 18:38:51 +01:00
parent 84e4515a26
commit 401873b8bb
3 changed files with 7 additions and 55 deletions

View File

@@ -131,7 +131,7 @@ export default function ProductPerformanceChart() {
<TableHeader>
<TableRow>
<TableHead>Product</TableHead>
<TableHead className="text-right">Sold</TableHead>
<TableHead className="text-right">Units Sold</TableHead>
<TableHead className="text-right">Revenue</TableHead>
<TableHead className="text-right">Orders</TableHead>
<TableHead className="text-right">Avg Price</TableHead>
@@ -152,14 +152,11 @@ export default function ProductPerformanceChart() {
/>
<div>
<div className="font-medium">{product.name}</div>
<div className="text-sm text-muted-foreground">
{product.unitType}
</div>
</div>
</div>
</TableCell>
<TableCell className="text-right font-medium">
{product.totalSold.toFixed(2)}
{parseInt(product.totalSold.toFixed(0)).toLocaleString()} {product.unitType}
</TableCell>
<TableCell className="text-right font-medium text-green-600">
{formatGBP(product.totalRevenue)}