]> wagnertech.de Git - kivitendo-erp.git/blobdiff - js/kivi.io.js
auf Original-Version zurückgesetzt
[kivitendo-erp.git] / js / kivi.io.js
index 109b2001031e435d2f1caabc921c9a25a184b5f5..4758583e25019623fd4e135da85be0c2cd78aec4 100644 (file)
@@ -43,4 +43,10 @@ namespace('kivi.io', function(ns) {
     if (price_str) $('#sellprice_' + row).val(price_str);
     $('#update_button').click();
   }
+
+  ns.update_discount_source = function(row, source, discount_str) {
+    $('#active_discount_source_' + row).val(source);
+    if (discount_str) $('#discount_' + row).val(discount_str);
+    $('#update_button').click();
+  }
 });