]> wagnertech.de Git - mfinanz.git/blobdiff - js/kivi.SalesPurchase.js
locales-Lauf 'de' und vergessene Übersetzung f. Fehler beim Projektanlegen
[mfinanz.git] / js / kivi.SalesPurchase.js
index 86704f24655710f2af630a0f445ba9fdeec50c21..3a623ebbda6ee46b812d17666adee58278b4680b 100644 (file)
@@ -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(),