cambios subidos

This commit is contained in:
jaimejimenezortega
2024-03-20 21:28:48 +01:00
parent 3145c36cd9
commit afce4b35e5
8 changed files with 5010 additions and 18 deletions

View File

@ -51,6 +51,7 @@
<th><?= lang('MaquinasTarifasImpresions.tipo') ?></th>
<th><?= lang('MaquinasTarifasImpresions.precio') ?></th>
<th><?= lang('MaquinasTarifasImpresions.margen') ?></th>
<th>is_deleted</th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
</tr>
</thead>
@ -489,6 +490,7 @@
},
{ 'data': 'precio' },
{ 'data': 'margen' },
{ 'data': 'is_deleted',},
{
data: actionBtns,
className: 'row-edit dt-center'
@ -496,6 +498,10 @@
],
columnDefs: [
{
target: 4,
visible: false
},
{
orderable: false,
searchable: false,

View File

@ -390,11 +390,11 @@ function get_datos_acabado(){
values['tarifa_id'] = $(this).text()
break
case 1:
if($(this).text().includes(' '+ window.Presupuestos.cubierta))
if($(this).text().includes(window.Presupuestos.cubierta))
values['cubierta'] = 1
else
values['cubierta'] = 0
if($(this).text().includes(' '+ window.Presupuestos.sobrecubierta))
if($(this).text().includes(window.Presupuestos.sobrecubierta))
values['sobrecubierta'] = 1
else
values['sobrecubierta'] = 0
@ -1509,4 +1509,24 @@ async function actualizar_servicios(update_preimpresion=false){
)
)
}
function popAlert(message, alertClass, alertIcon, containerId = 'sk-alert'){
var htmlString = `
<div class="alert ${alertClass} d-flex align-items-baseline" role="alert">
<span class="alert-icon alert-icon-lg text-primary me-2">
<i class="ti ${alertIcon} ti-sm"></i>
</span>
<div class="d-flex flex-column ps-1">
<h5 class="alert-heading mb-2">${message}</h5>
</div>
</div>`;
if(containerId == 'sk-alert'){
$(window).scrollTop(0);
}
$('#' + containerId).hide().empty().html(htmlString).fadeIn("slow", function(){
setTimeout(function(){
$('#' + containerId).fadeOut("slow");
}, 5000);
});
}