corregido bug de servicios por defecto

This commit is contained in:
Jaime Jiménez Ortega
2024-03-13 21:07:34 +01:00
parent 0ca809805d
commit 879669a7f0
2 changed files with 4 additions and 4 deletions

View File

@ -91,6 +91,6 @@ class PapelFormatoModel extends \App\Models\GoBaseModel
->table($this->table . " t1") ->table($this->table . " t1")
->select( ->select(
"t1.id AS id, CONCAT(t1.ancho, ' x ', t1.alto) AS tamanio" "t1.id AS id, CONCAT(t1.ancho, ' x ', t1.alto) AS tamanio"
)->get()->getResultObject(); )->where('is_deleted', 0)->get()->getResultObject();
} }
} }

View File

@ -664,8 +664,8 @@ async function get_tarifas_enc(tipo=null, tarifa_id = -1){
if(tipo != null){ if(tipo != null){
datos['tipo'] = tipo; datos['tipo'] = tipo;
datos['tipo_impresion_id'] = parseInt($('#tipo_impresion').val()) datos['tipo_impresion_id'] = parseInt($('#tipo_impresion_id').val())
} }
$.ajax({ $.ajax({
type: "POST", type: "POST",
@ -953,7 +953,7 @@ async function get_tarifas_manipulado(tipo=null, tarifa_id = -1){
if(tipo != null){ if(tipo != null){
datos['tipo'] = tipo; datos['tipo'] = tipo;
datos['solapas'] = $('#solapas').is(':checked')?1:0; datos['solapas'] = $('#solapas').is(':checked')?1:0;
datos['tipo_impresion_id'] = parseInt($('#tipo_impresion').val()); datos['tipo_impresion_id'] = parseInt($('#tipo_impresion_id').val());
} }