fix(inventory): correct colspan and column counts for operation tables
fix(dashboard): align main margin with sidebar width (220->260px)
This commit is contained in:
@@ -296,7 +296,7 @@
|
|||||||
|
|
||||||
.main {
|
.main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-left: 220px;
|
margin-left: 260px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
2
pos/static/css/dashboard.min.css
vendored
2
pos/static/css/dashboard.min.css
vendored
@@ -296,7 +296,7 @@
|
|||||||
|
|
||||||
.main {
|
.main {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
margin-left: 220px;
|
margin-left: 260px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -366,6 +366,8 @@
|
|||||||
'ajustes': 'ADJUST'
|
'ajustes': 'ADJUST'
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var opColspan = { entradas: 8, salidas: 7, traspasos: 8, ajustes: 7 };
|
||||||
|
|
||||||
function loadOperations(type, page) {
|
function loadOperations(type, page) {
|
||||||
var opType = opTypeMap[type];
|
var opType = opTypeMap[type];
|
||||||
if (!opType) return;
|
if (!opType) return;
|
||||||
@@ -379,7 +381,7 @@
|
|||||||
var tbody = document.getElementById(tbodyId);
|
var tbody = document.getElementById(tbodyId);
|
||||||
var ops = data.data || [];
|
var ops = data.data || [];
|
||||||
if (!ops.length) {
|
if (!ops.length) {
|
||||||
tbody.innerHTML = '<tr><td colspan="8" style="text-align:center;padding:30px;color:var(--color-text-muted);">Sin registros</td></tr>';
|
tbody.innerHTML = '<tr><td colspan="' + (opColspan[type] || 8) + '" style="text-align:center;padding:30px;color:var(--color-text-muted);">Sin registros</td></tr>';
|
||||||
document.getElementById(pagId).innerHTML = '';
|
document.getElementById(pagId).innerHTML = '';
|
||||||
document.getElementById(footerId).textContent = '';
|
document.getElementById(footerId).textContent = '';
|
||||||
return;
|
return;
|
||||||
@@ -437,12 +439,14 @@
|
|||||||
'<td>' + esc(op.branch_name || '-') + '</td>' +
|
'<td>' + esc(op.branch_name || '-') + '</td>' +
|
||||||
'<td>' + esc(op.notes || '-') + '</td>' +
|
'<td>' + esc(op.notes || '-') + '</td>' +
|
||||||
'<td>' + esc(op.employee_name || '-') + '</td>' +
|
'<td>' + esc(op.employee_name || '-') + '</td>' +
|
||||||
|
'<td></td>' +
|
||||||
'</tr>';
|
'</tr>';
|
||||||
}
|
}
|
||||||
if (type === 'ajustes') {
|
if (type === 'ajustes') {
|
||||||
return '<tr>' +
|
return '<tr>' +
|
||||||
'<td class="td--mono">#' + op.id + '</td>' +
|
'<td class="td--mono">#' + op.id + '</td>' +
|
||||||
'<td>' + dateStr + '</td>' +
|
'<td>' + dateStr + '</td>' +
|
||||||
|
'<td>' + esc(op.operation_type || 'ADJUST') + '</td>' +
|
||||||
'<td>' + productInfo + '</td>' +
|
'<td>' + productInfo + '</td>' +
|
||||||
'<td style="text-align:right">' + (op.quantity || 0) + '</td>' +
|
'<td style="text-align:right">' + (op.quantity || 0) + '</td>' +
|
||||||
'<td>' + esc(op.notes || '-') + '</td>' +
|
'<td>' + esc(op.notes || '-') + '</td>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user