X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/dd33cbecc78ee154df73ebf578be8f660af2357c..199bd497fa158b819070767fa737b2e23d164b96:/js/kivi.SalesPurchase.js diff --git a/js/kivi.SalesPurchase.js b/js/kivi.SalesPurchase.js index 7637129f6..3a623ebbd 100644 --- a/js/kivi.SalesPurchase.js +++ b/js/kivi.SalesPurchase.js @@ -32,8 +32,6 @@ namespace('kivi.SalesPurchase', function(ns) { $edit.val(params.default_longdescription); - kivi.init_text_editor($edit); - $('#popup_edit_longdescription_runningnumber').html(params.runningnumber); $('#popup_edit_longdescription_partnumber').html(params.partnumber); @@ -172,8 +170,9 @@ namespace('kivi.SalesPurchase', function(ns) { $('#shiptoname').focus(); }; - this.submit_custom_shipto = function() { - $('#shipto_id').val(''); + this.submit_custom_shipto = function(id_selector) { + id_selector = id_selector || '#shipto_id'; + $(id_selector).val(''); $('#shipto_dialog').data('confirmed', true); $('#shipto_dialog').dialog('close'); }; @@ -272,6 +271,7 @@ namespace('kivi.SalesPurchase', function(ns) { var data = { action: 'show_sales_purchase_email_dialog', cp_id: $('#cp_id').val(), + direct_debit: $('#direct_debit').prop('checked') ? 1 : 0, donumber: $('#donumber').val(), format: $('#format').val(), formname: $('#formname').val(),