added prefernce business overview

This commit is contained in:
2026-10-22 13:48:48 +02:00
parent 33c81e2ad1
commit c4a3e48dd2
12 changed files with 3777 additions and 206 deletions
+30 -28
View File
@@ -5,6 +5,7 @@ error_reporting(E_ALL);
include('include/headscript.php');
require_once __DIR__ . '/class/MagoSalesStats.php';
require_once __DIR__ . '/class/UiPrefs.php';
$db = DBHandlerSelect::getInstance();
$pdo = $db->getConnection();
@@ -723,9 +724,10 @@ if ($action === 'data') {
</div>
</div>
<!-- GRAFICI -->
<div class="row g-3 mb-3">
<div class="col-xl-8">
<div class="d-flex justify-content-end mb-2"><button type="button" data-layout-btn="sales_orders_deliveries"></button></div>
<!-- RIQUADRI (ordine personalizzabile per utente: ui_layout.js) -->
<div class="row g-3 mb-3" <?= UiPrefs::attr($pdo, $iduserlogin ?? 0, 'sales_orders_deliveries') ?>>
<div class="col-xl-8" data-widget="weekly" data-title="Carico consegne per settimana">
<div class="chart-card">
<div class="d-flex justify-content-between align-items-start flex-wrap gap-2">
<div>
@@ -740,37 +742,37 @@ if ($action === 'data') {
<div id="chWeekly" style="min-height:340px;"></div>
</div>
</div>
<div class="col-xl-4">
<div class="col-xl-4" data-widget="latecust" data-title="Clienti con più ritardo">
<div class="chart-card">
<div class="chart-title" data-help="dl.lateCust">Clienti con più ritardo</div>
<div class="chart-hint">Valore residuo scaduto (data ZIBO) · clicca per filtrare</div>
<div id="chLateCust" style="min-height:340px;"></div>
</div>
</div>
</div>
<!-- RIGHE -->
<div class="chart-card">
<div class="d-flex justify-content-between align-items-center mb-2 flex-wrap gap-2">
<div class="chart-title" data-help="dl.rows">Righe da consegnare <span class="text-muted fw-normal" id="rowsInfo"></span></div>
<div class="chart-hint">Ordinate per scadenza<?= $canStats ? ' · clicca il numero ordine per aprirlo' : '' ?></div>
</div>
<div class="table-responsive">
<table id="linesTable" class="table table-striped align-middle w-100">
<thead>
<tr>
<th>Ordine</th>
<th>Cliente</th>
<th>Articolo</th>
<th class="text-end">Residuo</th>
<th>Consegna (ZIBO / cliente)</th>
<th>Ritardo</th>
<th class="text-end">Valore residuo</th>
<th>Agente</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div class="col-12" data-widget="rows" data-title="Righe da consegnare">
<div class="chart-card">
<div class="d-flex justify-content-between align-items-center mb-2 flex-wrap gap-2">
<div class="chart-title" data-help="dl.rows">Righe da consegnare <span class="text-muted fw-normal" id="rowsInfo"></span></div>
<div class="chart-hint">Ordinate per scadenza<?= $canStats ? ' · clicca il numero ordine per aprirlo' : '' ?></div>
</div>
<div class="table-responsive">
<table id="linesTable" class="table table-striped align-middle w-100">
<thead>
<tr>
<th>Ordine</th>
<th>Cliente</th>
<th>Articolo</th>
<th class="text-end">Residuo</th>
<th>Consegna (ZIBO / cliente)</th>
<th>Ritardo</th>
<th class="text-end">Valore residuo</th>
<th>Agente</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
</div>
</div>
</div>