-
Pedidos
+
Pedidos
$childConfig): ?>
-
+
diff --git a/includes/callcenter_test_helpers.php b/includes/callcenter_test_helpers.php
index 2c926d48..07229bc2 100644
--- a/includes/callcenter_test_helpers.php
+++ b/includes/callcenter_test_helpers.php
@@ -262,9 +262,23 @@ function cc_test_is_tuani_main_store_key(string $storeKey): bool
return in_array($storeKey, ['flower', 'otra_tienda'], true);
}
+function cc_test_is_tuani_recoverables_store_key(string $storeKey): bool
+{
+ $storeKey = trim(mb_strtolower($storeKey));
+ return $storeKey === 'tuani_recuperables';
+}
+
function cc_test_callcenter_pro_default_view_key(string $storeKey): string
{
- return cc_test_is_tuani_main_store_key($storeKey) ? 'ultimos_3_dias' : 'pendientes_hoy';
+ if (cc_test_is_tuani_main_store_key($storeKey)) {
+ return 'ultimos_3_dias';
+ }
+
+ if (cc_test_is_tuani_recoverables_store_key($storeKey)) {
+ return 'todos';
+ }
+
+ return 'pendientes_hoy';
}
if (!function_exists('cc_test_normalize_phone_digits')) {
diff --git a/inversion_general.php b/inversion_general.php
index 32549b12..a47a9657 100644
--- a/inversion_general.php
+++ b/inversion_general.php
@@ -88,12 +88,14 @@ $gastos = $stmt->fetchAll(PDO::FETCH_ASSOC);
$gastos_por_tipo = [
'Publicidad' => [],
'Inversion de Mercaderia' => [],
- 'Gastos Personales' => []
+ 'Gastos Personales' => [],
+ 'Gastos Administrativos' => []
];
$totales_por_tipo = [
'Publicidad' => 0,
'Inversion de Mercaderia' => 0,
- 'Gastos Personales' => 0
+ 'Gastos Personales' => 0,
+ 'Gastos Administrativos' => 0
];
foreach ($gastos as $gasto) {
@@ -105,6 +107,7 @@ foreach ($gastos as $gasto) {
}
$pageTitle = 'Inversión General';
+$pageDescription = 'Control mensual de inversión, publicidad, mercadería, gastos personales y gastos administrativos.';
include 'layout_header.php';
?>
@@ -140,6 +143,7 @@ include 'layout_header.php';
+