From a5139813ae6ee97dac812baf27be6e1f64d506b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Thu, 21 Aug 2025 21:01:51 +0200 Subject: [PATCH] Invoices - check empty prices --- modules/EcmInvoiceOuts/javascript/EcmInvoiceOuts3.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/EcmInvoiceOuts/javascript/EcmInvoiceOuts3.js b/modules/EcmInvoiceOuts/javascript/EcmInvoiceOuts3.js index 26d8381f..4383ab48 100644 --- a/modules/EcmInvoiceOuts/javascript/EcmInvoiceOuts3.js +++ b/modules/EcmInvoiceOuts/javascript/EcmInvoiceOuts3.js @@ -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());