From a7334513ac10bfb32fb191e97886eddce623a406 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Mon, 18 May 2026 06:14:54 +0000 Subject: [PATCH] fix(inventory): correct colspan and column counts for operation tables fix(dashboard): align main margin with sidebar width (220->260px) --- pos/static/css/dashboard.css | 2 +- pos/static/css/dashboard.min.css | 2 +- pos/static/js/inventory.js | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pos/static/css/dashboard.css b/pos/static/css/dashboard.css index 240b732..e7150e6 100644 --- a/pos/static/css/dashboard.css +++ b/pos/static/css/dashboard.css @@ -296,7 +296,7 @@ .main { flex: 1; - margin-left: 220px; + margin-left: 260px; min-width: 0; display: flex; flex-direction: column; diff --git a/pos/static/css/dashboard.min.css b/pos/static/css/dashboard.min.css index 240b732..e7150e6 100644 --- a/pos/static/css/dashboard.min.css +++ b/pos/static/css/dashboard.min.css @@ -296,7 +296,7 @@ .main { flex: 1; - margin-left: 220px; + margin-left: 260px; min-width: 0; display: flex; flex-direction: column; diff --git a/pos/static/js/inventory.js b/pos/static/js/inventory.js index 87cec3d..650739f 100644 --- a/pos/static/js/inventory.js +++ b/pos/static/js/inventory.js @@ -366,6 +366,8 @@ 'ajustes': 'ADJUST' }; + var opColspan = { entradas: 8, salidas: 7, traspasos: 8, ajustes: 7 }; + function loadOperations(type, page) { var opType = opTypeMap[type]; if (!opType) return; @@ -379,7 +381,7 @@ var tbody = document.getElementById(tbodyId); var ops = data.data || []; if (!ops.length) { - tbody.innerHTML = 'Sin registros'; + tbody.innerHTML = 'Sin registros'; document.getElementById(pagId).innerHTML = ''; document.getElementById(footerId).textContent = ''; return; @@ -437,12 +439,14 @@ '' + esc(op.branch_name || '-') + '' + '' + esc(op.notes || '-') + '' + '' + esc(op.employee_name || '-') + '' + + '' + ''; } if (type === 'ajustes') { return '' + '#' + op.id + '' + '' + dateStr + '' + + '' + esc(op.operation_type || 'ADJUST') + '' + '' + productInfo + '' + '' + (op.quantity || 0) + '' + '' + esc(op.notes || '-') + '' +