diff --git a/assets/uploads/marketing_images/6a0bb9e9a7e9b_v3.webp b/assets/uploads/marketing_images/6a0bb9e9a7e9b_v3.webp new file mode 100644 index 00000000..e12441bd Binary files /dev/null and b/assets/uploads/marketing_images/6a0bb9e9a7e9b_v3.webp differ diff --git a/calculo_costos_v3.php b/calculo_costos_v3.php index 9e295b44..82cf4134 100644 --- a/calculo_costos_v3.php +++ b/calculo_costos_v3.php @@ -85,10 +85,29 @@ $costos = $stmt->fetchAll(PDO::FETCH_ASSOC); margin-bottom: 2px; } .img-v3 { - width: 40px; - height: 40px; + width: 120px; + height: 120px; object-fit: cover; - border-radius: 6px; + border-radius: 12px; + cursor: pointer; + transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); + box-shadow: 0 4px 12px rgba(0,0,0,0.12); + } + .img-v3:hover { + transform: scale(2.2); + z-index: 100; + position: relative; + box-shadow: 0 15px 30px rgba(0,0,0,0.2); + } + .img-placeholder { + width: 120px; + height: 120px; + cursor: pointer; + transition: background-color 0.2s; + border-radius: 12px; + } + .img-placeholder:hover { + background-color: #e2e6ea !important; } .btn-action { width: 28px; @@ -108,16 +127,16 @@ $costos = $stmt->fetchAll(PDO::FETCH_ASSOC); } -
-
-

Versión V3: Tabla limpia e independiente. Los cambios se guardan automáticamente.

+
+
+

Total de registros encontrados:

-
- -
@@ -129,6 +148,13 @@ $costos = $stmt->fetchAll(PDO::FETCH_ASSOC);
+ + + +
@@ -162,6 +188,15 @@ $costos = $stmt->fetchAll(PDO::FETCH_ASSOC); + fetchAll(PDO::FETCH_ASSOC); $costo_delivery_p = ($c['delivery_provincia'] ?? 0); $costo_publicidad = ($c['costo_publicitario'] ?? 0); - function getVal($promo) { - if (empty($promo)) return 0; - preg_match('/[\d.]+/', $promo, $matches); - return isset($matches[0]) ? floatval($matches[0]) : 0; - } - - $p1 = getVal($c['promo_1']); - $p2 = getVal($c['promo_2']); - $p3 = getVal($c['promo_3']); + $p1 = getValV3($c['promo_1']); + $p2 = getValV3($c['promo_2']); + $p3 = getValV3($c['promo_3']); // Cálculos Local $r1_l = $p1 > 0 ? $p1 - ($costo_prod + $costo_film + $costo_asesora + $costo_delivery + $costo_publicidad) : null; @@ -200,13 +229,16 @@ $costos = $stmt->fetchAll(PDO::FETCH_ASSOC);
- - - -
- -
- +
+ + + +
+ +
+ + +
@@ -278,12 +310,13 @@ $costos = $stmt->fetchAll(PDO::FETCH_ASSOC);