Warnung bei Auftragspeichern mit aktiver wiederk. Rechnung, wenn schon eine Rechnung...
[kivitendo-erp.git] / js / edit_periodic_invoices_config.js
1 function edit_periodic_invoices_config() {
2   var width     = 750;
3   var height    = 550;
4   var parm      = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
5
6   var config    = $('#periodic_invoices_config').val();
7   var transdate = $('#transdate').val();
8
9   var url       = "oe.pl?" +
10     "action=edit_periodic_invoices_config&" +
11     "periodic_invoices_config=" + encodeURIComponent(config) + "&" +
12     "transdate="                + encodeURIComponent(transdate);
13
14   // alert(url);
15   window.open(url, "_new_generic", parm);
16 }
17
18 function warn_save_active_periodic_invoice() {
19   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?'));
20 }