Fix: consolidate stock badges and update WOC calculation to include internal warehouse stock

This commit is contained in:
Christian Vidal Wolf
2026-04-27 11:40:36 +02:00
parent 6ba07c60f6
commit 1fc494fc3f
8 changed files with 34 additions and 29 deletions
+7 -1
View File
@@ -82,7 +82,13 @@ const AdsRow: React.FC<{
{stockMap && (
<StockBadge stock={stockMap.get(item.sku?.replace(/(DE|EN)$/i, ''))} />
)}
<VendorStockBadge asin={item.asin} vendorStockMap={vendorStockMap} mode={top50Mode} avgWeeklySales={velocityMap?.get(asin)} />
<VendorStockBadge
asin={item.asin}
vendorStockMap={vendorStockMap}
mode={top50Mode}
avgWeeklySales={velocityMap?.get(asin)}
internalStock={stockMap?.get(item.sku?.replace(/(DE|EN)$/i, ''))}
/>
<BuyBoxWarningBadge asin={asin} buyBoxLostMap={buyBoxLostMap} />
</div>
</div>