mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Arreglados bugs de warning numero de paginas
This commit is contained in:
@ -364,7 +364,7 @@ const actionBtns_lp = function(data) {
|
|||||||
`;
|
`;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.tableLineasPresupuesto = new DataTable('#tableLineasPresupuesto',{
|
var tableLineasPresupuesto = new DataTable('#tableLineasPresupuesto',{
|
||||||
scrollX: true,
|
scrollX: true,
|
||||||
searching: false,
|
searching: false,
|
||||||
paging: false,
|
paging: false,
|
||||||
@ -3285,6 +3285,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
|||||||
data.push(linea_data)
|
data.push(linea_data)
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
if(data.lengh > 0){
|
||||||
|
|
||||||
await $.ajax({
|
await $.ajax({
|
||||||
type: 'post',
|
type: 'post',
|
||||||
@ -3306,6 +3307,7 @@ async function fill_bbdd_from_lp(presupuesto_id){
|
|||||||
// Handle error here
|
// Handle error here
|
||||||
console.log(jqXHR)
|
console.log(jqXHR)
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateLineasPresupuesto(){
|
function updateLineasPresupuesto(){
|
||||||
@ -3344,6 +3346,7 @@ function checkPaginasPresupuesto(){
|
|||||||
|
|
||||||
tableLineasPresupuesto.rows().every( function ( rowIdx, tableLoop, rowLoop ) {
|
tableLineasPresupuesto.rows().every( function ( rowIdx, tableLoop, rowLoop ) {
|
||||||
var rowData = this.data();
|
var rowData = this.data();
|
||||||
|
if((rowData.row_id != 'lp_cubierta') && (rowData.row_id != 'lp_sobrecubierta'))
|
||||||
cantidad_total += rowData.paginas
|
cantidad_total += rowData.paginas
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -463,7 +463,7 @@ function getObjetoLP(lpName) {
|
|||||||
|
|
||||||
function getVisibleTabs() {
|
function getVisibleTabs() {
|
||||||
|
|
||||||
window.tableLineasPresupuesto.rows().every( function ( rowIdx, tableLoop, rowLoop ) {
|
$('#tableLineasPresupuesto').DataTable().rows().every( function ( rowIdx, tableLoop, rowLoop ) {
|
||||||
var rowData = this.data();
|
var rowData = this.data();
|
||||||
console.log(rowData.row_id);
|
console.log(rowData.row_id);
|
||||||
$("#tab-pv-bn").show();
|
$("#tab-pv-bn").show();
|
||||||
|
|||||||
Reference in New Issue
Block a user