Update topreplenishproducts component

This commit is contained in:
2025-01-17 21:46:46 -05:00
parent d85d387c1a
commit 5987b7173d

View File

@@ -13,7 +13,6 @@ interface ReplenishProduct {
replenish_qty: number
replenish_cost: number
replenish_retail: number
days_until_stockout: number | null
}
export function TopReplenishProducts() {
@@ -39,10 +38,10 @@ export function TopReplenishProducts() {
<TableHeader>
<TableRow>
<TableHead>Product</TableHead>
<TableHead className="text-right">Current</TableHead>
<TableHead className="text-right">Stock</TableHead>
<TableHead className="text-right">Replenish</TableHead>
<TableHead className="text-right">Cost</TableHead>
<TableHead className="text-right">Days</TableHead>
<TableHead className="text-right">Retail</TableHead>
</TableRow>
</TableHeader>
<TableBody>
@@ -64,7 +63,7 @@ export function TopReplenishProducts() {
{formatCurrency(product.replenish_cost)}
</TableCell>
<TableCell className="text-right">
{product.days_until_stockout ?? "N/A"}
{formatCurrency(product.replenish_retail)}
</TableCell>
</TableRow>
))}