Invoices - check empty prices
This commit is contained in:
@@ -166,6 +166,11 @@ check_form = function(formname) {
|
||||
$(".loading_panel").css("display", "none");
|
||||
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_brutto").val($("#t_brutto").val());
|
||||
|
||||
Reference in New Issue
Block a user