Invoices - check empty prices

This commit is contained in:
Michał Zieliński
2025-08-21 21:01:51 +02:00
parent ac7e1b0c85
commit a5139813ae

View File

@@ -166,6 +166,11 @@ check_form = function(formname) {
$(".loading_panel").css("display", "none"); $(".loading_panel").css("display", "none");
return false; return false;
} }
if (items[index].price_netto == 0) {
alert("Niedopuszczalna, zerowa cena netto.");
$(".loading_panel").css("display", "none");
return false;
}
} }
$("#total_netto").val($("#t_netto").val()); $("#total_netto").val($("#t_netto").val());
$("#total_brutto").val($("#t_brutto").val()); $("#total_brutto").val($("#t_brutto").val());