]> wagnertech.de Git - mfinanz.git/blobdiff - js/kivi.SalesPurchase.js
Auftragsmaske: JavaScript-Checks für Speichern aktiver per. Rechnungen nach kivi...
[mfinanz.git] / js / kivi.SalesPurchase.js
index dfd2a6abb0a2c1def610f6ad37e16b1fc610b86b..bcae1145a59536a783a9f63ed899d568304e8e28 100644 (file)
@@ -49,11 +49,18 @@ namespace('kivi.SalesPurchase', function(ns) {
     return confirm(kivi.t8('There are still transfers not matching the qty of the delivery order. Stock operations can not be changed later. Do you really want to proceed?'));
   };
 
+  this.oe_warn_save_active_periodic_invoice = function() {
+    return confirm(kivi.t8('This sales order has an active configuration for periodic invoices. If you save then all subsequently created invoices will contain those changes as well, but not those that have already been created. Do you want to continue?'));
+  };
+
   this.on_submit_checks = function() {
     var $button = $(this);
     if (($button.data('check-transfer-qty') == 1) && !kivi.SalesPurchase.delivery_order_check_transfer_qty())
       return false;
 
+    if (($button.data('warn-save-active-periodic-invoice') == 1) && !kivi.SalesPurchase.oe_warn_save_active_periodic_invoice())
+      return false;
+
     return true;
   };