-
= lang("Presupuestos.papelesComparadorCosidoTapaBlanda") ?>
+ = lang("Presupuestos.papelesComparadorPresupuestoAdmin") ?>
@@ -587,7 +587,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -620,7 +620,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -658,7 +658,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -687,7 +687,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
data: function (params) {
@@ -1104,7 +1104,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1173,7 +1173,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1252,7 +1252,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1331,7 +1331,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1412,7 +1412,7 @@
$.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1609,7 +1609,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1653,7 +1653,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1699,7 +1699,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1745,7 +1745,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1787,7 +1787,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
@@ -1834,7 +1834,7 @@
allowClear: false,
minimumResultsForSearch: Infinity,
ajax: {
- url: '= route_to("menuItemsOfCosidotapablanda") ?>',
+ url: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
type: 'post',
dataType: 'json',
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.js
similarity index 99%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.js
index 788b269f..f1871aef 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.js
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.js
@@ -777,7 +777,7 @@ function convertirTiempo(horas){
// se convierte a formato hh:mm:ss
const h = Math.floor(seconds / 3600);
const minutos = Math.floor((seconds % 3600) / 60);
- const segundos = seconds % 60;
+ const segundos = Math.round(seconds % 60, 0);
return h + ':' + minutos + ':' + segundos;
}
else{
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.php
similarity index 99%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.php
index 12c35b60..d6fbe850 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_datosServiciosItems.php
@@ -318,6 +318,8 @@
init_servicio_extra()
+ /* ELIMINADO PARA COMPROBAR EL MAXIMO DE SOLAPAS DESDE EL BACKEND
+ PENDIENTE
$('.solapas_cubierta').on('change', function(){
const ancho_libro = getDimensionLibro().ancho;
@@ -337,6 +339,7 @@
}
$('#compGramajeCubierta').trigger('change')
+
})
@@ -360,5 +363,7 @@
$('#compGramajeSobrecubierta').trigger('change')
})
+
+ */
= $this->endSection() ?>
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js
similarity index 98%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js
index e49ed7ab..185aacd1 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.js
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.js
@@ -275,7 +275,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
await $.ajax({
type: 'post',
- url: window.routes_lp.updateDataOfCosidotapablanda,
+ url: window.routes_lp.updateDataOfPresupuestoAdmin,
data: datos,
dataType: 'json',
@@ -1528,7 +1528,7 @@ async function set_lp_bn_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bn_gramaje').empty()
},
@@ -1568,7 +1568,7 @@ async function set_lp_bn_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bn_papelImpresion').empty()
$('#lp_bn_maquina').empty()
@@ -1604,7 +1604,7 @@ async function set_lp_bn_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bn_maquina').empty()
clear_lp_bn(false)
@@ -1676,7 +1676,7 @@ async function calcularPresupuesto_bn(input_data={}, updatedTipologias = false){
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -1903,7 +1903,7 @@ async function set_lp_color_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_color_gramaje').empty()
},
@@ -1941,7 +1941,7 @@ async function set_lp_color_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_color_papelImpresion').empty()
$('#lp_color_maquina').empty()
@@ -1977,7 +1977,7 @@ async function set_lp_color_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_color_maquina').empty()
clear_lp_color(false)
@@ -2048,7 +2048,7 @@ async function calcularPresupuesto_color(input_data={}, updatedTipologias = fals
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -2269,7 +2269,7 @@ async function set_lp_bnhq_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bnhq_gramaje').empty()
},
@@ -2307,7 +2307,7 @@ async function set_lp_bnhq_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bnhq_papelImpresion').empty()
$('#lp_bnhq_maquina').empty()
@@ -2343,7 +2343,7 @@ async function set_lp_bnhq_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_bnhq_maquina').empty()
clear_lp_bnhq(false)
@@ -2484,7 +2484,7 @@ async function calcularPresupuesto_bnhq(input_data={}, updatedTipologias = false
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -2633,7 +2633,7 @@ async function set_lp_colorhq_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_colorhq_gramaje').empty()
},
@@ -2671,7 +2671,7 @@ async function set_lp_colorhq_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_colorhq_papelImpresion').empty()
$('#lp_colorhq_maquina').empty()
@@ -2707,7 +2707,7 @@ async function set_lp_colorhq_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_colorhq_maquina').empty()
clear_lp_colorhq(false)
@@ -2854,7 +2854,7 @@ async function calcularPresupuesto_colorhq(input_data={}, updatedTipologias = fa
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -3004,7 +3004,7 @@ async function set_lp_rot_bn_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_bn_gramaje').empty()
},
@@ -3042,7 +3042,7 @@ async function set_lp_rot_bn_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_bn_papelImpresion').empty()
$('#lp_rot_bn_maquina').empty()
@@ -3077,7 +3077,7 @@ async function set_lp_rot_bn_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_bn_maquina').empty()
clear_lp_rot_bn(false)
@@ -3192,7 +3192,7 @@ async function calcularPresupuesto_rot_bn(fromComparador=false, updatedTipologia
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -3376,7 +3376,7 @@ async function set_lp_rot_color_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_color_gramaje').empty()
},
@@ -3414,7 +3414,7 @@ async function set_lp_rot_color_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_color_papelImpresion').empty()
$('#lp_rot_color_maquina').empty()
@@ -3450,7 +3450,7 @@ async function set_lp_rot_color_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_rot_color_maquina').empty()
clear_lp_rot_color(false)
@@ -3571,7 +3571,7 @@ async function calcularPresupuesto_rot_color(fromComparador=false, updatedTipolo
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -3753,7 +3753,7 @@ async function set_lp_cubierta_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_cubierta_gramaje').empty()
},
@@ -3792,7 +3792,7 @@ async function set_lp_cubierta_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_cubierta_papelImpresion').empty()
$('#lp_cubierta_maquina').empty()
@@ -3829,7 +3829,7 @@ async function set_lp_cubierta_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_cubierta_maquina').empty()
clear_lp_cubierta(false)
@@ -3919,7 +3919,7 @@ async function calcularPresupuesto_cubierta(fromComparador=false, input_data={})
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -4066,7 +4066,7 @@ async function set_lp_sobrecubierta_gramaje(mantenerSeleccion = false){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_sobrecubierta_gramaje').empty()
},
@@ -4105,7 +4105,7 @@ async function set_lp_sobrecubierta_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_sobrecubierta_papelImpresion').empty()
$('#lp_sobrecubierta_maquina').empty()
@@ -4142,7 +4142,7 @@ async function set_lp_sobrecubierta_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_sobrecubierta_maquina').empty()
clear_lp_sobrecubierta(false)
@@ -4215,7 +4215,7 @@ async function calcularPresupuesto_sobrecubierta(fromComparador=false, input_dat
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -4436,7 +4436,7 @@ async function calcularPresupuesto_guardas(fromComparador=false, input_data={}){
await $.ajax({
type: "POST",
- url: "/cosidotapablanda/datatable",
+ url: "/presupuestoadmin/datatable",
data: datos,
success: function (data) {
@@ -4609,7 +4609,7 @@ async function set_lp_guardas_maquina(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_guardas_maquina').empty()
clear_lp_guardas(false)
@@ -4640,7 +4640,7 @@ async function set_lp_guardas_papelImpresion(){
await $.ajax({
type: 'post',
- url: window.routes_lp.menuItemsOfCosidotapablanda,
+ url: window.routes_lp.menuItemsOfPresupuestoAdmin,
beforeSend: function() {
$('#lp_guardas_papelImpresion').empty()
$('#lp_guardas_maquina').empty()
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.php
similarity index 97%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.php
index be3fab63..330ec907 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems.php
@@ -90,8 +90,8 @@ window.papelGenericoRotativaColorList = ;
window.routes_lp = {
- menuItemsOfCosidotapablanda: '= route_to("menuItemsOfCosidotapablanda") ?>',
- updateDataOfCosidotapablanda: '= route_to("updateDataOfCosidotapablanda") ?>',
+ menuItemsOfPresupuestoAdmin: '= route_to("menuItemsOfPresupuestoAdmin") ?>',
+ updateDataOfPresupuestoAdmin: '= route_to("updateDataOfPresupuestoAdmin") ?>',
}
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_mensajeria.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_mensajeria.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_mensajeria.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_mensajeria.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestoDireccionesForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestoDireccionesForm.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestoDireccionesForm.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestoDireccionesForm.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestos.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestos.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_presupuestos.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_presupuestos.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_previewItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_previewItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_previewItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_previewItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestoItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestoItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestoItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestoItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestos.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestos.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestos.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_resumenPresupuestos.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.php
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems.php
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/comparador.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/comparador.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/comparador.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/comparador.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/previews.js b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/previews.js
similarity index 100%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/previews.js
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/previews.js
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoAdminList.php
similarity index 97%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoAdminList.php
index ed0e0277..3b93c509 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaList.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoAdminList.php
@@ -10,7 +10,7 @@
= view('themes/_commonPartialsBs/_alertBoxes'); ?>
@@ -164,7 +164,7 @@ theTable = $('#tableOfPresupuestos').DataTable({
url: "/themes/vuexy/vendor/libs/datatables-sk/plugins/i18n/es-ES.json"
},
ajax : $.fn.dataTable.pipeline( {
- url: '= route_to('dataTableOfCosidotapablanda') ?>',
+ url: '= route_to('dataTableOfPresupuestoAdmin') ?>',
data: function (d) {
d.tipo_impresion_id = '';
},
@@ -231,7 +231,7 @@ theTable.on( 'draw.dt', function () {
$(document).on('click', '.btn-edit', function(e) {
- window.location.href = `/presupuestos/cosidotapablanda/edit/${$(this).attr('data-id')}/`;
+ window.location.href = `/presupuestoadmin/edit/${$(this).attr('data-id')}/`;
});
@@ -245,7 +245,7 @@ $(document).on('click', '.btn-remove', function(e) {
const row = $(this).closest('tr');
if ($.isNumeric(dataId)) {
$.ajax({
- url: `/presupuestos/cosidotapablanda/delete/${dataId}`,
+ url: `/presupuestoadmin/delete/${dataId}`,
method: 'GET',
}).done((data, textStatus, jqXHR) => {
$('#confirm2delete').modal('toggle');
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoadminForm.php
similarity index 91%
rename from ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
rename to ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoadminForm.php
index ee9ed98d..9dfc18c8 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cosidotapablanda/viewCosidotapablandaForm.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/admin/viewPresupuestoadminForm.php
@@ -25,18 +25,18 @@
value="= $isCosido ?>">
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosLibroItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosPresupuestoItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosLibroItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosPresupuestoClienteItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_lineasPresupuestoItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_previewItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosServiciosItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_datosEnvios") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_comentariosItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosPresupuestoClienteItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_lineasPresupuestoItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_previewItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosServiciosItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_datosEnvios") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_comentariosItems") ?>
= view("themes/vuexy/components/chat_internal_presupuesto",data:["modelId" => $presupuestoId,"type" => "presupuesto"]) ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_resumenPresupuestoItems") ?>
- = view("themes/vuexy/form/presupuestos/cosidotapablanda/_tiradasAlternativasItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_resumenPresupuestoItems") ?>
+ = view("themes/vuexy/form/presupuestos/admin/_tiradasAlternativasItems") ?>
@@ -57,7 +57,7 @@
value="= lang("Basic.global.Clone") ?>"
/>
- = anchor(route_to("cosidotapablandaList", $tipo_impresion_id), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
+ = anchor(route_to("presupuestoAdminList", $tipo_impresion_id), lang("Basic.global.Cancel"), ["class" => "btn btn-secondary float-start",]) ?>
@@ -98,7 +98,7 @@
asyncMessageDialog('= lang("Basic.global.Warning") ?>', '= lang("Presupuestos.duplicarConTipologias") ?>', function() {
$.ajax({
type: 'post',
- url: '= route_to("updateDataOfCosidotapablanda") ?>',
+ url: '= route_to("updateDataOfPresupuestoAdmin") ?>',
data: {
tipo: 'duplicar',
@@ -111,7 +111,7 @@
token=response.= csrf_token() ?>;
yeniden(token);
// redirect
- new_location = '= site_url("presupuestos/cosidotapablanda/edit/") ?>' + response.id
+ new_location = '= site_url("presupuestoadmin/edit/") ?>' + response.id
window.location.href = new_location;
}
}).fail(function (jqXHR, textStatus, error) {
@@ -123,7 +123,7 @@
else{
$.ajax({
type: 'post',
- url: '= route_to("updateDataOfCosidotapablanda") ?>',
+ url: '= route_to("updateDataOfPresupuestoAdmin") ?>',
data: {
tipo: 'duplicar',
@@ -136,7 +136,7 @@
token=response.= csrf_token() ?>;
yeniden(token);
// redirect
- new_location = '= site_url("presupuestos/cosidotapablanda/edit/") ?>' + response.id
+ new_location = '= site_url("presupuestoadmin/edit/") ?>' + response.id
window.location.href = new_location;
}
}).fail(function (jqXHR, textStatus, error) {
@@ -386,7 +386,7 @@ $('#bc-save').on( "click", function() {
-
+
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php b/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php
index f98cf37b..3d7ee781 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/buscador/viewBuscadorList.php
@@ -289,9 +289,15 @@ theTable.on( 'draw.dt', function () {
$(document).on('click', '.btn-edit', function(e) {
- window.location.href = `/presupuestos/cosidotapablanda/edit/${$(this).attr('data-id')}/`;
+ window.location.href = `/presupuestoadmin/edit/${$(this).attr('data-id')}/`;
});
+theTable.on('click', 'tr', function () {
+ var data = theTable.row(this).data();
+ console.log(data);
+ var url = '/presupuestoadmin/edit/' + data['id'];
+ window.location.href = url;
+});
$(document).on('click', '.btn-delete', function(e) {
$(".btn-remove").attr('data-id', $(this).attr('data-id'));
@@ -303,7 +309,7 @@ $(document).on('click', '.btn-remove', function(e) {
const row = $(this).closest('tr');
if ($.isNumeric(dataId)) {
$.ajax({
- url: `/presupuestos/cosidotapablanda/delete/${dataId}`,
+ url: `/presupuestoadmin/delete/${dataId}`,
method: 'GET',
}).done((data, textStatus, jqXHR) => {
$('#confirm2delete').modal('toggle');
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/disenioLibro.js b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/disenioLibro.js
index 31c46e6a..11d9093a 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/disenioLibro.js
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/disenioLibro.js
@@ -684,7 +684,7 @@ async function calcularPresupuesto() {
datos = Object.assign(datos, window.token_ajax)
- $('#divTiradasPrecio').empty();
+ $('.divTiradasPrecio').empty();
$('#loader').show();
$.ajax({
@@ -741,7 +741,7 @@ async function calcularPresupuesto() {
$('#loader').hide();
- $('#divTiradasPrecio').empty();
+ $('.divTiradasPrecio').empty();
if(!error){
@@ -768,7 +768,7 @@ async function calcularPresupuesto() {
html += '';
html += '
';
- $('#divTiradasPrecio').append(html);
+ $('.divTiradasPrecio').append(html);
}
}
@@ -783,7 +783,7 @@ async function calcularPresupuesto() {
},
error: function (error) {
$('#loader').hide();
- $('#divTiradasPrecio').empty();
+ $('.divTiradasPrecio').empty();
}
});
}
\ No newline at end of file
diff --git a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php
index eec86369..aad9101e 100644
--- a/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php
+++ b/ci4/app/Views/themes/vuexy/form/presupuestos/cliente/items/_buttons.php
@@ -26,7 +26,7 @@