kaze ponudbe ce ni datapartov - vezano na cev projekt

This commit is contained in:
David Štaleker
2026-01-26 12:11:24 +01:00
parent 8b9c1a2471
commit a6ba81ea26

View File

@@ -821,7 +821,8 @@
//Skrijem vrstice povezanih dokumentov //Skrijem vrstice povezanih dokumentov
$(".invoice-row").each(function() { $(".invoice-row").each(function() {
let idParts = $(this).attr('data-idparts').split(','); let idParts = $(this).attr('data-idparts').split(',');
if (idParts.includes(idProjectPart)) { console.log(idParts);
if (idParts.includes(idProjectPart) || idParts.includes('0')) {
$(this).show(); $(this).show();
} else { } else {
$(this).hide(); $(this).hide();