]> wagnertech.de Git - kivitendo-erp.git/blobdiff - js/edit_periodic_invoices_config.js
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / js / edit_periodic_invoices_config.js
index 9392eb146fea944f97bc916c113af3a0d0d9a0ce..263b2faf231ff750e0c514f0cc2e5a250c705bfe 100644 (file)
@@ -1,20 +1,20 @@
 function edit_periodic_invoices_config() {
-  var width     = 750;
-  var height    = 550;
+  var width     = 800;
+  var height    = 650;
   var parm      = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
 
   var config    = $('#periodic_invoices_config').val();
+  var cus_id    = $('[name=customer_id]').val();
   var transdate = $('#transdate').val();
+  var lang_id   = $('#language_id').val();
 
   var url       = "oe.pl?" +
     "action=edit_periodic_invoices_config&" +
-    "periodic_invoices_config=" + encodeURIComponent(config) + "&" +
-    "transdate="                + encodeURIComponent(transdate);
+    "customer_id="              + encodeURIComponent(cus_id)  + "&" +
+    "language_id="              + encodeURIComponent(lang_id) + "&" +
+    "periodic_invoices_config=" + encodeURIComponent(config)  + "&" +
+    "transdate="                + encodeURIComponent(transdate || '');
 
   // alert(url);
   window.open(url, "_new_generic", parm);
 }
-
-function warn_save_active_periodic_invoice() {
-  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?'));
-}