epic-s6ts
[kivitendo-erp.git] / js / edit_periodic_invoices_config.js
1 function edit_periodic_invoices_config() {
2   var width     = 800;
3   var height    = 650;
4   var parm      = centerParms(width, height) + ",width=" + width + ",height=" + height + ",status=yes,scrollbars=yes";
5
6   var config    = $('#periodic_invoices_config').val();
7   var cus_id    = $('[name=customer_id]').val();
8   var transdate = $('#transdate').val();
9   var lang_id   = $('#language_id').val();
10
11   var url       = "oe.pl?" +
12     "action=edit_periodic_invoices_config&" +
13     "customer_id="              + encodeURIComponent(cus_id)  + "&" +
14     "language_id="              + encodeURIComponent(lang_id) + "&" +
15     "periodic_invoices_config=" + encodeURIComponent(config)  + "&" +
16     "transdate="                + encodeURIComponent(transdate || '');
17
18   // alert(url);
19   window.open(url, "_new_generic", parm);
20 }