feat(F-090): completed feature
This commit is contained in:
@@ -455,13 +455,13 @@ export function InventorySection({ productId }: InventorySectionProps) {
|
||||
onClick={() =>
|
||||
setRows((prev) => ({
|
||||
...prev,
|
||||
[variant.id]: { ...prev[variant.id], editingSku: true, skuValue: variant.sku },
|
||||
[variant.id]: { ...prev[variant.id], editingSku: true, skuValue: r.variant.sku },
|
||||
}))
|
||||
}
|
||||
title="Clic para editar SKU"
|
||||
className="font-mono text-xs text-gray-600 hover:text-[#2D6A4F] cursor-text text-left w-full truncate block"
|
||||
>
|
||||
{variant.sku}
|
||||
{r.variant.sku}
|
||||
</button>
|
||||
)}
|
||||
</td>
|
||||
@@ -503,14 +503,14 @@ export function InventorySection({ productId }: InventorySectionProps) {
|
||||
[variant.id]: {
|
||||
...prev[variant.id],
|
||||
editingEan: true,
|
||||
eanValue: variant.ean ?? '',
|
||||
eanValue: r.variant.ean ?? '',
|
||||
},
|
||||
}))
|
||||
}
|
||||
title="Clic para editar EAN"
|
||||
className="font-mono text-xs text-gray-500 hover:text-[#2D6A4F] cursor-text text-left w-full truncate block"
|
||||
>
|
||||
{variant.ean ?? '—'}
|
||||
{r.variant.ean ?? '—'}
|
||||
</button>
|
||||
)}
|
||||
</td>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -663,6 +663,8 @@ function serializeProduct(product: Product, images: ProductImage[] = []) {
|
||||
seoDescription: product.seoDescription,
|
||||
categoryIds: product.categoryIds,
|
||||
brandId: product.brandId,
|
||||
brand: product.brand,
|
||||
expirationDate: product.expirationDate,
|
||||
createdAt: product.createdAt.toISOString(),
|
||||
updatedAt: product.updatedAt.toISOString(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user