X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/008630aeb24f1350a4e5febd06006086053837c4..bde97469a3c19ef4ecb34c95dbf40d9d622093d2:/js/kivi.SalesPurchase.js diff --git a/js/kivi.SalesPurchase.js b/js/kivi.SalesPurchase.js index 86704f246..3a623ebbd 100644 --- a/js/kivi.SalesPurchase.js +++ b/js/kivi.SalesPurchase.js @@ -170,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'); }; @@ -270,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(),