fix
Build and Publish / BuildAndDeployAmd64 (push) Failing after 4s
Build and Publish / BuildAndDeployArm64 (push) Failing after 5s

This commit is contained in:
2026-07-08 18:42:53 +02:00
parent 80a1e6d05e
commit c150ac635c
+9 -9
View File
@@ -139,7 +139,7 @@ const minGlassArea = 0.4 // m²
// areaFromItem derives the main article's *visible glass* surface in m² from a // areaFromItem derives the main article's *visible glass* surface in m² from a
// resolved configurator selection. The catalog width/height are facet codes; // resolved configurator selection. The catalog width/height are facet codes;
// the outer (karmytter) size is `code × 100 margin` mm and the visible glass // the outer (karmytter) size is `code × 100 margin` mm and the visible glass
// is that minus the frame border per axis, e.g. width 4, widthMargin 20, // is that minus the frame border per axis, e.g. width 4, marginWidth 20,
// borderWidth 194 → 400 20 194 = 186 mm. Area = glassW(mm) × glassH(mm) / // borderWidth 194 → 400 20 194 = 186 mm. Area = glassW(mm) × glassH(mm) /
// 1e6, clamped up to the minGlassArea billing floor. Returns 0 when a dimension // 1e6, clamped up to the minGlassArea billing floor. Returns 0 when a dimension
// is missing/non-numeric (non-window PDP, or no product resolved yet). // is missing/non-numeric (non-window PDP, or no product resolved yet).
@@ -193,14 +193,14 @@ func ToItemAddMessage(item *ProductItem, parent *ProductItem, storeId *string, q
} }
msg := &messages.AddItem{ msg := &messages.AddItem{
ItemId: uint32(item.Id), ItemId: uint32(item.Id),
Quantity: int32(qty), Quantity: int32(qty),
Price: price, Price: price,
OrgPrice: orgPriceFromDiscount(price, item.Discount), OrgPrice: orgPriceFromDiscount(price, item.Discount),
Sku: item.Sku, Sku: item.Sku,
Name: item.Title, Name: item.Title,
Image: item.Img, Image: item.Img,
Stock: stock, Stock: stock,
// item.Vat is the product's VAT as a raw integer percent (e.g. 25); // item.Vat is the product's VAT as a raw integer percent (e.g. 25);
// ×100 converts to the platform basis-point scale (2500). This is the // ×100 converts to the platform basis-point scale (2500). This is the
// single conversion boundary — everything downstream is basis points. // single conversion boundary — everything downstream is basis points.