Format product color labels
This commit is contained in:
@@ -8,6 +8,7 @@ import { buildOpenProductionByProductId } from '../analytics/cutting';
|
||||
import type { DateRange, ProductAnalyticsItem, ProductionOrderItem } from '../types';
|
||||
import { exportToCSV, fetchProductAnalytics, fetchProductionOrders } from '../dataService';
|
||||
import { encodeProductGroupKey, parseProductName, sortProductSizes } from '../productParsing';
|
||||
import { formatColorLabel } from '../displayFormatters';
|
||||
|
||||
type ReplenishmentStatus = 'need' | 'covered' | 'no_sales' | 'no_stock';
|
||||
type ReplenishmentFilter = 'all' | ReplenishmentStatus;
|
||||
@@ -237,7 +238,7 @@ const Replenishment = () => {
|
||||
: 'covered';
|
||||
const sizes = sortProductSizes(Array.from(new Set(group.flatMap(row => row.sizes))));
|
||||
const productIds = group.map(row => row.id);
|
||||
const name = first.color ? `${first.baseName} · ${first.color}` : first.baseName;
|
||||
const name = first.color ? `${first.baseName} · ${formatColorLabel(first.color)}` : first.baseName;
|
||||
|
||||
return {
|
||||
...first,
|
||||
|
||||
Reference in New Issue
Block a user